Platform SDK: International Features

GetACP

The GetACP function retrieves the current ANSI code-page identifier for the system.

UINT GetACP(VOID);

Parameters

This function has no parameters.

Return Values

The return value is the current ANSI code-page identifier for the system, or a default identifier if no code page is current.

Remarks

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.

Requirements

  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.

See Also

National Language Support Overview, National Language Support Functions, GetCPInfo, GetOEMCP