EnumCodePagesProc

The EnumCodePagesProc function is an application-defined callback function used with the EnumSystemCodePages function. It receives a pointer to a string buffer containing a code page identifier. The CODEPAGE_ENUMPROC type defines a pointer to this callback function. EnumCodePagesProc is a placeholder for the application-defined function name.

BOOL CALLBACK EnumCodePagesProc(
  LPTSTR lpCodePageString   // pointer to code page identifier string
);
 

Parameters

lpCodePageString
Pointer to a string buffer containing a null-terminated code page identifier string.

Return Values

To continue enumeration, the callback function should return TRUE.

To stop enumeration, the callback function should return FALSE.

Remarks

An EnumCodePagesProc function can carry out any desired task.

An application registers an EnumCodePagesProc function by passing its address to the EnumSystemCodePages function.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 98 or later.
  Windows CE: Unsupported.
  Header: Declared in winnls.h.
  Import Library: User-defined.

See Also

National Language Support Overview, National Language Support Functions, EnumSystemCodePages