Show/Hide Toolbars

Licence Protector 5

 

Name

GetCUNextValidate                                                                                      

Purpose

Gets the time of the planned next automatic validate for the concurrent user module 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 DateTime

Note

1899-12-30 00:00:00 representing 0 as float value

The module is not running or an error occurred (e.g. the module is unknown) Attention: LastReturnCode does not work!

Other times

Time of the next validate on that client

Usage

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

Sample

 

  dtTime := lic.GetCUNextValidate(‘D1006’, ‘’, true);

  if dtTime = 0 then

  begin

    << no usable time due to an error >>

     ...

  end

  else

  begin

     << show the time or use it in calculations>>

     ...

See also

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