1 out of 1 rated this helpful - Rate this topic

HidRegisterMinidriver routine

The HidRegisterMinidriver routine is called by HID minidrivers, during their initialization, to register with the HID class driver.

Syntax


NTSTATUS HidRegisterMinidriver(
  _In_  PHID_MINIDRIVER_REGISTRATION MinidriverRegistration
);

Parameters

MinidriverRegistration [in]

Pointer to a caller-allocated buffer that contains an initialized HID_MINIDRIVER_REGISTRATION structure for the minidriver.

Return value

HidRegisterMinidriver returns one of the following NTSTATUS codes:

Return codeDescription
STATUS_SUCCESS

Indicates that the routine completed without error and the minidriver is now registered with the HID class driver.

STATUS_INSUFFICIENT_RESOURCES

Indicates that there was insufficient memory for the system to register the minidriver.

STATUS_REVISION_MISMATCH

Indicates that the HID revision number provided in MinidriverRegistration->Revision is not supported by this version of the HID class driver.

 

Remarks

Before calling this routine, HID minidrivers must initialize all members of the HID_MINIDRIVER_REGISTRATION structure that is provided at MinidriverRegistration. For information about these members, see HID_MINIDRIVER_REGISTRATION.

For more information, see HID Collections.

Requirements

Version

Available in Windows 2000 and later versions of Windows.

Header

Hidport.h (include Hidport.h)

Library

Contained in Hid.lib. Link to Hid.lib.

IRQL

<= DISPATCH_LEVEL

See also

HID_MINIDRIVER_REGISTRATION

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.