Navigation:  Function Reference >

CheckLicence

Previous pageReturn to chapter overviewNext page

 

Name

CheckLicence                                                                                        

Purpose

Contacts the Licence Protector Web Activation server to validate a licence. This function has to be used to implement “Moving Licences” and ongoing checks (“renting your software”).

Params

Parameter

Type

Example

Note

Projectname

String

Demo Project

projectname, if empty the internal projectname of the licence file is used identifies the project on the Web Activation Server

ID

String

Abc

Identifier which is used to check and register this licence

Product

String

D1001

This is the product-name for the config-autogenerator.xml. It may be empty.

ForceCheck

Boolean

False

If true, CheckLicence will always go online, even if it is not necessary regarding the current values.

Returncode

Returncode

Type Integer

Note

0

CheckLicence successful: The online-Validation succeeded or it was not necessary to check the state online

3001

The Web Activation Server was not reachable.

3010

That ID is already used e.g. by another computer.

3018

That ID is locked.

3002-3999

Errors on the Web Activation Server, see Web Activation Documentation

Other return codes

Operation failed, see list of return codes

Usage

Used to validate the licence. 

Sample

 

  iRes := lic.CheckLicence(‘’, abc4711, ‘’, false);

  if iRes = 0 then

  begin

     << Licence successfully validated >>

     ...

  end

  else if iRes = 3001 then

  begin

     << Web Activation could not be reached, please check connection >>

     ...

  end

  else if iRes = 3010 then

  begin

     << that licence is already in usage. Transfer licence and then it is free for this computer >>

     ...

  end

  else if iRes = 3018 then

  begin

     << that licence is locked on the Web Activation server.>>

     ...

  end

  else

  begin

     << other errors >>>

     ...

   

See also

LicenceVerification, NextVerification, DeactivateLicence, SetVerificationID, SetVerificationProduct, WebServiceURL, ShowWAStartPage, ShowWAProgressPage, ShowWAResultPage, UseLocalProxy, UseLocalIEProxy, LocalProxyServer, LocalProxyPort, Projectname

 

 


Page url: http://www.helpserver.biz/onlinehelp/lp/easygo/2.5/help2000/index.html?fr_checklicence.htm