The GetPortName method returns serial port name by its index. Total number of serial ports can be obtained by GetCount 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 i's index.