// udecxurb.h
NTSTATUS UdecxUrbRetrieveControlSetupPacket(
[in] WDFREQUEST Request,
[out] PWDF_USB_CONTROL_SETUP_PACKET SetupPacket
);
View the official Windows Driver Kit DDI referenceNo description available.
Retrieves a USB control setup packet from a specified framework request object.
Request [in]A handle to a framework request object that represents the request containing the setup packet.
SetupPacket [out]A WDF_USB_CONTROL_SETUP_PACKET structure that receives a setup packet describing the USB control transfer.
The method returns STATUS_SUCCESS if the operation succeeds. Otherwise, this method might return an appropriate NTSTATUS error code.
The client driver can inspect contents of the setup packet to determine the standard control request that is sent to the device.
To complete the request, the driver must call UdecxUrbCompleteWithNtStatus.
Architecture: USB Device Emulation (UDE)