Detaches from virtual serial port.
BOOL FtVspcDetach( FTVSPCHANDLE hPort );
hPort
[in] Virtual serial port port handle. Refer to FtVspcAttach.
If the function succeeds, the return value is nonzero. Use FtVspcGetLastError to get the error code (FtVspc_ErrorCode).
| ftvspcErrorFailed | 1 | The operation has not been completed. |
|---|---|---|
| ftvspcErrorInvalidParameter | 2 | Invalid parameter. |
On successful function return, virtual serial port handle becomes invalid.