User32GetKeyboardLayout Method
Retrieves the active input locale identifier (formerly called the keyboard layout).
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", CharSet = CharSet.Unicode)]
public static IntPtr GetKeyboardLayout(
uint idThread = 0
)
<DllImportAttribute("User32.dll", CharSet := CharSet.Unicode>]
Public Shared Function GetKeyboardLayout (
Optional idThread As UInteger = 0
) As IntPtr
Dim idThread As UInteger
Dim returnValue As IntPtr
returnValue = User32.GetKeyboardLayout(idThread)
public:
[DllImportAttribute(L"User32.dll", CharSet = CharSet::Unicode)]
static IntPtr GetKeyboardLayout(
unsigned int idThread = 0
)
[<DllImportAttribute("User32.dll", CharSet = CharSet.Unicode)>]
static member GetKeyboardLayout :
?idThread : uint32
(* Defaults:
let _idThread = defaultArg idThread 0
*)
-> IntPtr
No code example is currently available or this language may not be supported.
- idThread UInt32 (Optional)
-
A window handle identifier of the thread to query, or 0 to query the current thread.
IntPtr
The return value is the input locale identifier for the thread.
The low-order byte contains a Language Identifier for the input language,
and the high-order byte contains a device handle to the physical layout of the keyboard.