Licence Protector

Validate

Hide Navigation Pane

Validate

Previous topic Next topic No directory for this topic  

Validate

Previous topic Next topic Topic directory requires JavaScript JavaScript is required for the print function Mail us feedback on this topic!  

Name

Validate                                                                                              

Purpose

Checks if a module could be used

Params

Parameter

Type

Example

Note

ModuleID

String

D1001

Unique ModuleID – identifies the module to be tested

Name

String

Tom

The user or item name to check for

UseWindowsUser

Boolean

False

Determines if the windows login name should be used as name

Returncode

Returncode

Type Integer

Note

All values

See list of return codes

Usage

To validate a module for a specified user or item

Sample

 

  iRes := lic.Validate(‘D1001’, ‘’, true);

  if iRes = 0 then

  begin

     << successfully validated >>

     ...

  end

  else if iRes = 1 then

  begin

     << successfully validated, it’s a demo version >>

     ...

  end

  else

  begin

     << validation failed, usage of module not allowed >>

     ...

 

See also

Prepare, Quit, ValidateEx, ValidatesYes

 

 

 

Yes / No module

The return codes for a Yes/No module (module type = 4) are:

 

0 = module is Yes

1 = module is Yes AND it is a demo version

3 = module is No