2.5.3.1.7 LookupAttributeInSacl
A support function, LookupAttributeInSacl, locates an attribute in the Sacl based on the AttributeName passed in, if one is present. If one is not present then NULL is returned.
-
CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1 LookupAttributeInSacl ( WCHAR AttributeName, ACL Sacl ) -- -- On entry -- AttributeName is the Unicode string attribute. -- Sacl containing the attribute information. Dim CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1 SaclAttribute FOR EACH ACE in Sacl DO IF ACE.Type is SYSTEM_RESOURCE_ATTRIBUTE_ACE_TYPE THEN -- Refer section 2.4.4.15 Set TempAttribute to Ace.AttributeData IF TempAttribute.Name equals AttributeName THEN Return TempAttribute END IF END IF END FOR Return NULL END-SUBROUTINE