Location: Symbol Reference > Classes > TJwSecureRegistryKey Class > TJwSecureRegistryKey Methods > RestoreInheritanceFlow Method > TJwSecureRegistryKey.RestoreInheritanceFlow Method (TJwString, boolean)
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecureRegistryKey.RestoreInheritanceFlow Method (TJwString, boolean)
Pascal
class procedure RestoreInheritanceFlow(const KeyName: TJwString; bTakeOwnerShip: boolean = False); virtual; overload;
Parameters 
Description 
bTakeOwnerShip: boolean = False 
Defines whether the function should try to restore inheritance by taking the ownership and get so enough rights to restore the DACL.If false and the right to change DACL is denied the exception EJwsclWinCallFailedException is raised.
 
PathName 
defines a file or folder path. 

RestoreInheritanceFlow restores the inheritance flow of the file object. ACEs are inherited to the file or folder. RestoreInheritanceFlow tries to obtain ownership if bTakeOwnerShip is true and the access is not granted without ownership. If the action failed the exception EJwsclAdaptSecurityInfoException is raised. 

 

Exceptions 
Description 
will be raised if bTakeOwnerShip is true and the ownership cannot be taken. 

See SetNamedSecurityInfo for more exceptions.

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!