IOCTL_USBPRINT_GET_LPT_STATUS IOCTL (usbprint.h)

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.

Major code

IRP_MJ_DEVICE_CONTROL

Input buffer

Not used in this operation; set this parameter to NULL.

Input buffer length

Not used in this operation; set this parameter to 0.

Output buffer

Pointer to a DWORD containing the printer status.

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 an NTSTATUS code.

Requirements

Requirement Value
Header usbprint.h

See also

Creating IOCTL Requests in Drivers

WdfIoTargetSendInternalIoctlOthersSynchronously

WdfIoTargetSendInternalIoctlSynchronously

WdfIoTargetSendIoctlSynchronously