2.2.1.9.2 PORT_INFO_2

The PORT_INFO_2 structure provides information about a port.

 typedef struct _PORT_INFO_2 {
   [string] wchar_t* pPortName;
   [string] wchar_t* pMonitorName;
   [string] wchar_t* pDescription;
   DWORD fPortType;
   DWORD Reserved;
 } PORT_INFO_2;

pMonitorName: A pointer to a string that specifies an installed port monitor. For rules governing port monitor names, see section 2.2.4.8.

pDescription: An optional pointer to a string that specifies additional implementation-specific information about the printer port.<48>

fPortType: A bit field that specifies attributes of the printer port. These flags can be combined to specify multiple attributes.

Name/value

Description

PORT_TYPE_WRITE

0x00000001

The port can be written to.

PORT_TYPE_READ

0x00000002

The port can be read from.

PORT_TYPE_REDIRECTED

0x00000004

The port is a Terminal Services redirected port.

PORT_TYPE_NET_ATTACHED

0x00000008

The port is a network TCP/IP port.

All members not defined in this section are specified in sections 2.2.1.3.5 and 2.2.1.3.