|
JWSCL Documentation
|
constructor Create(const ListOwner: TJwSecurityAccessControlList; const Flags: TJwAceFlags; const AccessMask: TJwAccessMask; const SID: TJwSecurityId; const Revision: Cardinal; ownSID: boolean = True); overload;
|
Parameters |
Description |
|
const Revision: Cardinal |
Defines the revision level of the ACE. Can be one of the revision levels. ACL_REVISION, ACL_REVISION1, ACL_REVISION2, ACL_REVISION3, ACL_REVISION4 or ACL_REVISION_DS |
|
ownSID: boolean = True | |
|
aListOwner |
retrieves the list owner (including nil). If it is set to a list (not nil) the ACE is added to the list automatically. |
|
aFlags |
retrieves the ACE flags as a set |
|
anAccessMask |
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. |
|
aSID |
retrieves the SID to be allowed or denied. It can be nil |
Create creates a new negative ACE and applies an ACE revision level.
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.
|
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!
|