HIDDeviceAttach

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This function loads a HID device driver. It is required for HID client drivers.

Syntax

BOOL HidDeviceAttach(
  HID_HANDLE hDevice, 
  PCHID_FUNCS pHidFuncs,
  const HID_DRIVER_SETTINGS* pDriverSettings,
  PHIDP_PREPARSED_DATA phidpPreparsedData,
  PVOID* ppvNotifyParameter,
  DWORD dwUnused
);

Parameters

  • hDevice
    [in] Handle to a HID device.
  • pHidFuncs
    [in] Pointer to a HID function table.
  • pDriverSettings
    [in] Pointer to a HID_DRIVER_SETTINGS structure that indicates how the driver is loaded.
  • ppvNotifyParameter
    [out] Client-supplied value.
  • dwUnused
    [in] Reserved for use with future versions of HID drivers.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

All HID client drivers must expose this function.

Requirements

Header hiddi.h
Library Conshid_lib.lib, Kbdhid_lib.lib, Mouhid_lib.lib
Windows Embedded CE Windows CE .NET 4.2 and later

See Also

Reference

HID Driver Registry Settings
HIDDeviceNotifications
HIDP_PREPARSED_DATA