Kernel32GetOEMCodePage Method

Returns the current original equipment manufacturer (OEM) code page identifier for the operating system.

Note: The ANSI code pages can be different on different computers, or can be changed for a single computer, leading to data corruption.

For the most consistent results, applications should use Unicode, such as UTF-8 or UTF-16, instead of a specific code page.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", EntryPoint = "GetOEMCP", ExactSpelling = true)]
public static uint GetOEMCodePage()

Return Value

UInt32
Returns the current OEM code page identifier for the operating system.

Remarks

See Also