Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8

Header

Winnls.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

National Language Support
National Language Support Functions
GetACP
GetCPInfo
GetOEMCP

 

 

Show:
© 2017 Microsoft