KeybdGetDeviceInfo
A version of this page is also available for
4/8/2010
This function returns information about the keyboard and the keyboard driver.
Syntax
BOOL KeybdGetDeviceInfo(
INT iIndex,
LPVOID lpOutput
);
Parameters
iIndex
[in] Identifier of the information to retrieve. The following table shows the identifiers and their descriptions.Identifier Description KBDI_VKEY_TO_UNICODE_INFO_ID
Retrieves Unicode conversion information.
KBDI_AUTOREPEAT_INFO_ID
Retrieves keyboard auto-repeat information.
KBDI_AUTOREPEAT_SELECTIONS_INFO_ID
Retrieves keyboard auto-repeat selections information.
KBDI_KEYBOARD_STATUS_ID
Retrieves a keyboard status identifier.
- lpOutput
[out] Pointer to the output buffer.
Return Value
TRUE indicates success. FALSE indicates failure. To obtain extended error information, call the GetLastError function.
Remarks
This function is part of GWES and directly calls the driver's PFN_KEYBD_DRIVER_GET_INFO** function if iIndex is not KBDI_KEYBOARD_STATUS_ID.** If iIndex is KBDI_KEYBOARD_STATUS_ID, this routine fills lpOutput with a DWORD combining KBDI_KEYBOARD_PRESENT, KBDI_KEYBOARD_ENABLED, KBDI_KEYBOARD_ENTER_ESC, and KBDI_KEYBOARD_ALPHA_NUM. The KBDI_KEYBOARD_ENABLED reflects the current keyboard status. The other bits are set in the registry through the HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\KEYBD\Status key.
Requirements
Header | pwinuser.h |
Library | coredll.lib |
Windows Embedded CE | Windows CE 1.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |