EnumPhysical Method

Refreshes information about physical serial ports (or third-party virtual serial ports) and returns their number.

Syntax

Visual Basic .NET
Function EnumPhysical() As Integer 
Visual C#
Int32 EnumPhysical();

Parameters

None.

Return

The number of physical serial ports.

Errors

The method may throw exception. Use GetLastError method to get the error code.

ftvspcErrorFailed 1 The operation has not been completed.
ftvspcErrorInvalidParameter 2 Invalid parameter.

Remarks

To retrieve information about each serial port, use GetPhysical.

See Also

GetPhysical