IOCTL_PAR_QUERY_DEVICE_ID_SIZE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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 reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ni-ntddpar-ioctl_par_query_device_id_size)

IOCTL_PAR_QUERY_DEVICE_ID_SIZE IOCTL

Major Code:

IRP_MJ_DEVICE_CONTROL

Description

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.

Parameters

Major code

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.

Input/output buffer

Input/output buffer length

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

See also

IOCTL_PAR_QUERY_DEVICE_ID

PAR_DEVICE_ID_SIZE_INFORMATION