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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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()
<DllImportAttribute("Kernel32.dll", EntryPoint := "GetOEMCP", ExactSpelling := true>]
Public Shared Function GetOEMCodePage As UInteger
Dim returnValue As UInteger
returnValue = Kernel32.GetOEMCodePage()
public:
[DllImportAttribute(L"Kernel32.dll", EntryPoint = L"GetOEMCP", ExactSpelling = true)]
static unsigned int GetOEMCodePage()
[<DllImportAttribute("Kernel32.dll", EntryPoint = "GetOEMCP", ExactSpelling = true)>]
static member GetOEMCodePage : unit -> uint32
No code example is currently available or this language may not be supported.
Return Value
UInt32
Returns the current OEM code page identifier for the operating system.