Partager via


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.

Syntax

BOOL CALLBACK EnumCodePagesProc(
  _In_ LPTSTR lpCodePageString
);

Parameters

  • lpCodePageString [in]
    Pointer to a buffer containing a null-terminated code page identifier string.

Return value

Returns TRUE to continue enumeration or FALSE otherwise.

Remarks

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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | UWP apps]

Minimum supported server

Windows 2000 Server [desktop apps | UWP apps]

Header

Winnls.h (include Windows.h)

See also

National Language Support

National Language Support Functions

EnumSystemCodePages