- Overview
DLL API Reference
- Getting Started
Functions
- FtVspcApiClose Function
- FtVspcApiInit Function
- FtVspcApplyKey Function
- FtVspcEnumPhysical Function
- FtVspcEnumVirtual Function
- FtVspcGetPhysical Function
- FtVspcGetPhysicalNum Function
- FtVspcGetVirtual Function
- FtVspcGetVirtualNum Function
- FtVspcCreatePort Function
- FtVspcCreatePortEx Function
- FtVspcCreatePortByNum Function
- FtVspcCreatePortOverlapped Function
- FtVspcCreatePortOverlappedEx Function
- FtVspcCreatePortOverlappedByNum Function
- FtVspcCreateTwinPort Function
- FtVspcCreateTwinPortEx Function
- FtVspcCreateTwinPortByNum Function
- FtVspcRemovePort Function
- FtVspcRemovePortByNum Function
- FtVspcAttach Function
- FtVspcAttachByNum Function
- FtVspcDetach Function
- FtVspcGetPermanent Function
- FtVspcGetPermanentByNum Function
- FtVspcGetPortType Function
- FtVspcGetPortTypeByNum Function
- FtVspcGetQueryOpen Function
- FtVspcGetQueryOpenByNum Function
- FtVspcSetPermanent Function
- FtVspcSetPermanentByNum Function
- FtVspcSetQueryOpen Function
- FtVspcSetQueryOpenByNum Function
- FtVspcRead Function
- FtVspcWrite Function
- FtVspcGetBitrateEmulation Function
- FtVspcGetBreak Function
- FtVspcGetCts Function
- FtVspcGetDcd Function
- FtVspcGetDsr Function
- FtVspcGetFraming Function
- FtVspcGetInQueueBytes Function
- FtVspcGetOverrun Function
- FtVspcGetParity Function
- FtVspcGetRing Function
- FtVspcSetBitrateEmulation Function
- FtVspcSetBreak Function
- FtVspcSetCts Function
- FtVspcSetDcd Function
- FtVspcSetDsr Function
- FtVspcSetFraming Function
- FtVspcSetOverrun Function
- FtVspcSetParity Function
- FtVspcSetRing Function
- FtVspcGetErrorMessage Function
- FtVspcGetInfo Function
- FtVspcGetLastError Function
ActiveX Component Reference
- Getting Started
FTVSPCControl Class
FTVSPCPort Class
- FTVSPCPort Class description
Events
- OnBreak Event
- OnClose Event
- OnOpen Event
- OnOpenBeforeAttach Event
- OnPurge Event
- OnQueryOpen Event
- OnRxChar Event
- OnBaudRate Event
- OnDataBits Event
- OnParity Event
- OnStopBits Event
- OnTimeouts Event
- OnDtr Event
- OnRts Event
- OnBreakChar Event
- OnEofChar Event
- OnErrorChar Event
- OnEvtChar Event
- OnXoffChar Event
- OnXoffLim Event
- OnXonChar Event
- OnXonLim Event
- OnAbortOnError Event
- OnDsrSensitivity Event
- OnDtrControl Event
- OnInX Event
- OnNull Event
- OnOutX Event
- OnOutxCtsFlow Event
- OnOutxDsrFlow Event
- OnRtsControl Event
- OnTXContinueOnXoff Event
- OnUseErrorChar Event
.NET Component Reference
- Getting Started
FTVSPCControl Class
FTVSPCPort Class
- FTVSPCPort Class description
Events
- OnBreak Event
- OnClose Event
- OnOpen Event
- OnOpenBeforeAttach Event
- OnPurge Event
- OnQueryOpen Event
- OnRxChar Event
- OnBaudRate Event
- OnDataBits Event
- OnParity Event
- OnStopBits Event
- OnTimeouts Event
- OnDtr Event
- OnRts Event
- OnBreakChar Event
- OnEofChar Event
- OnErrorChar Event
- OnEvtChar Event
- OnXoffChar Event
- OnXoffLim Event
- OnXonChar Event
- OnXonLim Event
- OnAbortOnError Event
- OnDsrSensitivity Event
- OnDtrControl Event
- OnInX Event
- OnNull Event
- OnOutX Event
- OnOutxCtsFlow Event
- OnOutxDsrFlow Event
- OnRtsControl Event
- OnTXContinueOnXoff Event
- OnUseErrorChar Event
FtVspcCreatePort Function
Creates virtual serial port with non-standard name.
BOOL FtVspcCreatePort( LPCTSTR lpszPortName );
Parameters
lpszPortName
[in] The name of virtual serial port (e.g. "COM1", "VSP25", "SERPORT10" etc). The names "COM0" and "LPTx" are prohibited.
Return Value
If the function succeeds, the return value is TRUE. Otherwise, use FtVspcGetLastError to get the error code (FtVspc_ErrorCode).
Errors
ftvspcErrorFailed | 1 | The operation has not been completed. |
---|---|---|
ftvspcErrorInvalidParameter | 2 | Invalid parameter. |
ftvspcErrorPortAlreadyExists | 100 | This port already exists. |