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
|
1
|
WebActivation State of the new module (0-3). See Web Activation Documentation.
|
|
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
|
There are no licenseProtector licenses to create that module
|
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);
if iRes = 0 then
begin
<< successful >>
...
end
else
begin
<< an Error occurred >>
...
|
See also
|
DeleteModule, GetVal, SetVal
|
You can change module information with SetVal or retrieve it with GetVal
Page url:
http://www.helpserver.biz/onlinehelp/lp/easygo/2.7/help2000/index.html?fr_addmodule.htm