EnumVirtual Method

Refreshes information about virtual serial ports and returns their number.

Syntax

Visual Basic
Function EnumVirtual() As Long 
Delphi
function EnumVirtual(): Integer; 
Visual C++ (MFC)
LONG EnumVirtual();
Visual C++ (#import)
LONG EnumVirtual();

Parameters

None.

Return

The number of virtual 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 port, use GetVirtual.

See Also

GetVirtual