Windows Dev Center

Expand Minimize

IsValidCodePage function

Determines if a specified code page is valid.

Syntax


BOOL IsValidCodePage(
  _In_ UINT CodePage
);

Parameters

CodePage [in]

Code page identifier for the code page to check.

Return value

Returns a nonzero value if the code page is valid, or 0 if the code page is invalid.

Remarks

A code page is considered valid only if it is installed on the operating system. Unicode is preferred.

Starting with Windows Vista, all code pages that can be installed are loaded by default.

Windows Phone 8: This API is supported.

Windows Phone 8.1: This API is supported.

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
GetACP
GetCPInfo
GetOEMCP

 

 

Community Additions

ADD
Show:
© 2015 Microsoft