Navigation:  Function Reference >

DeactivateLicence

Previous pageReturn to chapter overviewNext page

 

Name

DeactivateLicence                                                                                  

Purpose

Contacts the Licence Protector Web Activation server to deactivate a licence and therefore allow another computer to use that licence. This function has to be used to implement “Moving Licences”.

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 deactivate this licence

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.

3015

That ID was not validated before using CheckLicence

3030

The deactivation failed on the Web Activation server.

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 transfer a licence. 

Sample

 

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

  if iRes = 0 then

  begin

     << Licence successfully transfered >>

     ...

  end

  else if iRes = 3001 then

  begin

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

     ...

  end

  else if iRes = 3015 then

  begin

     << that licence was not validated before >>

     ...

  end

  else if iRes = 3030 then

  begin

     << that licence can not be deactivated.>>

     ...

  end

  else

  begin

     << other errors >>>

     ...

   

See also

CheckLicence, LicenceVerification, NextVerification, WebServiceURL, ShowWAStartPage, ShowWAProgressPage, ShowWAResultPage, UseLocalProxy, UseLocalIEProxy, LocalProxyServer, LocalProxyPort, Projectname

 

 

 


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