IOCTL_PAR_QUERY_RAW_DEVICE_ID - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddpar.h

// CTL_CODE(0x0016, 0x00c, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_PAR_QUERY_RAW_DEVICE_ID 0x00160030
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

IOCTL_PAR_QUERY_RAW_DEVICE_ID IOCTL

Major Code:

IRP_MJ_DEVICE_CONTROL

Description

The IOCTL_PAR_QUERY_RAW_DEVICE_ID request returns a raw device ID, which includes the following: a two-byte prefix that specifies the size, in bytes, of the device's IEEE 1284 device ID; the 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 buffer that the client allocates to output a raw device ID. The buffer contains the following contiguous sequence of information: a two-byte prefix that specifies the size, in bytes, of the device's IEEE 1284 device ID; 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 the following: a two-byte prefix that specifies the size, in bytes, of the device's IEEE 1284 device ID; the device ID; and a NULL terminator. An IEEE 1284 device ID can be up to 64 KB in size.

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 the information returned in the output buffer. 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:

STATUS_BUFFER_TOO_SMALL

The output buffer that AssociatedIrp.SystemBuffer points to is less than the size, in bytes, of a two-byte prefix, the IEEE 1284 device ID, and a NULL terminator.

STATUS_IO_DEVICE_ERROR

A device I/O error occurred.

See also

IOCTL_PAR_QUERY_DEVICE_ID

IOCTL_PAR_QUERY_DEVICE_ID_SIZE