Licence Protector

GetCUIsRunning

Hide Navigation Pane

GetCUIsRunning

Previous topic Next topic No directory for this topic  

GetCUIsRunning

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

 

Name

GetCUIsRunning                                                                                          

Purpose

Checks if the concurrent user module for the user is running 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

Module is not running

1

Module is running

Usage

E.g. to check whether the concurrent user module for the user is already activated on that client

Sample

 

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

  if iRun = 1 then

  begin

    << Module D1006 already runs >>

     ...

  end

  else

  begin

     << Module does not exist or is not running >>

     ...

See also

Concurrent user modules, GetCULastValidate, GetCUNextValidate, GetCURunCounter