ImportSecuritySystem

This function imports a security system configuration from an external file.

Function Group Execution Windows Embedded Thin Client
ImportSecuritySystem Security Synchronous Supported Supported Supported

Syntax

ImportSecuritySystem(strSecuritySystemPassword,strFileName,strFilePassword { | ,optNumMode } )
strSecuritySystemPassword
The main password for the project's current security system configuration. (The security system must be enabled.)
strFileName
The complete file path and name of the configuration file that you want to import. (The file must have been previously exported from a IWS project using either the Security System configuration tool or the ExportSecuritySystem function.)
strFilePassword
The password for the specified configuration file.
optNumMode
A numeric flag indicating how the imported settings should be handled:
Value Description
0 Append the imported settings to the current settings. In the event of a conflict, replace with the imported settings.
1 Append the imported settings to the current settings. In the event of a conflict, keep the current settings.
2 Completely replace the current settings with the imported settings.

This parameter is optional; if no value is specified, then the default value is 0.

Returned value

This function returns the following possible values:
Value Description
-2 Wrong parameter type.
-1 Invalid number of parameters.
0 Couldn't read security data.
1 File imported successfully.

Examples

ExportSecuritySystem( "curr3ntPa55w0rd", "C:\security.txt", "1mp0rtPa55w0rd" )
ExportSecuritySystem( "curr3ntPa55w0rd", "C:\security.txt", "1mp0rtPa55w0rd", 2 )