Ejemplo n.º 1
0
 public SecurityDescriptor(SafeHandle objectHandle, ObjectType objectType, SECURITY_DESCRIPTOR *descriptor, bool ownsHandle = true)
     : base((IntPtr)descriptor, ownsHandle)
 {
     _control      = descriptor->Control;
     _objectHandle = objectHandle;
     _objectType   = objectType;
 }
Ejemplo n.º 2
0
 public static extern BOOL SetSecurityDescriptorControl(
     PSECURITY_DESCRIPTOR pSecurityDescriptor,
     SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest,
     SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet
     );
Ejemplo n.º 3
0
 public static extern BOOL GetSecurityDescriptorControl(
     PSECURITY_DESCRIPTOR pSecurityDescriptor,
     out SECURITY_DESCRIPTOR_CONTROL pControl,
     out DWORD lpdwRevision
     );
Ejemplo n.º 4
0
 static internal extern bool GetSecurityDescriptorControl(SafeHandle pSecurityDescriptor, out SECURITY_DESCRIPTOR_CONTROL pControl, out UInt32 lpdwRevision);
Ejemplo n.º 5
0
		public static extern BOOL SetSecurityDescriptorControl(
			PSECURITY_DESCRIPTOR pSecurityDescriptor, 
			SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest, 
			SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet
			);
Ejemplo n.º 6
0
 public static extern bool GetSecurityDescriptorControl(
     IntPtr pSecurityDescriptor,
     out SECURITY_DESCRIPTOR_CONTROL pControl,
     out uint lpdwRevision
     );
Ejemplo n.º 7
0
		public static extern BOOL GetSecurityDescriptorControl(
			PSECURITY_DESCRIPTOR pSecurityDescriptor, 
			out SECURITY_DESCRIPTOR_CONTROL pControl, 
			out DWORD lpdwRevision
			);
 public static ControlFlags AsControlFlags(this SECURITY_DESCRIPTOR_CONTROL ctrl) =>
 (ControlFlags)ctrl;
 public static extern bool GetSecurityDescriptorControl(
     IntPtr pSecurityDescriptor,
     out SECURITY_DESCRIPTOR_CONTROL pControl,
     out uint lpdwRevision
 );
 internal static extern bool GetSecurityDescriptorControl(SafeGlobalMemoryBufferHandle pSecurityDescriptor, out SECURITY_DESCRIPTOR_CONTROL pControl, out uint lpdwRevision);
 public SECURITY_DESCRIPTOR(byte revision = default, byte sbz1 = default, SECURITY_DESCRIPTOR_CONTROL control = default, ref ptr <SID> owner = default, ref ptr <SID> group = default, ref ptr <ACL> sacl = default, ref ptr <ACL> dacl = default)
 {
     this.revision = revision;
     this.sbz1     = sbz1;
     this.control  = control;
     this.owner    = owner;
     this.group    = group;
     this.sacl     = sacl;
     this.dacl     = dacl;
 }