IOCTL_PAR_QUERY_DEVICE_ID_SIZE IOCTL

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.

Major Code

IRP_MJ_DEVICE_CONTROL

Input Buffer

None.

Input Buffer Length

None.

Output Buffer

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.

Status Block

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

Requirements

   
Header ntddpar.h (include Ntddpar.h)

See Also

IOCTL_PAR_QUERY_DEVICE_ID

PAR_DEVICE_ID_SIZE_INFORMATION