Location: Symbol Reference > Classes > TJwPrivilegeSet Class > TJwPrivilegeSet Methods > AddPrivilege Method > TJwPrivilegeSet.AddPrivilege Method (cardinal, cardinal)
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwPrivilegeSet.AddPrivilege Method (cardinal, cardinal)
Pascal
function AddPrivilege(HighValue: cardinal; LowValue: cardinal): integer; virtual; overload;
Parameters 
Description 
HighValue: cardinal 
contains the high value of the privilege luid to be added  
LowValue: cardinal 
contains the low value of the privilege luid to be added 

AddPrivilege adds a privilege to the list if the privilege is not assigned to a token; otherwise EJwsclNotImplementedException will be raised. If the privilege already exists the exception EJwsclSecurityException will be raised. 

 

Exceptions 
Description 
will be raised if the privilege already exists 
will be raised if the privilege set belongs to a token 
will be raised if the privilege was not found on the system 
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!