Skip to content

winrt.windows.media.interop module

APIs for desktop interop with the Windows.Media namespace.

get_for_window

get_for_window(hwnd, /)

Gets the system media transport controls of a window.

Parameter Type Description
hwnd int The handle (HWND) of the top-level app window to get the controls of.

Returns: The system media transport controls of the window.

Return type: winrt.windows.media.SystemMediaTransportControls

Added in version 3.1