How to handle interface-directed standard GET_DESCRIPTOR (HID Report Descriptor 0x22) in genericusbfn.sys on Windows 11 ARM64?
Hi team,
I am developing a user-mode USB function application on Windows 11 ARM64 using the in-box genericusbfn.sys driver to emulate a standard USB HID keyboard.
Currently, class-specific requests such as SET_IDLE (bmRequestType = 0x21) are properly routed to my user-mode application via UsbfnEventSetupPacket. However, when the USB host sends a standard GET_DESCRIPTOR request targeting the HID interface (bmRequestType = 0x81, bRequest = 0x06, wValue = 0x2200) to retrieve the HID Report Descriptor per the USB HID 1.11 specification, the UFX class extension immediately responds with a STALL on Endpoint 0 without forwarding the setup packet to genericusbfn.sys.
Is there a supported way for a genericusbfn.sys user-mode service to receive and respond to interface-directed standard GET_DESCRIPTOR requests (descriptor type 0x22), or does the UFX framework only route BMREQUEST_CLASS and BMREQUEST_VENDOR setup packets to upper-layer function drivers?