Retrieves information about any valid installed or available code page.
Note
To obtain additional information about valid installed or available code pages, the application should use GetCPInfoEx.
BOOL GetCPInfo(
UINT CodePage,
LPCPINFO lpCPInfo
)
CodePage
Type: UINT
Identifier for the code page for which to retrieve information. For details, see the CodePage parameter of GetCPInfoEx.
lpCPInfo
Type: LPCPINFO
Pointer to a CPINFO structure that receives information about the code page. See the Remarks section.
Type: BOOL
Returns 1 if successful, or 0 otherwise. To get extended error information, the application can call GetLastError, which can return one of the following error codes:
See Remarks for GetCPInfoEx.
Header: Declared in winnls.h.
Library: Use kernelx.lib.