Share via


PFN_KEYBD_DRIVER_SET_MODE (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

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 Value

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. For more information, see NotifyWinUserSystem.

Requirements

Header keybddr.h
Library layoutmanager.lib
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Keyboard Driver MDD Functions
KBDI_AUTOREPEAT_INFO
PFN_KEYBD_DRIVER_GET_INFO

Other Resources

NotifyWinUserSystem