// ntddpar.h
// CTL_CODE(0x0016, 0x004, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_PAR_QUERY_DEVICE_ID_SIZE 0x00160010
View the official Windows Driver Kit DDI referenceNo description available.
The IOCTL_PAR_QUERY_DEVICE_ID_SIZE request returns the size, in bytes, of a buffer that can hold a device's IEEE 1284 device ID and a NULL terminator.
None.
None.
The AssociatedIrp.SystemBuffer member points to a PAR_DEVICE_ID_SIZE_INFORMATION structure that the client allocates to output the device ID size information. The system-supplied bus driver for parallel ports sets the DeviceIdSize member of the output structure to the size, in bytes, of a buffer that can hold the device ID and a NULL terminator.
The length of a PAR_DEVICE_ID_SIZE_INFORMATION structure.
If the request is successful, the Information member is set to the size, in bytes, of a PAR_DEVICE_ID_SIZE_INFORMATION structure. Otherwise, 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 STATUS_IO_DEVICE_ERROR
PAR_DEVICE_ID_SIZE_INFORMATION