IOCTL_INTERNAL_PARALLEL_SET_CHIP_MODE - NtDoc

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

// CTL_CODE(0x0016, 0x013, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_INTERNAL_PARALLEL_SET_CHIP_MODE 0x0016004C
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ni-parallel-ioctl_internal_parallel_set_chip_mode)

IOCTL_INTERNAL_PARALLEL_SET_CHIP_MODE IOCTL

Major Code:

IRP_MJ_DEVICE_CONTROL

Description

The IOCTL_INTERNAL_PARALLEL_SET_CHIP_MODE request sets the operating mode of a parallel port.

For more information, see Setting and Clearing the Communication Mode on a ParallelPort.

Parameters

Major code

IRP_MJ_INTERNAL_DEVICE_CONTROL

Input buffer

The AssociatedIrp.SystemBuffer member points to a PARALLEL_CHIP_MODE structure that the client allocates to input chip mode information. The client sets the ChipMode member to the requested operating mode.

Input buffer length

The Parameters.DeviceIoControl.InputBufferLength member is set to the size, in bytes, of a PARALLEL_CHIP_MODE structure.

Output buffer

None.

Output buffer length

None.

Input/output buffer

Input/output buffer length

Status block

The Information member is set to zero.

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

STATUS_BUFFER_TOO_SMALL

The value of the Parameters.DeviceIoControl.InputBufferLength member is less than the size, in bytes, of a PARALLEL_CHIP_MODE structure.

STATUS_INVALID_DEVICE_STATE

The mode is not cleared.

STATUS_NO_SUCH_DEVICE

The requested operating mode is not valid.

See also

IOCTL_INTERNAL_PARALLEL_CLEAR_CHIP_MODE

PARALLEL_CHIP_MODE