// genericusbfnioctl.h
// CTL_CODE(0x0022, 0x009, METHOD_OUT_DIRECT, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
#define IOCTL_GENERICUSBFN_GET_PIPE_STATE 0x0022C026
View the official Win32 API referenceNo description available.
This I/O control code (IOCTL) is sent by a user-mode service or application to get the state of the specified Universal Serial Bus (USB) pipe.
A USBFNPIPEID that specifies the ID of the pipe to retrieve state information for.
The size of a USBFNPIPEID.
Contains a BOOLEAN value that specifies whether the specified pipe is stalled. A value of TRUE if the specified pipe is stalled; FALSE if otherwise.
The size of the output buffer in bytes.
Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful. Otherwise, Status to the appropriate error condition as a NTSTATUS code.
If this I/O control code (IOCTL) is being called synchronously, set the lpOverlapped parameter to NULL. If this IOCTL is called asynchronously, assign the lpOverlapped parameter to a pointer to an OVERLAPPED structure that contains a handle to an event object. The event objects signal when the operation is completed.
The return value is a BOOL value that indicates success or failure of the operation. TRUE indicates success, FALSE otherwise.
IOCTL_GENERICUSBFN_SET_PIPE_STATE