IOCTL_INTERNAL_PARALLEL_SET_CHIP_MODE IOCTL (parallel.h)

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.

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.

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.

Requirements

Requirement Value
Header parallel.h (include Parallel.h)

See also

IOCTL_INTERNAL_PARALLEL_CLEAR_CHIP_MODE

PARALLEL_CHIP_MODE