Show/Hide Toolbars

Licence Protector 5

 

Name

ApplyActivationKeyForProject                                                            

Purpose

Insert an Activation Key to change the properties of a module or to change the Copy Protection. The difference to standard ApplyActivationKey is that a project name for a potential Web Activation check of the key can be delivered. This is only necessary if a different project name then the one stored in the license file should be used

Params

Parameter

Type

Example

Note

Projectname

String

Demo Project

If empty the Projectname of the license file is used

Activation Key

String

dO8uc-G1iC9-jOGeA-BqgEX-U71lD-0V1VX

A key that is 35 characters long or an empty string to open a window

Returncode

Returncode

Type Integer

Note

0

The Activation Key was successfully added to the license file

258

The Activation Key could not be read, possibly a wrong key

257

This Activation Key was already used

Other return codes

Operation failed, see list of return codes

Usage

Same as ApplyActivationKey. If the key have to be checked with the Web Activation server  the Projectname is used to determine the Web Activation project on the server. If Projectname is empty then the internal Projectname of the license file is used. This is exactly the same as if ApplyActivationKey is used.

Check Web Activation Documentation for further details.

Sample

 

  iRes := lic.ApplyActivationKeyForProject(‘My Project’, sTheNewKey);

  if iRes <> 0 then

  begin

    << an error occurred >>

     ...

  end

  else

  begin

    << everything is fine, continue >>

     ...

See also

ApplyActivationKey, ApplyInvisibleKey

 

 

 

See also
Format of a Key
Create Keys