Location: Symbol Reference > Classes > TJwDiscretionaryAccessControlEntryAllow Class > Create Constructor > TJwDiscretionaryAccessControlEntryAllow.Create Constructor (TJwSecurityAccessControlList, TJwAceFlags, TJwAccessMask, TJwSecurityId, boolean)
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwDiscretionaryAccessControlEntryAllow.Create Constructor (TJwSecurityAccessControlList, TJwAceFlags, TJwAccessMask, TJwSecurityId, boolean)
Pascal
constructor Create(const aListOwner: TJwSecurityAccessControlList; const aFlags: TJwAceFlags; const anAccessMask: TJwAccessMask; const aSID: TJwSecurityId; ownSID: boolean = True); overload;
Parameters 
Description 
const aListOwner: TJwSecurityAccessControlList 
retrieves the list owner (including nil). If it is set to a list (not nil) the ACE is added to the list automatically. 
const aFlags: TJwAceFlags 
retrieves the ACE flags as a set 
const anAccessMask: TJwAccessMask 
retrieves the access mask like GENERIC_ALL. If you want to set file or folder security use FILE_ALL_ACCESS or similar instead of GENERIC_XXX. Some flags are discarded when written to disk and would differ after read from disk.
 
const aSID: TJwSecurityId 
retrieves the SID to be allowed or denied. It can be nil 
ownSID: boolean = True 
defines whether the SID given in parameter aSID should be freed automatically. If this SID is a well known SID from unit JwsclKnownSid this parameter is ignored 

Create creates a new positive ACE.

The given SID in parameter aSID must not be already assigned to another access control instance if both - this and the other instance - have the boolean parameter ownSID (or its property OwnSid) set to true. In this case the first ACE instance may destroy the used SID instance and which has an effect on the second ACE instance that runs with an invalid SID instance. 

If you want to copy (even with changed values) an instance, use the copy constructor instead. If you also want to set the aListOwner parameter, simply add the new instance to the target list. 

TJwDiscretionaryAccessControlEntryAllow 

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!