Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieve the current printer protocol code of the USB printer interface.
Major code
Input buffer
NULL
Input buffer length
0
Output buffer
Pointer to a DWORD
Output buffer length
sizeof(DWORD)
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_GET_PROTOCOL returns one of the following values:
Defined constant | Value |
---|---|
USB_PRINTER_PROTOCOL_BIDI | 2 |
USB_PRINTER_PROTOCOL_IPPOVERUSB | 4 |
Requirements
Requirement | Value |
---|---|
Header | usbprint.h (include Usbprint.h) |