Look RS232 > RS232C Hardware  
fCoder SIA
fCoder SIA Look RS232 Download Order Support Cookie Policy
Look RS232
Download
Order
Support
Testimonials
FAQ
Online help
Modem Programming
Serial port
RS232 Hardware
Programming
  PORT_INFO_*

The information about the ports is available with the help of PORT_INFO_*structures, where PORT_INFO_1 structure is supported by all Windows versions and PORT_INFO_2 structure is supported starting with Windows NT. Let's consider these structures:

PORT_INFO_1structure serves as a descriptor of the ports supported by the system, it contains only the name of the port.

PORT_INFO_1 structure contains only one member:

LPTSTR pName - pointer to null-terminated string, which identifies the supported port (e.g., "COM1:", "LPT1:", "FILE", "\\server").

PORT_INFO_2 structure is used to identify the ports supported by the system,in comparison with PORT_INFO_1 this structure supports more parameters.

Members of PORT_INFO_2 structure:

LPSTR pPortName;

LPSTR pMonitorName;

LPSTR pDescription;

DWORD fPortType;

DWORD Reserved;

We won't consider PORT_INFO_2 structure in detail here, as it is used for the printer port settings detection.

 
  Contact us
© fCoder SIA