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.