|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| No
| Import Library
| -
| Header File
| winspool.h
| Unicode
| WinNT
| Platform Notes
| None
|
|
|
PORT_INFO_2
[Now Supported on Windows NT]
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;
Members
pPortName
Points to a null-terminated string that identifies a supported printer port
(for example, "LPT1:").
pMonitorName
Points to a null-terminated string that identifies an installed monitor (for
example, "PJL monitor").
pDescription
Points to a null-terminated string that describes the port in more detail (for
example, if pPortName is "LPT1:", pDescription is "printer port").
fPortType
Identifies the type of port. Can be one of these values:
PORT_TYPE_WRITE
| PORT_TYPE_READ
| PORT_TYPE_REDIRECTED
| PORT_TYPE_NET_ATTACHED
|
Reserved
Reserved; must be zero.
Remarks
Use the PORT_INFO_2 structure when calling EnumPorts if there are multiple monitors installed that support the same ports.
See Also
EnumPorts
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|