// usbprint.h
// CTL_CODE(0x0022, 0x011, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_USBPRINT_GET_PROTOCOL 0x00220044
View the official Windows Driver Kit DDI referenceNo description available.
Retrieve the current printer protocol code of the USB printer interface.
NULL
0
Pointer to a DWORD
sizeof(DWORD)
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.
IOCTL_USBPRINT_GET_PROTOCOL returns one of the following values:
| Defined constant | Value |
|---|---|
| USB_PRINTER_PROTOCOL_BIDI | 2 |
| USB_PRINTER_PROTOCOL_IPPOVERUSB | 4 |