Expand Minimize

GetCPInfo function

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.

Syntax


BOOL GetCPInfo(
  _In_   UINT CodePage,
  _Out_  LPCPINFO lpCPInfo
);

Parameters

CodePage [in]

Identifier for the code page for which to retrieve information. For details, see the CodePage parameter of GetCPInfoEx.

lpCPInfo [out]

Pointer to a CPINFO structure that receives information about the code page. See the Remarks section.

Return value

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:

  • ERROR_INVALID_PARAMETER. Any of the parameter values was invalid.

Remarks

See Remarks for GetCPInfoEx.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Winnls.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

National Language Support
National Language Support Functions
Code Page Identifiers
GetACP
GetCPInfoEx
GetOEMCP
MultiByteToWideChar
WideCharToMultiByte
CPINFO

 

 

Community Additions

ADD
Show:
© 2014 Microsoft