ColorProfileGetDisplayUserScope function (icm.h)

Gets the currently selected color profile scope of the provided display - either user or system.

Syntax

HRESULT ColorProfileGetDisplayUserScope(
  LUID                         targetAdapterID,
  UINT32                       sourceID,
  WCS_PROFILE_MANAGEMENT_SCOPE *scope
);

Parameters

targetAdapterID

An identifier assigned to the adapter (e.g. GPU) of the target display. See Remarks for more details.

sourceID

An identifier assigned to the source of the display. See Remarks for more details.

scope

Returns the scope of the currently selected color profile - either the current user or system.

Return value

S_OK for success, or a failure HRESULT value

Remarks

See connecting and configuring displays for information on display adapter IDs and source IDs.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Header icm.h

See also

Connecting and configuring displays