// usbfnioctl.h
// CTL_CODE(0x002a, 0x00d, METHOD_OUT_DIRECT, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
#define IOCTL_INTERNAL_USBFN_BUS_EVENT_NOTIFICATION 0x002AC036
View the official Windows Driver Kit DDI referenceNo description available.
The USB class driver sends this request to prepare for notifications received from the USB function class extension (UFX) in response to an event on the bus, such as a change in the port type or a receipt of a non-standard setup packet.
IRP_MJ_INTERNAL_DEVICE_CONTROL
NULL.
None.
A pointer to a caller-allocated USBFN_NOTIFICATION structure that UFX populates with the type of bus event and data associated with that event.
The size of a USBFN_NOTIFICATION structure.
If the request is successful, the USB function class extension (UFX) returns STATUS_SUCCESS, or another status value for which NT_SUCCESS(status) equals TRUE. Otherwise it returns a status value for which NT_SUCCESS(status) equals FALSE.
UFX completes this request in response to an event on the bus. It is recommended that class drivers send multiple requests at a time to make sure that critical notifications are not missed.