IsValidCodePage

Determines if a specified code page is valid.

Syntax

BOOL IsValidCodePage(
         UINT CodePage
)  

Parameters

CodePage
Type: UINT 

Code page identifier for the code page to check.

Return value

Type: BOOL 

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.

Requirements

Header: Declared in winnls.h.

Library: Use kernelx.lib.