8 internal const int HeaderLength = 20;
10 internal const int OwnerFoundAt = 4;
12 internal const int GroupFoundAt = 8;
14 internal const int SaclFoundAt = 12;
16 internal const int DaclFoundAt = 16;
28 private bool IsCraftedAefaDacl
94 private static void MarshalInt(
byte[] binaryForm,
int offset,
int number)
96 binaryForm[offset + 0] = (byte)number;
97 binaryForm[offset + 1] = (byte)(number >> 8);
98 binaryForm[offset + 2] = (byte)(number >> 16);
99 binaryForm[offset + 3] = (byte)(number >> 24);
102 internal static int UnmarshalInt(
byte[] binaryForm,
int offset)
104 return binaryForm[offset + 0] + (binaryForm[offset + 1] << 8) + (binaryForm[offset + 2] << 16) + (binaryForm[offset + 3] << 24);
118 [SecuritySafeCritical]
141 switch (Win32.ConvertSdToSddl(binaryForm, 1, securityInfos, out resultSddl))
160 if (binaryForm ==
null)
176 if (IsCraftedAefaDacl)
181 binaryForm[offset + 1] = b;
182 binaryForm[offset + 2] = (byte)num2;
183 binaryForm[offset + 3] = (byte)(num2 >> 8);
184 int offset2 = offset + 4;
185 int offset3 = offset + 8;
186 int offset4 = offset + 12;
187 int offset5 = offset + 16;
191 MarshalInt(binaryForm, offset2, offset - num);
197 MarshalInt(binaryForm, offset2, 0);
201 MarshalInt(binaryForm, offset3, offset - num);
207 MarshalInt(binaryForm, offset3, 0);
211 MarshalInt(binaryForm, offset4, offset - num);
217 MarshalInt(binaryForm, offset4, 0);
221 MarshalInt(binaryForm, offset5, offset - num);
227 MarshalInt(binaryForm, offset5, 0);
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
void GetBinaryForm(byte[] binaryForm, int offset)
Returns an array of byte values that represents the information contained in this T:System....
The exception that is thrown when the value of an argument is outside the allowable range of values a...
abstract int BinaryLength
Gets the length, in bytes, of the binary representation of the current T:System.Security....
static byte Revision
Gets the revision level of the T:System.Security.AccessControl.GenericSecurityDescriptor object.
abstract SecurityIdentifier Group
Gets or sets the primary group for this T:System.Security.AccessControl.GenericSecurityDescriptor obj...
SecurityInfos
Specifies the section of a security descriptor to be queried or set.
static bool IsSddlConversionSupported()
Returns a boolean value that specifies whether the security descriptor associated with this T:System....
Provides information about, and means to manipulate, the current environment and platform....
int BinaryLength
Returns the length, in bytes, of the security identifier (SID) represented by the T:System....
Represents a security descriptor. A security descriptor includes an owner, a primary group,...
ControlFlags
These flags affect the security descriptor behavior.
string GetSddlForm(AccessControlSections includeSections)
Returns the Security Descriptor Definition Language (SDDL) representation of the specified sections o...
abstract SecurityIdentifier Owner
Gets or sets the owner of the object associated with this T:System.Security.AccessControl....
Represents a security descriptor. A security descriptor includes an owner, a primary group,...
Represents an access control list (ACL) and is the base class for the T:System.Security....
void GetBinaryForm(byte[] binaryForm, int offset)
Copies the binary representation of the specified security identifier (SID) represented by the T:Syst...
Represents a security identifier (SID) and provides marshaling and comparison operations for SIDs.
abstract void GetBinaryForm(byte[] binaryForm, int offset)
Marshals the contents of the T:System.Security.AccessControl.GenericAcl object into the specified byt...
The exception that is thrown when a method call is invalid for the object's current state.
Represents a Discretionary Access Control List (DACL).
int BinaryLength
Gets the length, in bytes, of the binary representation of the current T:System.Security....
AccessControlSections
Specifies which sections of a security descriptor to save or load.