The GetColorDirectory function retrieves the path of the Windows COLOR directory on a specified machine.
BOOL WINAPI GetColorDirectory( PCTSTR pMachineName, PTSTR 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|
Minimum supported server
|Windows 2000 Server|
Unicode and ANSI names
|GetColorDirectoryW (Unicode) and GetColorDirectoryA (ANSI)|
Build date: 11/16/2010