The IOCTL_PAR_QUERY_DEVICE_ID request returns the IEEE 1284 device ID of a parallel device assigned by the system-supplied function driver for parallel ports.
Input Buffer Length
The AssociatedIrp.SystemBuffer member points to a buffer that the client allocates to output the device ID. The buffer contains the device ID and a NULL terminator.
Output Buffer Length
The Parameters.DeviceIoControl.OutputBufferLength member specifies the size, in bytes, of the output buffer that can hold both the device ID and a NULL terminator. A client can use an IOCTL_PAR_QUERY_DEVICE_ID_SIZE request to determine the required buffer size. A device ID can be up to 64 KB in size.
If the request is successful, the Information member is set to the size, in bytes, of a buffer that holds both the device ID and a NULL terminator. 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 one of the following values:
|Header||ntddpar.h (include Ntddpar.h)|