Platform SDK: International Features |
The GetACP function retrieves the current ANSI code-page identifier for the system.
UINT GetACP(VOID);
This function has no parameters.
The return value is the current ANSI code-page identifier for the system, or a default identifier if no code page is current.
The following are the ANSI code-page identifiers.
Identifier | Meaning |
---|---|
874 | Thai |
932 | Japan |
936 | Chinese (PRC, Singapore) |
949 | Korean |
950 | Chinese (Taiwan; Hong Kong SAR, PRC) |
1200 | Unicode (BMP of ISO 10646) |
1250 | Windows 3.1 Eastern European |
1251 | Windows 3.1 Cyrillic |
1252 | Windows 3.1 Latin 1 (US, Western Europe) |
1253 | Windows 3.1 Greek |
1254 | Windows 3.1 Turkish |
1255 | Hebrew |
1256 | Arabic |
1257 | Baltic |
MAPI: For more information, see Syntax and Limitations for Win32 Functions Useful in MAPI Development.
Windows 2000: The return value for the Indic languages is 0, because they are Unicode only.
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Winnls.h; include Windows.h.
Library: Use Kernel32.lib.
National Language Support Overview, National Language Support Functions, GetCPInfo, GetOEMCP