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