KeybdDriverInitStates

This function initializes the virtual key state and driver specific state.

Syntax

BOOL KeybdDriverInitStates( INT iKeybdId, KEY_STATE KeyState,
void *
pKeybdDeviceToUnicodeState );

Parameters

iKeybdId
Identifier of the keyboard for which to initialize keystate data.
KeyState
Specifies the key state to initialize.
pKeybdDeviceToUnicodeState
Specifies the keyboard-specific state to initialize.

Remarks

After calling the KeybdDriverGetInfo function and allocating its required memory, the input system calls this function to enable the driver to initialize the memory.

The pKeybdDriverToUnicodeState parameter is a pointer to a block of memory of at least cbToUnicodeState bytes, as reported by the KeybdDriverGetInfo function in the KBDI_VKEY_TO_UNICODE_INFO structure. If cbToUnicodeState is reported as 0, this parameter may be NULL.

This function must be re-entrant, since it is exposed by the input system through the KeybdInitStates function and may be called by multiple threads.

This function is defined in the Keybdmdd.cpp file.

See Also

KeybdDriverGetInfo