Name

GetCURunCounter                                                                                      

Purpose

Gets the number of times an automatic validate for the concurrent user module has taken place on the local Licence Protector instance

Params

Parameter

Type

Example

Note

ModuleID

String

D1006

Unique ModuleID – identifies the module to be tested

Name

String

Tom

The user or item name to check for

UseWindowsUser

Boolean

False

Determines if the windows login name should be used as name

Returncode

Returncode

Type Integer

Note

-1

An error occurred (e.g. the module is unknown) Attention: LastReturnCode does not work!

>= 0

Number of times an automatic validate has taken place

Usage

E.g. to show the number in a kind of system settings dialog

Sample

 

  iRun := lic.GetCURunCounter(‘D1006’, ‘’, true);

  if iRun = -1 then

  begin

    << an error occurred or no valid module >>

     ...

  end

  else

  begin

     << use the extracted information in iRun>>

     ...

See also

Concurrent user modules, GetCUIsRunning, GetCULastValidate, GetCURunCounter, CheckInterval, SetCheckInterval