Show/Hide Toolbars

Licence Protector 5

 

This command allows to add a new module in an license file. Use DeleteModule to delete an existing module.

 

Name

AddModule                                                                                          

Purpose

Generates a new Module in the license file.

Params

Parameter

Type

Example

Note

ModuleID

String

D1009

Unique ModuleID – identifies the new module, this input is mandatory

ModuleName

String

My New Module

Name of the new module

ModuleType

Integer

2

Type of the new module:

1 = User, 2 = Computer, 3 = Counter, 4 = Yes/No, 5 = Item, 6 = Concurrent User (only possible if the necessary license exists)

licenses

Integer

10

Number of users or computers etc. In a Yes/No-Module 1 for yes and 0 for no.

IsDemo

Boolean

False

Runs that module as a demo?

Expires

Date

0

Date when this module will expire, 0 for unlimited

NoOfDays

Integer

10

Number of days this module will run after the first usage

MaxDate

Date

2004-12-31

Max date when this module will no longer work, even if there are open days, 0 for unlimited

Tag

String

Test

The tag value of that module

AllowDeactivate

Boolean

True

Can users, computers or items be deactivated In that module?

WebActivation

Integer

0

Activation status of the new module (0-3). Details

ModuleVerification

Integer

0

Enable regular online validation - Details

ActivationStateAfterCPon

Integer

2

see Activation Status after product activation

Workflow

Integer

1

see Workflow

Returncode

Returncode

Type Integer

Note

0

The new module was successfully created

4100

The ModuleID already exists in the license file

4101

One or more parameters are invalid

4099

This module type does not exists

4102

Your Licence Protector Edition does not allow to create modules

All other values – see return codes

The operation was not successful

Usage

Created a complete new module in the license file

Sample

 

  iRes := lic.AddModule(‘D1009’, ‘My new module’, 2, 10, false, 0, 10, 0, ‘My tag’, true,0,2,1);

  if iRes = 0 then

  begin

    << successful >>

         ...

  end

  else

  begin

     << an Error occurred >>        

     ...

See also

DeleteModule, ExistsModule, GetModuleList, GetVal, SetVal

 

 

You can change additional module information with SetVal or retrieve it with GetVal.

 

If you are using EasyGo with PrepareAndCheck you have to set

 

Activation State after product activation with SetVal, SAC - and the value you use in your template (typically 2)

Workflow with SetVal, WFL - and the value you use in your template