Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EnumCodePagesProc callback function

An application-defined callback function that processes enumerated code page information provided by the EnumSystemCodePages function. The CODEPAGE_ENUMPROC type defines a pointer to this callback function. EnumCodePagesProc is a placeholder for the application-defined function name.


BOOL CALLBACK EnumCodePagesProc(
  _In_ LPTSTR lpCodePageString


lpCodePageString [in]

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

Return value

Returns TRUE to continue enumeration or FALSE otherwise.


An EnumCodePagesProc function can carry out any desired task. The application registers this function by passing its address to the EnumSystemCodePages function.

When an application is using this function to determine an appropriate code page for saving data, it should use Unicode when possible. Other code pages are not as portable as Unicode between vendors or operating systems, due to different implementations of the associated standards.


Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]


Winnls.h (include Windows.h)

See also

National Language Support
National Language Support Functions



© 2017 Microsoft