HID_MINIDRIVER_REGISTRATION structure (hidport.h)

The HID_MINIDRIVER_REGISTRATION structure contains registration information that a HID minidriver passes to the HID Client Drivers when the minidriver registers with the class driver.

Syntax

typedef struct _HID_MINIDRIVER_REGISTRATION {
  ULONG           Revision;
  PDRIVER_OBJECT  DriverObject;
  PUNICODE_STRING RegistryPath;
  ULONG           DeviceExtensionSize;
  BOOLEAN         DevicesArePolled;
  UCHAR           Reserved[3];
} HID_MINIDRIVER_REGISTRATION, *PHID_MINIDRIVER_REGISTRATION;

Members

Revision

Specifies the HID version that this minidriver supports.

DriverObject

Pointer to the minidriver's DRIVER_OBJECT.

RegistryPath

Pointer to the minidriver's registry path.

DeviceExtensionSize

Specifies the length, in bytes, that the minidriver requests for a device extension.

DevicesArePolled

Specifies that the devices on the bus that this minidriver supports must be polled in order to obtain data from the device.

Reserved[3]

Reserved for internal system use.

Remarks

When a HID minidriver calls HidRegisterMinidriver, it uses this structure to pass information to the HID class driver. The minidriver must zero-initialize this structure before setting members. A minidriver sets the members DriverObject and RegistryPath to the driver object and registry path parameters that are passed to the minidriver as system-supplied parameters to its DriverEntry routine. Revision should be set to HID_REVISION.

Requirements

Requirement Value
Header hidport.h (include Hidport.h)

See also

DriverEntry

HidRegisterMinidriver