Export (0) Print
Expand All
Expand Minimize

CMIsProfileValid Function

The CMIsProfileValid function reports whether the given profile is a valid ICC profile that can be used for color management.

Syntax

BOOL WINAPI CMIsProfileValid(
    HPROFILE hProfile,
    LPBOOL lpbValid
);

Parameters

hProfile

Specifies the profile to check.

lpbValid

Pointer to a variable that is set on exit to TRUE if the profile is a valid ICC profile, or FALSE if not.

Return Value

If this function succeeds, the return value is TRUE.

If this function fails, the return value is FALSE. If the function fails, the CMM should call SetLastError to set the last error to a valid error value defined in Winerror.h.

Remarks

Only the Windows default CMM is required to export this function; it is optional for all other CMMs.

If a CMM does not support this function, Windows uses the default CMM to validate the profile.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Wingdi.h

Library

Gdi32.lib

DLL

Icm32.dll

See Also

Basic Color Management Concepts
Functions

 

 

Send comments about this topic to Microsoft

Build date: 11/16/2010

Community Additions

ADD
Show:
© 2014 Microsoft