User32GetKBCodePage Method
Note: This API is now obsolete.
Retrieves the current code page.
Note: This function is provided only for compatibility with 16-bit versions of Windows.
Applications should use the
GetOEMCodePage function to retrieve the OEM code-page identifier for the system.
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("User32.dll", ExactSpelling = true)]
[ObsoleteAttribute("This function is provided only for compatibility with 16-bit versions of Windows. Applications should use the 'NativeMethods.GetOEMCodePage' function to retrieve the OEM code-page identifier for the system",
true)]
public static uint GetKBCodePage()
<DllImportAttribute("User32.dll", ExactSpelling := true>]
<ObsoleteAttribute("This function is provided only for compatibility with 16-bit versions of Windows. Applications should use the 'NativeMethods.GetOEMCodePage' function to retrieve the OEM code-page identifier for the system",
true)>
Public Shared Function GetKBCodePage As UInteger
Dim returnValue As UInteger
returnValue = User32.GetKBCodePage()
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true)]
[ObsoleteAttribute(L"This function is provided only for compatibility with 16-bit versions of Windows. Applications should use the 'NativeMethods.GetOEMCodePage' function to retrieve the OEM code-page identifier for the system",
true)]
static unsigned int GetKBCodePage()
[<DllImportAttribute("User32.dll", ExactSpelling = true)>]
[<ObsoleteAttribute("This function is provided only for compatibility with 16-bit versions of Windows. Applications should use the 'NativeMethods.GetOEMCodePage' function to retrieve the OEM code-page identifier for the system",
true)>]
static member GetKBCodePage : unit -> uint32
No code example is currently available or this language may not be supported.
Return Value
UInt32
The return value is an OEM code-page identifier, or it is the default identifier if the registry value is not readable.