Licence Protector

GetWebActivation

Hide Navigation Pane

GetWebActivation

Previous topic Next topic No directory for this topic  

GetWebActivation

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

 

Retrieves the status of the field Activation for an module.

 

Click to enlarge
Generator - field Activation

 

 

The field changes in the following situations:

 

Delivery with license file = none

Type in a Serial Number = required

Type in an Unlock Key or the Activation Server sends the Unlock Key during online activation = done

Problem during online activation = erroneous

 

 

Name

GetWebActivation                                                                                

Purpose

Get the activation state for a module.

Params

Parameter

Type

Example

Note

ModuleID

String

D1001

Unique ModuleID – identifies the module which is queried

Returncode

Returncode

Type Integer

Note

Web activation state

0 = none, 1 = required, 2 = done, 3 = erroneous
-1 = wrong ModuleID was used

Usage

Determines the state of the module regarding activation on Web Activation Server.

If this valus is 0 (none) no further action is required

If this valus is 1 (required) or 3 (erroneous) a web activation (with WebRegister) should be done

If this value is 2 (done) no further action is required because that module is already activated.

Notice: The web activation state is only a status information what to do. It triggers no automatic action. If a module has state 1 there is no implicit WebRegister call.

Sample

 

  iWA := lic.GetWebActivation(‘D1001’);

  if (iWA = 1) or (iWA = 3) then

  begin

    << call WebRegister for module D1001>>

  End

  Else

  Begin

     << no activation necessary or activation already done>>

  end

  ...

See also

WebRegister