Skip to content

Latest commit

 

History

History
76 lines (60 loc) · 2.73 KB

nf-icm-createprofilefromlogcolorspacew.md

File metadata and controls

76 lines (60 loc) · 2.73 KB
UID title description tech.root ms.date targetos req.assembly req.construct-type req.ddi-compliance req.dll req.header req.idl req.include-header req.irql req.kmdf-ver req.lib req.max-support req.namespace req.redist req.target-min-winverclnt req.target-min-winversvr req.target-type req.type-library req.umdf-ver req.unicode-ansi topic_type api_type api_location api_name f1_keywords dev_langs
NF:icm.CreateProfileFromLogColorSpaceW
CreateProfileFromLogColorSpaceW
Converts a logical [color space](/windows/win32/wcs/c) to a [device profile](/windows/win32/wcs/d). (Unicode)
wcs
02/01/2021
Windows
function
Mscms.dll
icm.h
Mscms.lib
Windows 2000 Professional \[desktop apps only\]
Windows 2000 Server \[desktop apps only\]
apiref
mscms.dll
CreateProfileFromLogColorSpaceW
CreateProfileFromLogColorSpace
CreateProfileFromLogColorSpaceW
icm/CreateProfileFromLogColorSpaceW
CreateProfileFromLogColorSpace
icm/CreateProfileFromLogColorSpace
c++

-description

Converts a logical color space to a device profile.

-parameters

-param pLogColorSpace

A pointer to a logical color space structure. See LOGCOLORSPACEA for details. The lcsFilename [0] member of the structure must be set to the null character ('\0') or this function call will fail with the return value of INVALID_PARAMETER.

-param pProfile

A pointer to a pointer to a buffer where the device profile will be created. This function allocates the buffer and fills it with profile information if it is successful. If not, the pointer is set to NULL. The caller is responsible for freeing this buffer when it is no longer needed.

-returns

If this function succeeds, the return value is TRUE.

If this function fails, the return value is FALSE.

If the lcsFilename [0] member if the LOGCOLORSPACEA structure pointed to by pLogColorSpace is not '\0', this function returns INVALID_PARAMETER.

-remarks

This function can be used with ASCII or Unicode strings. The buffer created by this function must be freed by the caller when it is no longer needed or there will be a memory leak. The GlobalFree function should be used to free this buffer.

This function does not support Windows Color System (WCS) profiles CAMP, DMP, and GMMP.

-see-also