Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1003 Bytes

GetKeyboardState.md

File metadata and controls

42 lines (29 loc) · 1003 Bytes

Home

Function name : GetKeyboardState

Group: Keyboard Input - Library: user32


The GetKeyboardState function copies the status of the 256 virtual keys to the specified buffer.


Code examples:

Reading virtual key status values and key names
Capturing keyboard activity of another application with the Raw Input API (VFP9)

Declaration:

BOOL GetKeyboardState(
  PBYTE lpKeyState   // array of status data
);  

FoxPro declaration:

DECLARE INTEGER GetKeyboardState IN user32;
	STRING @lpKeyState  

Parameters:

lpKeyState [in] Pointer to the 256-byte array that will receive the status data for each virtual key.


Return value:

If the function succeeds, the return value is nonzero.