private bool AreFlagsSet(params SecurityDescriptorControlFlags[] flags)
        {
            SecurityDescriptorControlFlags cf = this.ControlFlags;

            foreach (SecurityDescriptorControlFlags flag in flags)
            {
                if ((cf & flag) == 0)
                {
                    return(false);
                }
            }
            return(true);
        }
Beispiel #2
0
        public static extern BOOL SetSecurityDescriptorControl(
			PSECURITY_DESCRIPTOR pSecurityDescriptor, 
			SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest, 
			SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet
			);
Beispiel #3
0
        public static extern BOOL GetSecurityDescriptorControl(
			PSECURITY_DESCRIPTOR pSecurityDescriptor, 
			out SECURITY_DESCRIPTOR_CONTROL pControl, 
			out DWORD lpdwRevision
			);