Determines if a specified code page is valid.
BOOL IsValidCodePage(
UINT CodePage
)
CodePage
Type: UINT
Code page identifier for the code page to check.
Type: BOOL
Returns a nonzero value if the code page is valid, or 0 if the code page is invalid.
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.
Header: Declared in winnls.h.
Library: Use kernelx.lib.