// ntddpar.h
// CTL_CODE(0x0016, 0x009, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_PAR_GET_DEVICE_CAPS 0x00160024
View the official Windows Driver Kit DDI referenceNo description available.
The IOCTL_PAR_GET_DEVICE_CAPS request does the following:
For more information, see Setting and Clearing a Communication Mode for a Parallel Device.
The AssociatedIrp.SystemBuffer member points to a USHORT buffer that the client allocates to input and output mode information. The request sets the input buffer to a bitwise OR of the modes that the parallel port bus driver must not use with a parallel device.
The length of a USHORT.
AssociatedIrp.SystemBuffer points to the USHORT buffer that the parallel port bus driver uses to output mode information. The parallel port bus driver sets the buffer to indicate which operating protocols the parallel device supports.
The Parameters.DeviceIoControl.OutputBufferLength member is set to the size, in bytes, of a USHORT.
The Information member is set to the size, in bytes, of a USHORT.
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:
STATUS_BUFFER_TOO_SMALL
The Parameters.DeviceIoControl.OutputBufferLength member is less than the size, in bytes, of a USHORT.