IOCTL_HID_DEVICERESET_NOTIFICATION - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// hidclass.h

// CTL_CODE(0x000b, 0x08c, METHOD_NEITHER, FILE_ANY_ACCESS)
#define IOCTL_HID_DEVICERESET_NOTIFICATION 0x000B0233
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ni-hidclass-ioctl_hid_devicereset_notification)

IOCTL_HID_DEVICERESET_NOTIFICATION IOCTL

Description

The IOCTL_HID_DEVICERESET_NOTIFICATION request is sent by the HID client driver to HID class driver to wait for a device-initiated reset event. This request can also be sent by the HID Class driver to the HID Minidriver to wait for a device-initiated reset event.

Only one device reset notification request is allowed at any one time.

A HID minidriver can enable this feature by adding a registry value in the INF file. The DeviceResetNotificationEnabled under the device's hardware key must be set to 1 to enable the feature. Here is an example:

[hidi2c_Device.NT.HW] AddReg = hidi2c_Device.Filter.AddReg, hidi2c_Device.Configuration.AddReg

...

[hidi2c_Device.Configuration.AddReg]

...

HKR,,"DeviceResetNotificationEnabled",0x00010001,1

Parameters

Major code

Input buffer

None.

Input buffer length

None.

Output buffer

None.

Output buffer length

None.

Input/output buffer

Input/output buffer length

Status block

Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful. Otherwise, Status to the appropriate error condition as a NTSTATUS code.