winsdk.windows.graphics.capture.interop module

APIs for desktop interop with the Windows.Graphics.Capture namespace.

create_for_monitor(monitor)

Targets a monitor(s) for the creation of a graphics capture item.

Parameters:

monitor (int) – The monitor handle (HMONITOR) that represents the monitor to capture.

Returns:

A graphics capture item.

Return type:

winsdk.windows.graphics.capture.GraphicsCaptureItem

create_for_window(window)

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

Parameters:

window (int) – The window handle (HWND) that represents the window to capture.

Returns:

A graphics capture item.

Return type:

winsdk.windows.graphics.capture.GraphicsCaptureItem