Licence Protector

DeactivateEntry

Hide Navigation Pane

DeactivateEntry

Previous topic Next topic  

DeactivateEntry

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

 

Name

DeactivateEntry                                                                                          

Purpose

Deactivates an existing entry (user, computer, item) in the specified module.

Params

Parameter

Type

Example

Note

ModuleID

String

D1001

Unique ModuleID – identifies the module to be tested

Entryname

String

John

Name of the entry (user or computer or item)

Returncode

Returncode

Type Integer

Note

0

The entry was successfully deactivated

256

The Module was not found

4098

The Entry was not registered in that module

4099

This module type does not have entries

All other values – see return codes

The operation was not successful

Usage

Deactivates an entry. It doesn’t matter if it is already deactivated!

Sample

 

  iRes := lic.DeactivateEntry(‘D1001’, ‘John’);

  if iRes = 0 then

  begin

    << successfully deactivated >>

         ...

  end

  else

  begin

     << an Error occurred >>        

     ...

See also

ExistsEntry, IsEntryActivated, ActivateEntry, GetEntriesOfModule, RemoveDeactivated