Sets value of Permanent flag for virtual serial port with non-standard names.
BOOL FtVspcSetPermanent( LPCTSTR lpszPortName, BOOL bPermanent );
lpszPortName
[in] The name of virtual serial port.
bPermanent
[in] Permanent flag value.
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. |
|---|---|---|
| ftvspcErrorNoSuchPort | 101 | There is no such port. |
| ftvspcErrorMarkedForDeletion | 202 | This port is marked for deletion. |
If Permanant flag is set, virtual serial port will be created automatically at each system startup.