IOCTL_USBPRINT_GET_1284_ID IOCTL

The IOCTL_USBPRINT_GET_1284_ID control code allows upper-layer software (such as a language monitor), to request and obtain the printer's IEEE 1284 device ID string.

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

The output buffer will contain UCHAR data. On success this buffer can hold the following: a two-byte prefix that specifies the size, in bytes, of the device's IEEE 1284 device ID; the device ID; and a null terminator. An IEEE 1284 device ID can be up to 64 KB in size. On failure, if GetLastErrorreturns the error code STATUS_BUFFER_TOO_SMALL, the output buffer was not large enough to hold the data intended for it.

Output Buffer Length

The output buffer must be large enough to contain a two-byte quantity holding the length of the device's IEEE 1284 device ID, the device ID (up to 64 KB in size), and a terminating null.

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.

Requirements

   
Header usbprint.h

See Also

Creating IOCTL Requests in Drivers

WdfIoTargetSendInternalIoctlOthersSynchronously

WdfIoTargetSendInternalIoctlSynchronously

WdfIoTargetSendIoctlSynchronously