GetColorDirectoryW function (icm.h)
Retrieves the path of the Windows COLOR directory on a specified machine.
BOOL GetColorDirectoryW( PCWSTR pMachineName, PWSTR pBuffer, PDWORD pdwSize );
Reserved; must be NULL. This parameter is intended to point to the name of the machine on which the profile is to be installed. A NULL pointer indicates the local machine.
Points to the buffer in which the color directory path is to be placed.
Points to a variable containing the size in bytes of the buffer pointed to by pBuffer. On return, the variable contains the size of the buffer actually used or needed.
If this function succeeds, the return value is TRUE.
If this function fails, the return value is FALSE. For extended error information, call GetLastError.
Color directory is still system-wide. This function is executable in LUA context.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|