次の方法で共有


PFN_KEYBD_DRIVER_SET_MODE (Compact 2013)

3/26/2014

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

See Also

Reference

Keyboard Driver MDD Functions
KBDI_AUTOREPEAT_INFO
PFN_KEYBD_DRIVER_GET_INFO

Other Resources

NotifyWinUserSystem