Group: Keyboard Input - Library: user32
Reading virtual key status values and key names
Capturing keyboard activity of another application with the Raw Input API (VFP9)
BOOL GetKeyboardState(
PBYTE lpKeyState // array of status data
);
DECLARE INTEGER GetKeyboardState IN user32;
STRING @lpKeyState
lpKeyState [in] Pointer to the 256-byte array that will receive the status data for each virtual key.
If the function succeeds, the return value is nonzero.