Licence Protector

ResetLocalRunNo

Hide Navigation Pane

ResetLocalRunNo

Previous topic Next topic No directory for this topic  

ResetLocalRunNo

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

 

Name

ResetLocalRunNo                                                                                  

Purpose

Sets the local Run Number. The token in the Windows Registry is updated or even created.

Params

Parameter

Type

Example

Note

RunNumber

Integer

0

Run Number value to set locally. If this value is 0 then the Run Number value of the license file is used

Returncode

Returncode

Type Integer

Note

0

Local Run Number was successfully set

Other return codes

Operation failed, see list of return codes

Usage

Set the local Run Number. Can be used in combination with Tamper Detection Mode manually after a successful WegRegister call.

Sample

 

  iRes := lic.ResetLocalRunNo(0);

  if iRes <> 0 then

  begin

    << an error occurred >>

     ...

  end

  else

  begin

    << everything is fine, continue >>

     ...

See also

TamperDetection, licenseTampered, RemoveLocalRunNo, ResetGlobalRunNo

 

You have to disable the license testing first (StopConcurrentUsage) before you use this command.