PTERMINATE_IEEE_MODE callback function

The PTERMINATE_IEEE_MODE-typed callback routine terminates the current IEEE operating mode and sets the mode to IEEE 1284-compatible. The system-supplied bus driver for parallel ports supplies this routine.

Syntax

PTERMINATE_IEEE_MODE PterminateIeeeMode;

NTSTATUS PterminateIeeeMode(
  PVOID Context
)
{...}

Parameters

Context

Pointer to the device extension of a parallel device's physical device object (PDO).

Return Value

Return code Description
STATUS_SUCCESS
The operating mode was set to IEEE 1284-compatible mode.

Remarks

To obtain a pointer to the system-supplied PTERMINATE_IEEE_MODE callback, a kernel-mode driver uses an IOCTL_INTERNAL_PARCLASS_CONNECT request, which returns a PARCLASS_INFORMATION structure. The TerminateIeeeMode member of the PARCLASS_INFORMATION structure is a pointer to this callback.

The PTERMINATE_IEEE_MODE callback runs in the caller's thread at the IRQL of the caller.

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

Requirements

   
Target Platform Desktop
Header parallel.h (include Parallel.h)

See Also

IOCTL_PAR_GET_DEFAULT_MODES

IOCTL_IEEE1284_GET_MODE

PPARALLEL_IEEE_FWD_TO_REV

PNEGOTIATE_IEEE_MODE

IOCTL_IEEE1284_NEGOTIATE

PDETERMINE_IEEE_MODES

PPARALLEL_IEEE_REV_TO_FWD