IOCTL_PAR_GET_DEVICE_CAPS - NtDoc

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

// CTL_CODE(0x0016, 0x009, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_PAR_GET_DEVICE_CAPS 0x00160024
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

IOCTL_PAR_GET_DEVICE_CAPS IOCTL

Major Code:

IRP_MJ_DEVICE_CONTROL

Description

The IOCTL_PAR_GET_DEVICE_CAPS request does the following:

For more information, see Setting and Clearing a Communication Mode for a Parallel Device.

Parameters

Major code

Input buffer

The AssociatedIrp.SystemBuffer member points to a USHORT buffer that the client allocates to input and output mode information. The request sets the input buffer to a bitwise OR of the modes that the parallel port bus driver must not use with a parallel device.

Input buffer length

The length of a USHORT.

Output buffer

AssociatedIrp.SystemBuffer points to the USHORT buffer that the parallel port bus driver uses to output mode information. The parallel port bus driver sets the buffer to indicate which operating protocols the parallel device supports.

Output buffer length

The Parameters.DeviceIoControl.OutputBufferLength member is set to the size, in bytes, of a USHORT.

Input/output buffer

Input/output buffer length

Status block

The Information member is set to the size, in bytes, of a USHORT.

The Status member is set to one of the generic status values returned by device control requests for parallel devices or to the following value:

STATUS_BUFFER_TOO_SMALL

The Parameters.DeviceIoControl.OutputBufferLength member is less than the size, in bytes, of a USHORT.

See also

IOCTL_IEEE1284_GET_MODE

IOCTL_IEEE1284_NEGOTIATE