Partager via


HIDDeviceAttach (Compact 2013)

3/26/2014

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.

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

See Also

Reference

HID Driver Functions
HID Driver Registry Settings
HIDDeviceNotifications
HIDP_PREPARSED_DATA