IOCTL_PAR_QUERY_INFORMATION IOCTL

The IOCTL_PAR_QUERY_INFORMATION request returns the status of an IEEE 1284 end-of-chain device.

Major Code

IRP_MJ_DEVICE_CONTROL

Input Buffer

None.

Input Buffer Length

None.

Output Buffer

The AssociatedIrp.SystemBuffer member points to a PAR_QUERY_INFORMATION structure that the client allocates to output status information. The system-supplied bus driver for parallel ports sets the Status member to a bitwise OR of one or more of the following operating conditions:

PARALLEL_BUSY

PARALLEL_NOT_CONNECTED

PARALLEL_OFF_LINE

PARALLEL_PAPER_EMPTY

PARALLEL_POWER_OFF

PARALLEL_SELECTED

Output Buffer Length

The Parameters.DeviceIoControl.OutputBufferLength member is set to the size, in bytes, of a PAR_QUERY_INFORMATION structure.

Status Block

If the request is successful, the Information member is set to the size, in bytes, of a PAR_QUERY_INFORMATION structure. Otherwise, the Information is set to zero.

The Status member is set to one of the generic status values returned by device control requests for parallel devices or to the following value:

Requirements

   
Header ntddpar.h (include Ntddpar.h)

See Also

PAR_QUERY_INFORMATION

IOCTL_PAR_QUERY_LOCATION