AceFlags

  • Thread starter Thread starter elazar
  • Start date Start date
E

elazar

I am currently programming with MS's ADSI SDK. I am using
the ADSSecurity API to list permissions on a folder or
file. However, I keep getting Ace.AceFlags returning 3 or
11, which is not part of the ADS_ACEFLAG enumeration. If
anyone can help me with this, it would be much appreciated.
 
elazar said:
I am currently programming with MS's ADSI SDK. I am using
the ADSSecurity API to list permissions on a folder or
file. However, I keep getting Ace.AceFlags returning 3 or
11, which is not part of the ADS_ACEFLAG enumeration. If
anyone can help me with this, it would be much appreciated.

Ace.AceFlags is the logical OR of the various ADS_ACEFLAGs.

To test you have to AND Ace.AceFlags with the particular constant,
i.e: if Ace.AceFlags and ADS_INHERIT_ONLY_ACE <> 0 then ....

Bit 0 is missing from ADS_ACEFLAGS_ENUM but I think it is OBJECT_INHERIT_ACE


Walter
 
Back
Top