PFN_KEYBD_DRIVER_SET_MODE (Windows CE 5.0)

Send Feedback

The function based on this prototype sets auto-repeat information for the keyboard device.

typedef BOOL (*PFN_KEYBD_DRIVER_SET_MODE)(  INT iKeybdId,  INT iIndex,  LPVOID lpInput);

Parameters

  • iKeybdId
    [in] Ignored.
  • iIndex
    [in] Identifier to set keyboard auto-repeat information or not. Set to the KBDI_AUTOREPEAT_INFO_ID to set auto-repeat information. If set to KBDI_AUTOREPEAT_INFO_ID, lpInput must point to a KBDI_AUTOREPEAT_INFO structure.
  • lpInput
    [in] Pointer to an input buffer. iIndex controls the format of the buffer.

Return Values

TRUE indicates success. FALSE indicates failure. To obtain extended error information, call the GetLastError function.

Remarks

This function sets the auto-repeat settings that apply to every keyboard. The keyboard identifier is ignored. This method can cause a IOCTL_HID_SET_AUTOREPEAT to be sent to human interface device (HID) keyboards.

This function is called by GWES in response to an application making a call to NotifyWinUserSystem with NWUS_KEYBD_REPEAT_CHANGED as a parameter.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Keybddr.h.
Link Library: LayoutManager.lib.

See Also

KBDI_AUTOREPEAT_INFO | NotifyWinUserSystem | PFN_KEYBD_DRIVER_GET_INFO

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.