// ntddpar.h
// CTL_CODE(0x0016, 0x002, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_PAR_SET_INFORMATION 0x00160008
View the official Windows Driver Kit DDI referenceNo description available.
The IOCTL_PAR_SET_INFORMATION request resets and initializes a parallel device.
The AssociatedIrp.SystemBuffer member points to a PAR_SET_INFORMATION structure that the client allocates to input set information. The client sets the Init member to PARALLEL_INIT.
The Parameters.DeviceIoControl.InputBufferLength member is set to the size, in bytes, of a PAR_SET_INFORMATION structure.
None.
None.
The Information member 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 one of the following values:
STATUS_BUFFER_TOO_SMALL
Parameters.DeviceIoControl.InputBufferLength is less than the size, in bytes, of a PAR_SET_INFORMATION structure.
STATUS_DEVICE_NOT_CONNECTED
The device is not connected.
STATUS_DEVICE_OFF_LINE
The device is offline.
STATUS_DEVICE_PAPER_EMPTY
The device is out of paper.
STATUS_DEVICE_POWERED_OFF
The device is not turned on.