Navigation:  Function Reference >

DeactivateEntry

Previous pageReturn to chapter overviewNext page

 

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 doesnt 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

 


Page url: http://www.helpserver.biz/onlinehelp/lp/easygo/2.5/help2000/index.html?fr_deactivateentry.htm