// usbfnioctl.h
// CTL_CODE(0x002a, 0x008, METHOD_OUT_DIRECT, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
#define IOCTL_INTERNAL_USBFN_GET_CLASS_INFO 0x002AC022
View the official Windows Driver Kit DDI referenceNo description available.
The class driver sends this request IO control code to retrieve information about the available pipes for a device, as configured in the registry.
IRP_MJ_INTERNAL_DEVICE_CONTROL
NULL.
None.
A pointer to a buffer that contains a USBFN_CLASS_INFORMATION_PACKET structure. Upon completion, UFX populates the structure with the name, the device interface GUID, and details of the interface when operating at a particular bus speed.
The size of a USBFN_CLASS_INFORMATION_PACKET 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.
The class driver should send this IOCTL request during initialization so that it can enumerate the endpoints and attributes.