The PORT_INFO_2 structure identifies a supported printer port.
typedef struct _PORT_INFO_2 { // pi2
LPSTR pPortName;
LPSTR pMonitorName
LPSTR pDescription;
DWORD fPortType;
DWORD Reserved;
} PORT_INFO_2;
PORT_TYPE_WRITE |
PORT_TYPE_READ |
PORT_TYPE_REDIRECTED |
PORT_TYPE_NET_ATTACHED |
Use the PORT_INFO_2 structure when calling EnumPorts if there are multiple monitors installed that support the same ports.
Windows NT: Requires version 4.0 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winspool.h.
Unicode: Defined as Unicode and ANSI structures.
Printing and Print Spooler Overview, Printing and Print Spooler Structures, EnumPorts