Group: Keyboard Input - Library: user32
How to activate Windows Calculator
VOID keybd_event(
BYTE bVk,
BYTE bScan,
DWORD dwFlags,
PTR dwExtraInfo
);
DECLARE keybd_event IN user32;
SHORT bVk,;
SHORT bScan,;
INTEGER dwFlags,;
INTEGER dwExtraInfo
bVk [in] Specifies a virtual-key code. The code must be a value in the range 1 to 254. For a complete list, see Virtual-Key Codes.
bScan This parameter is not used.
dwFlags [in] Specifies various aspects of function operation.
dwExtraInfo [in] Specifies an additional value associated with the key stroke.
This function has no return value.
The system can use such a synthesized keystroke to generate a WM_KEYUP or WM_KEYDOWN message. The keyboard driver"s interrupt handler calls the keybd_event function.
List of Virtual Key Codes.