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

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

Syntax

HRESULT CreateForWindow(
  HWND   window,
  REFIID riid,
  void   **result
);

Parameters

window

Type: HWND

The window handle that represents the window 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