---
name: "GetKeyboardState"
section: "3w"
platform: "linux"
package: "wine-doc"
version: "0.0.981018-1.1"
release: "Debian 2.1 (Slink)"
platforms: ["linux"]
url: "https://carta.tech/man/GetKeyboardState"
---

# GetKeyboardState(3w)

GetKeyboardState (USER.222)(USER32.254)

## NAME

GetKeyboardState - GetKeyboardState      (USER.222)(USER32.254)

## SYNOPSIS

**VOID GetKeyboardState(LPBYTE lpKeyState);**

## DESCRIPTION

An application calls the GetKeyboardState function in response to a keyboard-input message.  This function retrieves the state of the keyboard at the time the input message was generated.  (SDK 3.1 Vol 2. P 387).

## SEE ALSO

[GetKeyState(3w)](/man/GetKeyState/3w.md), [SetKeyboardState(3w)](/man/SetKeyboardState/3w.md), [GetAsyncKeyState(3w)](/man/GetAsyncKeyState/3w.md), [TranslateAccelerator(3w)](/man/TranslateAccelerator/3w.md), [OemKeyScan(3w)](/man/OemKeyScan/3w.md), [VkKeyScanA(3w)](/man/VkKeyScanA/3w.md), [VkKeyScanW(3w)](/man/VkKeyScanW/3w.md), [GetKeyboardType(3w)](/man/GetKeyboardType/3w.md), [MapVirtualKeyA(3w)](/man/MapVirtualKeyA/3w.md), [GetKBCodePage(3w)](/man/GetKBCodePage/3w.md), [GetKeyboardLayoutNameA(3w)](/man/GetKeyboardLayoutNameA/3w.md), [GetKeyboardLayoutNameW(3w)](/man/GetKeyboardLayoutNameW/3w.md), [GetKeyNameTextA(3w)](/man/GetKeyNameTextA/3w.md), [GetKeyNameTextW(3w)](/man/GetKeyNameTextW/3w.md), [ToAscii(3w)](/man/ToAscii/3w.md), [GetKeyboardLayout(3w)](/man/GetKeyboardLayout/3w.md), [GetKeyboardLayoutList(3w)](/man/GetKeyboardLayoutList/3w.md), [RegisterHotKey(3w)](/man/RegisterHotKey/3w.md), [UnregisterHotKey(3w)](/man/UnregisterHotKey/3w.md)
