Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

GetCPInfo (Windows CE 5.0)

Windows CE 5.0
Send Feedback

This function retrieves information about any valid installed or available code page.

  UINT CodePage, 


[in] Value that specifies the code page about which information is to be retrieved. You can specify the code page identifier for any installed or available code page, or you can specify one of the following predefined values. The following table shows the values this parameter can take.
CP_ACPUse the system default ANSI code page.
CP_MACCPNot supported.
CP_OEMCPUse the system default OEM code page.
CP_UTF7Use the UTF-7 code page.
CP_UTF8Use the UTF-8 code page.
[out] Pointer to a CPINFO structure that receives information about the code page.

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call the GetLastError function.


If the specified code page is not installed or not available, GetCPInfo sets the last-error value to ERROR_INVALID_PARAMETER.

For more information about code pages, see Code Pages.


OS Versions: Windows CE .NET 4.0 and later.
Header: Winnls.h.
Link Library: Coreloc.lib.

See Also

Code Pages | GetACP | GetOEMCP | CPINFO

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.

© 2015 Microsoft