HIDDeviceAttach (Windows CE 5.0)

Send Feedback

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

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.
  • phidpPreparsedData
    [in] Pointer to a HIDP_PREPARSED_DATA structure.
  • ppvNotifyParameter
    [out] Client-supplied value.
  • dwUnused
    [in] Reserved for use with future versions of HID drivers.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

All HID client drivers must expose this function.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Hiddi.h.
Link Library: Conshid_lib.lib, Kbdhid_lib.lib, or Mouhid_lib.lib.

See Also

HID Driver Registry Settings | HIDDeviceNotifications | HIDP_PREPARSED_DATA

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.