private bool AreFlagsSet(params SecurityDescriptorControlFlags[] flags) { SecurityDescriptorControlFlags cf = this.ControlFlags; foreach (SecurityDescriptorControlFlags flag in flags) { if ((cf & flag) == 0) { return(false); } } return(true); }
public static extern BOOL SetSecurityDescriptorControl( PSECURITY_DESCRIPTOR pSecurityDescriptor, SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest, SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet );
public static extern BOOL GetSecurityDescriptorControl( PSECURITY_DESCRIPTOR pSecurityDescriptor, out SECURITY_DESCRIPTOR_CONTROL pControl, out DWORD lpdwRevision );