Navigation:  Function Reference >

PrepareSimple

Previous pageReturn to chapter overviewNext page

 

Name

PrepareSimple                                                                                     

Purpose

Prepares the Licence Protector instance for usage and opens the licence file using Security Level BASIC

Params

Parameter

Type

Example

Note

Licence file

String

F:\mylic.lic

The full path to the licence file. See details for UNC pathnames

ProjectSecureKey

String

I am a project secure key

The project secure key for that licence file. Can contain any characters. The minimum length is 6 characters, the recommended length is 15 and greater

Returncode

Returncode

Type Integer

Note

0

The licence file was successfully opened

2

The licence file could not be found or was not opened

16382

If CheckSysdateChanges is set to true and Licence Protector recognizes that the date was manipulated then you get this error code.

16384 or 2048

The file to open is not a valid licence file or it has another security level: You can not open a licence file of security level ADVANCED using its PSK. You need its Read Key.

Other return codes

Prepare failed, see list of return codes

Usage

Important function in order to use the Licence Protector

Sample

 

  iRes := lic.PrepareSimple(sMyLicfile, I am a project secure key);

  if iRes <> 0 then

  begin

     << an error occurred >>

     ...

  end

  else

  begin

     << everything is fine, continue >>

     ...

See also

Prepare, PrepareAdvanced, SysdateChanged, CheckSysdateChanged, Validate, Quit, PrepareForce

.

 


Page url: http://www.helpserver.biz/onlinehelp/lp/easygo/2.5/help2000/index.html?fr_preparesimple.htm