GetSerialPortDescription Method

Retrieves string description of serial port.

Syntax

Visual Basic
Function GetSerialPortDescription(index As Long) As String 
Visual C++ (MFC)
CString GetSerialPortDescription(long index);
Visual C++ (#import)
_bstr_t GetSerialPortDescription(LONG index);

Parameters

index

[in] Index of serial port (0 ... number_of_ports - 1).

Return

String value representing serial port description, e.g. "Communications Port (COM1)".