ColorProfileGetDisplayDefault function (icm.h)

Gets the default color profile for a given display in the specified scope.

Syntax

HRESULT ColorProfileGetDisplayDefault(
  WCS_PROFILE_MANAGEMENT_SCOPE scope,
  LUID                         targetAdapterID,
  UINT32                       sourceID,
  COLORPROFILETYPE             profileType,
  COLORPROFILESUBTYPE          profileSubType,
  LPWSTR                       *profileName
);

Parameters

scope

Specifies the association as system-wide or the current user.

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.

profileType

The type of color profile to return (currently only CPT_ICC is supported).

profileSubType

The subtype of the color profile to return.

profileName

Receives a pointer to the default color profile name, which must be freed with LocalFree.

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