Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetColorDirectory
Collapse the table of content
Expand the table of content

GetColorDirectory function

The GetColorDirectory function retrieves the path of the Windows COLOR directory on a specified machine.

Syntax


BOOL WINAPI GetColorDirectory(
  PCTSTR pMachineName,
  PTSTR pBuffer,
  PDWORD pdwSize
);

Parameters

pMachineName

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.

pBuffer

Points to the buffer in which the color directory path is to be placed.

pdwSize

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.

Return value

If this function succeeds, the return value is TRUE.

If this function fails, the return value is FALSE. For extended error information, call GetLastError.

Remarks

Per-user/LUA support

Color directory is still system wide. This function is executable in LUA context.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Icm.h

Library

Mscms.lib

DLL

Mscms.dll

Unicode and ANSI names

GetColorDirectoryW (Unicode) and GetColorDirectoryA (ANSI)

See also

Basic Color Management Concepts
Functions

 

 

Community Additions

ADD
Show:
© 2015 Microsoft