void Enable(eventProc, lpKeyState) | |||
FARPROC eventProc; | |||
LPBYTE lpKeyState; |
The Enable function installs the hardware interrupt for Windows, and performs the necessary initialization of the driver.
eventProc
Points to Windows keyboard-event function.
lpKeyState
Points to the 256-byte, Windows virtual key-state array.
This function has no return value.
The export ordinal for this function is 2.
The Enable function saves the address of the original keyboard hardware-interrupt handler in static memory. The driver maintains the shift and numeric lock state, and the state of indicator lights. Linkage with a language-specific keyboard library should be established (if one exists).
Enable is called once when you start Windows. It is also called when returning to Windows from a full-screen application for which the keyboard was disabled.