Refreshes information about virtual serial ports and returns their number.
| Visual Basic .NET | Function EnumVirtual() As UInt32
|
|---|---|
| Visual C# | UInt32 EnumVirtual();
|
None.
The number of virtual serial ports.
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. |
To retrieve information about each port, use GetVirtual.