Location: Symbol Reference > Classes > TJwSecureRegistryKey Class > TJwSecureRegistryKey Methods > TJwSecureRegistryKey.SetSACL Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecureRegistryKey.SetSACL Method
Pascal
procedure SetSACL(const list: TJwSAccessControlList; const Protection: TJwACLProtectionState = apNone); override; overload;
Parameters 
Description 
const Protection: TJwACLProtectionState = apNone 
defines which TJwSecurityInformationFlag Flag is used:
  • apNone uses simply siDaclSecurityInformation to set DACL
  • apProtected uses siProtectedDaclSecurityInformation to set a protected DACL
  • apUnprotected uses siUnprotectedDaclSecurityInformation to set an unprotected DACL and let flow the inheritance stream
 

SetSACL sets the SACL of the file object. You need to have SE_SECURITY_NAME privilege be enabled otherwise the call fails. 

New You can also use apProtected to remove inherited ACEs (replace an existing SACL completly). 

The list is copied into the file object.

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!