FtVspcClosePort Function

Closes virtual serial port (even if the port is open by application).

BOOL 
FtVspcClosePort(
	FTVSPCHANDLE hPort 
	);

Parameters

hPort

[in] 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

ftvspcErrorInvalidParameter 2 Invalid parameter.

See Also

FtVspcAttach