Enable


void Enable(FARPROC eventProc, LPBYTE lpKeyState);

Installs the hardware interrupt for Windows, and performs the necessary initialization of the driver.

eventProc

Address if Windows keyboard-event function.

lpKeyState

Address of the 256-byte, Windows virtual key-state array.

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.

See also Disable