The PORT_INFO_1 structure identifies a supported printer port.
typedef struct _PORT_INFO_1 { // pi1
LPTSTR pName;
} PORT_INFO_1;
Windows NT: Requires version 3.1 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