Show/Hide Toolbars

Licence Protector 5

 

Name

PrepareAdvanced                                                                                  

Purpose

Prepares the Licence Protector instance for usage and opens the license file using Security Level ADVANCED

Params

Parameter

Type

Example

Note

license file

String

F:\mylic.lic

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

ReadKey

String

r1lkYAp1xG

QN81fBrcZ

1dfXtw1doy

3Z1l4KHy0N

2yvL0ZBDc

X274DHV1

BfV7s0RF

pjZ1NOmM

f1qXGsu1M

qTXK1t4Ts

q1c7jQq1iP

3VM1NNx6

j1s64YK299

TY71YSrb

K0NdSom

29inxM29b

PTJ1mmL

NV0SNdC4

1xCbdT2ad

Sqt2aazQL

1dslWy1fG

XFi11YWO

v1fFhLt2ac

ufE1hRGX

Y1VxH0R0

ViybX0Xm

cNz1lm76

W1gQqQe

21grLU1V

Ac401UqH

8l0YHwOD

1S46cC20

hVpD1cfA

Yk299ixt

The ReadKey for that license file. It is created using function “Create Project Keys” in License Generator and stored in the Key-file.

Returncode

Returncode

Type Integer

Note

0

The license file was successfully opened

2

The license file could not be found or was not opened

16382

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

16384 or 2048

The file to open is not a valid license file or it has another security level: You can not open a license 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 5

Sample

 

  iRes := lic.PrepareAdvanced(sMyLicfile, ‘r1lkYAp1xGQN81fBrcZ1dfXtw1doy3Z1l4KHy0N 2yvL0ZBDcX274DHV1BfV7s0RFpjZ1NOmMf1qXGsu1MqTXK1t4Tsq1c7jQq1iP3VM1NNx6j1s64YK299TY71YSrb

K0NdSom29inxM29bPTJ1mmLNV0SNdC41xCbdT2adSqt2aazQL1dslWy1fGXFi11YWOv1fFhLt2acufE1hRGX

Y1VxH0R0ViybX0XmcNz1lm76W1gQqQe21grLU1VAc401UqH8l0YHwOD1S46cC20hVpD1cfAYk299ixt’);

  if iRes <> 0 then

  begin

    << an error occurred >>

     ...

  end

  else

  begin

    << everything is fine, continue >>

     ...

See also

Prepare, PrepareSimple, SysdateChanged, CheckSysdateChanged, Validate, Quit, PrepareForce