Removes a virtual serial port.
BOOL FtVspcRemovePortByNum( UINT unPortNo );
[in] The number of virtual serial port (1-255).
|The operation has not been completed.
|There is no such port.
|This port is already attached.
|This port is opened by serial application.
|This port is marked for deletion.
If COM port has been removed successfully, the function returns TRUE.
If COM port is occupied by a serial application, the function returns TRUE and sets last error code to ftvspcErrorPortInUse. COM port will be removed on COM port close. This COM port appears with MarkedForDeletion flag enabled when enumerate virtual serial ports.
If any application is attached to the COM port, the function returns FALSE and sets last error code to ftvspcErrorPortAttached.