PARCLASS_NEGOTIATION_MASK - NtDoc

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

typedef struct _PARCLASS_NEGOTIATION_MASK {
  USHORT usReadMask;
  USHORT usWriteMask;
} PARCLASS_NEGOTIATION_MASK, *PPARCLASS_NEGOTIATION_MASK;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ntddpar-_parclass_negotiation_mask)

_PARCLASS_NEGOTIATION_MASK structure

Description

The PARCLASS_NEGOTIATION_MASK structure specifies the read and write protocols that a driver selects for a parallel device.

Members

usReadMask

Specifies the read protocols. For read and write protocol values, see the constants that are defined in ntddpar.h (from NONE to ECP_ANY).

usWriteMask

Specifies the write protocols.

Syntax

typedef struct _PARCLASS_NEGOTIATION_MASK {
  USHORT usReadMask;
  USHORT usWriteMask;
} PARCLASS_NEGOTIATION_MASK, *PPARCLASS_NEGOTIATION_MASK;

Remarks

A client specifies a set of requested protocols by setting a bitwise OR of the constants that represent each protocol. The system-supplied bus driver for parallel ports selects the fastest protocol that it supports from among those specified by the client.

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

See also

IOCTL_PAR_GET_DEFAULT_MODES

IOCTL_IEEE1284_GET_MODE

PNEGOTIATE_IEEE_MODE

IOCTL_IEEE1284_NEGOTIATE

PDETERMINE_IEEE_MODES