IOCTL_USBPRINT_SET_PROTOCOL IOCTL

Set the current printer protocol code of the USB printer interface.

Major Code

IRP_MJ_DEVICE_CONTROL

Input Buffer

Pointer to a DWORD

Input Buffer Length

sizeof(DWORD)

Output Buffer

NULL

Output Buffer Length

0

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.

For more information, see NTSTATUS Values.

Remarks

IOCTL_USBPRINT_SET_PROTOCOL supports the following values:

Defined constant Value
USB_PRINTER_PROTOCOL_BIDI 2

If an interface supports IPP over USB, then it is started in the IPP over USB protocol. If the Windows print system detects that IHV drivers have been installed for the printer, then it will switch the printer back to BIDI.

Requirements

   
Header usbprint.h