FTVSPCControl Class
Contains information about the program version and license type.
General Names
| ProgId |
FTVSPC.FTVSPCControl |
| COM Class Name |
FTVSPCControl |
| COM Interface Name (C++) |
IFTVSPCControl |
| Type Library Name |
FabulaTech Virtual Serial Port Control Library |
| ActiveX File Name |
|
Methods
| API Control |
|---|
| ApplyKey | Apply a new license key. The previously applied key will be replaced with LicenseKey. |
| Port Enumeration |
|---|
| EnumPhysical | Refreshes information about physical serial ports (or third-party virtual serial ports) and returns their number. |
| EnumVirtual | Refreshes information about virtual serial ports and returns their number. |
| GetPhysical | Retrieves the name of physical serial port by index. |
| GetVirtual | Retrieves virtual serial port name by index. |
| Creating and Removing Ports |
|---|
| CreatePort | Creates virtual serial port with non-standard name. |
| CreatePortEx | Creates virtual serial port with non-standard name and allows replacing the value of FriendlyName and CompanyName (indicated by the license key) with alternative values. |
| CreatePortOverlapped | Creates virtual serial port with non-standard name over existing COM port. |
| CreatePortOverlappedEx | Creates virtual serial port with non-standard name over existing COM port and allows replacing the value of FriendlyName and CompanyName (indicated by the license key) with alternative values. |
| CreateTwinPort | Creates virtual serial port twin with non-standard name. |
| CreateTwinPortEx | Creates virtual serial port twin with non-standard name and allows replacing the value of FriendlyName and CompanyName (indicated by the license key) with alternative values. |
| RemovePort | Removes a virtual serial port with non-standard name. |
| Other |
|---|
| GetLastError | Returns last error code for the latest operation. |
Properties
| ExpirationDate | String containing a date of trial license expiration. The date format depends on the locale settings. If the string is empty, the license is not trial. |
| LicenseKey | License Key. In case of using dynamically created object, this property should be set in the first place, before calling any method or setting any other property. |
| LicenseType | License type. Refer to FTVSPCLicenseType. |
| LicensedCompany | String containing the name of the company to which the license is issued. This string can be empty. |
| LicensedUser | String containing the name of the person to which the license is issued. This string can be empty. |
| NumberOfLicenses | Number of computers allowed to install the program according to the license. If set to zero, the number of computers is unlimited. |
| NumberOfPorts | Maximum number of ports allowed to work. If set to zero, the number of ports is unlimited. |
| PortTrialTime | Maximum time of life for each virtual serial port (in minutes). During this time serial application can work with the virtual serial port. If set to zero, no time limitation. |
| Version | String containing program version number. |
Events