ColorProfileSetDisplayDefaultAssociation function (icm.h)

Sets an installed color profile as the default profile for a specified display in the given scope.

Syntax

HRESULT ColorProfileSetDisplayDefaultAssociation(
  WCS_PROFILE_MANAGEMENT_SCOPE scope,
  PCWSTR                       profileName,
  COLORPROFILETYPE             profileType,
  COLORPROFILESUBTYPE          profileSubType,
  LUID                         targetAdapterID,
  UINT32                       sourceID
);

Parameters

scope

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

profileName

Identifies the installed profile to associate.

profileType

The type of color profile to set as default (currently only CPT_ICC is supported).

profileSubType

The subtype of the color profile to set as default.

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.

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