Location: Symbol Reference > Classes > TJwSecureRegistryKey Class > TJwSecureRegistryKey Methods > TJwSecureRegistryKey.GetInheritanceSource Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecureRegistryKey.GetInheritanceSource Method
Pascal
function GetInheritanceSource(const pObjectName: TJwString; const aSecurityInfo: TJwSecurityInformationFlagSet; const bIsDirectory: boolean; const GUIDs: TJwGuidArray; const FN_OBJECT_MGR_FUNCTS: Pointer = nil): TJwInheritedFromArray; virtual; reintroduce;
Parameters 
Description 
const pObjectName: TJwString 
LPTSTR pObjectName, 
const aSecurityInfo: TJwSecurityInformationFlagSet 
SECURITY_INFORMATION SecurityInfo, 
const bIsDirectory: boolean 
BOOL Container, 
const GUIDs: TJwGuidArray 
GUID** pObjectClassGuids, 

The return value is an array of TJwInheritedFromRecord that maps the winapi struct INHERITED_FROM to a Delphi type. The function FreeInheritedFromArray must not be called therefor, instead use SetLength(result,0); The member SID is not used here. 

This function does not work in all version of Windows XP. If so the exception EJwsclInheritanceSourceNotSupportedException is raised.

GetInheritanceSource retrieves the source if inheritance for the ACEs in the ACL of the given object. See MSDN http://msdn2.microsoft.com/en-us/library/aa446640.aspx. 

 

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!