Group: Keyboard Input - Library: user32
Reading virtual key status values and key names
int GetKeyNameText(
LONG lParam,
LPTSTR lpString,
int nSize
); DECLARE INTEGER GetKeyNameText IN user32;
INTEGER lParam,;
STRING @ lpString,;
INTEGER nSize
lParam [in] Specifies the second parameter of the keyboard message (such as WM_KEYDOWN) to be processed.
lpString [out] Pointer to a buffer that will receive the key name.
nSize [in] Specifies the maximum length, in TCHAR, of the key name, including the terminating null character.
If the function succeeds, a null-terminated string is copied into the specified buffer, and the return value is the length of the string, in TCHAR, not counting the terminating null character.
Home