FtVspcGetPortTypeByNum Function
Retrieves value of virtual serial port type.
BOOL FtVspcGetPortTypeByNum( UINT unPortNo, FtVspc_PortType* lpPortType );
Parameters
unPortNo
[in] The number of virtual serial port.
lpPortType
[out] A pointer to the variable where the port type of virtual serial port is returned.
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. |
ftvspcErrorNoSuchPort | 101 | There is no such port. |
ftvspcErrorMarkedForDeletion | 202 | This port is marked for deletion. |