IGraphicsCaptureItemInterop::CreateForMonitor method (windows.graphics.capture.interop.h)

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

Syntax

HRESULT CreateForMonitor(
  HMONITOR monitor,
  REFIID   riid,
  void     **result
);

Parameters

monitor

Type: HMONITOR

The monitor handle that represents the monitor to capture.

riid

Type: REFIID

GUID for the type returned. Supported value: GraphicsCaptureItem.

result

Type: void**

Out pointer for the object to receive.

Return value

Type: HRESULT

The return error code.

Requirements

Requirement Value
Minimum supported client Window 10 Version 1903 (Build 18362)
Minimum supported server Window 10 Version 1903 (Build 18362)
Header windows.graphics.capture.interop.h