The Locale Explorer: GetCPInfo(Ex)

Home
Back To Tips Page

Back to LocaleExplorer

This shows the information about a selected code page.

This page shows the use of GetCPInfo and, as illustrated above, GetCPInfoEx. In addition to selecting a specific code page (as illustrated above--page 850), either the GetACP(), or GetOEMCP() calls could be used, or the special constants CP_ACP, CP_OEMCP, CP_MACCP, or CP_THREAD_ACP.  The information in a CPINFO structure or, as shown above, the CPINFOEX structure, is displayed. For an alternative view of this information, which shows one CPINFOEX per line for each code page, see the description of EnumSystemCodePages.

[Dividing Line Image]

The views expressed in these essays are those of the author, and in no way represent, nor are they endorsed by, Microsoft.

Send mail to newcomer@flounder.com with questions or comments about this web site.
Copyright 2005 Joseph M. Newcomer/FlounderCraft Ltd.  All Rights Reserved.
Last modified: May 14, 2011