Retrieves the number of physical serial port by index.
BOOL FtVspcGetPhysicalNum( UINT unIndex, UINT* lpunPortNo );
[in] Index of physical serial port (0 ... unPortsCount - 1). Refer to FtVspcEnumPhysical.
[out] A pointer to the variable where the number of physical serial port is returned (e.g 1 means COM1, 5 means COM5 and so on). If the number is -1, it means that the port name differs from "COMx" and the name should be retrieved by FtVspcGetPhysical.
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.|
|ftvspcErrorNoMoreItems||102||There is no item (possible reason: index is too high).|
You must call FtVspcEnumPhysical before calling this function.