User32GetKeyboardType Method

Retrieves information about the current keyboard.

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("User32.dll", ExactSpelling = true, SetLastError = true)]
public static int GetKeyboardType(
	int typeFlag
)

Parameters

typeFlag  Int32
The type of keyboard information to be retrieved

Return Value

Int32
If the function succeeds, the return value specifies the requested information.

If the function fails and nTypeFlag is not one, the return value is zero; zero is a valid return value when nTypeFlag is one (keyboard subtype).

Remarks

See Also