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.
Input Buffer Length
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.
Output Buffer Length
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
|Header||ntddpar.h (include Ntddpar.h)|