User32GetKeyboardType Method
Retrieves information about the current keyboard.
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, SetLastError = true)]
public static int GetKeyboardType(
int typeFlag
)
<DllImportAttribute("User32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function GetKeyboardType (
typeFlag As Integer
) As Integer
Dim typeFlag As Integer
Dim returnValue As Integer
returnValue = User32.GetKeyboardType(typeFlag)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true, SetLastError = true)]
static int GetKeyboardType(
int typeFlag
)
[<DllImportAttribute("User32.dll", ExactSpelling = true, SetLastError = true)>]
static member GetKeyboardType :
typeFlag : int -> int
No code example is currently available or this language may not be supported.
- typeFlag Int32
-
The type of keyboard information to be retrieved
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).