The GetPortName method returns serial port name by its index. Total number of serial ports can be obtained by CountPorts property.
BSTR GetPortName( | ||
LONG iNumber, | // index | |
); |
Parameters
iNumber [in] zero-based serial port index number.
Return Values The GetPortName method returns serial ports name by it’s index.
See also