User32GetKeyboardState Method
Copies the status of the 256 virtual keys to the specified buffer.
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 bool GetKeyboardState(
byte[] keyState
)
<DllImportAttribute("User32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function GetKeyboardState (
keyState As Byte()
) As Boolean
Dim keyState As Byte()
Dim returnValue As Boolean
returnValue = User32.GetKeyboardState(keyState)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true, SetLastError = true)]
static bool GetKeyboardState(
array<unsigned char>^ keyState
)
[<DllImportAttribute("User32.dll", ExactSpelling = true, SetLastError = true)>]
static member GetKeyboardState :
keyState : byte[] -> bool
No code example is currently available or this language may not be supported.
- keyState Byte
-
The 256-byte array that receives the status data for each virtual key.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.