IOCTL_RESET_PIPE IOCTL (usbscan.h)

Resets the specified USB transfer pipe that is associated with the specified device handle.

Major code

IRP_MJ_DEVICE_CONTROL

Input buffer

Pointer to a location that contains a value of type PIPE_TYPE.

Input buffer length

Size of the input buffer.

Output buffer

NULL.

Output buffer length

Zero.

Status block

Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful. Otherwise, Status to the appropriate error condition as a NTSTATUS code.

Remarks

DeviceIoControl Parameters

When the DeviceloControl function is called with the IOCTL_RESET_PIPE I/O control code, the caller must specify one of the PIPE_TYPE-typed values as the function's lpInBuffer parameter. This value indicates on which of the transfer pipes (interrupt, bulk IN, bulk OUT) the operation should be performed. For more information, see Accessing Kernel-Mode Drivers for Still Image Devices.

Requirements

Requirement Value
Header usbscan.h (include Usbscan.h)