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.
Following are the ANSI code-page identifiers:
| Identifier | Meaning |
|---|---|
| 874 | Thai |
| 932 | Japan |
| 936 | Chinese (PRC, Singapore) |
| 949 | Korean |
| 950 | Chinese (Taiwan Region; 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 |
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winnls.h.
Import Library: Use kernel32.lib.
National Language Support Overview, National Language Support Functions, GetCPInfo, GetOEMCP