Location: Symbol Reference > Classes > TJwSecureFileObject Class > TJwSecureFileObject Methods > GetFileInheritanceSource Method > TJwSecureFileObject.GetFileInheritanceSource Method (Boolean, TJwSecurityInformationFlagSet)
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecureFileObject.GetFileInheritanceSource Method (Boolean, TJwSecurityInformationFlagSet)
Pascal
function GetFileInheritanceSource(const Container: Boolean; const aSecurityInfo: TJwSecurityInformationFlagSet = [siDaclSecurityInformation]): TJwInheritedFromArray; virtual; overload;
Parameters 
Description 
const aSecurityInfo: TJwSecurityInformationFlagSet = [siDaclSecurityInformation] 
defines the type of security inheritance is to be obtained. The value can be one of siDaclSecurityInformation or siSaclSecurityInformation.
 

The return value is an array of TJwInheritedFromRecord with the count of ACE in the DACL of the object in PathName Each array entry consists of 

  • GenerationGap Levels between the object and the ancestor
  • AncestorName Name of the ancestor from which the ACE was inherited
  • SID The SID that is inherited. The string has the type  

    <SID account name>@<S-X-X...> 

GetFileInheritanceSource retrieves the source if inheritance for the ACEs in the ACL of the given object. This method simulates GetInheritanceSource, so that it can be used in all windows versions with ACL support. 

 

Exceptions 
Description 
will be raised if the instance is created with a handle instead of a file or folder name. 
will be raised if the object could not be accessed or found. 
will be raised if aSecurityInfo is not [siDaclSecurityInformation] or [siSaclSecurityInformation] 
will be raised if aSecurityInfo is [siSaclSecurityInformation] and the current thread does cannot access audit information, because the privilege could not be activated. 
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!