UfxEndpointNotifySetup function (ufxclient.h)
Notifies UFX when the client driver receives a setup packet from the host.
Syntax
void UfxEndpointNotifySetup(
UFXENDPOINT UfxEndpoint,
[in] PUSB_DEFAULT_PIPE_SETUP_PACKET SetupInfo
);
Parameters
UfxEndpoint
A handle to a UFX device object that the driver created by calling UfxDeviceCreate.
[in] SetupInfo
A pointer to a USB setup packet described in a USB_DEFAULT_PIPE_SETUP_PACKET structure (defined in Usbspec.h).
Return value
None
Remarks
The following example shows how to handle setup packet completion.
if (ControlContext->SetupRequested) {
TRACE_TRANSFER("COMPLETE (Setup)", Endpoint, NULL);
ControlContext->SetupRequested = FALSE;
TransferContext->TransferStarted = FALSE;
UfxEndpointNotifySetup(Endpoint, ControlContext->SetupPacket);
}
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 |
Target Platform | Windows |
Header | ufxclient.h |
Library | ufxstub.lib |
IRQL | DISPATCH_LEVEL |