UdecxUrbRetrieveControlSetupPacket - NtDoc

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

NTSTATUS UdecxUrbRetrieveControlSetupPacket(
  [in]  WDFREQUEST                    Request,
  [out] PWDF_USB_CONTROL_SETUP_PACKET SetupPacket
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-udecxurb-udecxurbretrievecontrolsetuppacket)

UdecxUrbRetrieveControlSetupPacket function

Description

Retrieves a USB control setup packet from a specified framework request object.

Parameters

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.

Return value

The method returns STATUS_SUCCESS if the operation succeeds. Otherwise, this method might return an appropriate NTSTATUS error code.

Remarks

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.

See also

Architecture: USB Device Emulation (UDE)

Write a UDE client driver