IDisplayPathInterop::GetSourceId method (windows.devices.display.core.interop.h)

Gets the unique identifier of the DisplaySource object.

Syntax

HRESULT GetSourceId(
  [out] UINT *pSourceId
);

Parameters

[out] pSourceId

The unique identifier.

Return value

Type: HRESULT

This method returns S_OK if it succeeded, otherwise a failure code indicating why it failed.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Target Platform Windows
Header windows.devices.display.core.interop.h
Library d3d12.lib
DLL d3d12.dll