winrt.windows.media.interop module

APIs for desktop interop with the Windows.Media namespace.

get_for_window(hwnd)

Targets a single window for the creation of a graphics capture item.

Parameters:

hwnd (int) – The top-level app window (HWND) for which the ISystemMediaTransportControls interface is retrieved.

Returns:

Receives the ISystemMediaTransportControls that corresponds to the appWindow window.

Return type:

winrt.windows.media.SystemMediaTransportControls

Added in version 3.1.