Partager via


HIDDeviceAttach (Windows Embedded CE 6.0)

1/6/2010

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 Functions
HID Driver Registry Settings
HIDDeviceNotifications
HIDP_PREPARSED_DATA