[This is preliminary documentation and subject to change.]
Given a handle to an open color profile, the GetColorProfileFromHandle function will copy the contents of the profile into a buffer supplied by the application.
BOOL WINAPI GetColorProfileFromHandle(
HPROFILE hProfile,
PBYTE pBuffer,
PDWORD pcbSize
);
If this function succeeds, the return value is TRUE. It also returns TRUE if the pBuffer parameter is NULL and the size required for the buffer is copied into pcbSize.
If this function fails, the return value is FALSE. For extended error information, call GetLastError.
Windows NT: Requires version 5.0 or later.
Windows: Requires Windows 98.
Windows CE: Unsupported.
Header: Declared in icm.h.
Import Library: Use mscms.lib.
Color Management Overview, ICM 2.0 Functions