// usbprint.h
// CTL_CODE(0x0022, 0x00c, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_USBPRINT_GET_LPT_STATUS 0x00220030
View the official Windows Driver Kit DDI referenceNo description available.
The IOCTL_USBPRINT_GET_LPT_STATUS request allows upper-layer software (such as a language monitor), to request and obtain the printer status byte from a USB printer.
Not used in this operation; set this parameter to NULL.
Not used in this operation; set this parameter to 0.
Pointer to a DWORD containing the printer status.
sizeof(DWORD)
Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful. Otherwise, Status to the appropriate error condition as an NTSTATUS code.
Creating IOCTL Requests in Drivers
WdfIoTargetSendInternalIoctlOthersSynchronously
WdfIoTargetSendInternalIoctlSynchronously
WdfIoTargetSendIoctlSynchronously