Deprecated. The use of this API is discouraged. The API may be removed from future releases of Windows. For more information, see the Remarks section.
The CMCreateProfileW Unicode function creates a display color profile from a LOGCOLORSPACE structure.
BOOL WINAPI CMCreateProfileW( LPLOGCOLORSPACEW lpColorSpace, LPBYTE *lpProfileData );
Points to a logical color space, of which the lcsFilename member will be NULL.
Points to a pointer to a buffer. If successful the function allocates and fills this buffer. The calling application must free this buffer when it is no longer needed. Use the GlobalFree function to free this buffer.
If this function succeeds, the return value is TRUE.
If this function fails, the return value is FALSE. If the function is not successful, the CMM should call SetLastError to set the last error to a valid error value defined in Winerror.h.
In Windows 7, the default CMM (icm32.dll) will return FALSE and GetLastError will report ERROR_NOT_SUPPORTED.
Deprecated: This function was deprecated in Windows Vista. CMM Implementors are no longer required to implement this method.
The ANSI version of this function is CMCreateProfile.
Only the Windows default CMM is required to export this function; it is optional for all other CMMs. If a CMM does not support CMCreateProfileW, Windows uses the default CMM to create the profile.
The CMM should set all header fields to sensible defaults. This profile should be usable as the input profile in a transform.
Minimum supported client
|Windows 2000 Professional|
Minimum supported server
|Windows 2000 Server|
Build date: 11/16/2010