Compartir a través de


KeybdGetDeviceInfo (Windows CE 5.0)

Send Feedback

This function returns information about the keyboard and the keyboard driver.

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 Values

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

OS Versions: Windows CE 1.0 and later.
Header: Pwinuser.h.
Link Library: Coredll.lib.

See Also

PFN_KEYBD_DRIVER_GET_INFO | Keyboard Drivers

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.