1 using Microsoft.Win32.SafeHandles;
43 private static Exception _HandleErrorCode(
int errorCode,
string name,
SafeHandle handle,
object context)
46 if (errorCode == 2 || errorCode == 6 || errorCode == 123)
70 return new EventWaitHandleAccessRule(identityReference, accessMask, isInherited, inheritanceFlags, propagationFlags, type);
90 return new EventWaitHandleAuditRule(identityReference, accessMask, isInherited, inheritanceFlags, propagationFlags, flags);
96 if (base.AccessRulesModified)
100 if (base.AuditRulesModified)
104 if (base.OwnerModified)
108 if (base.GroupModified)
112 return accessControlSections;
116 internal void Persist(SafeWaitHandle handle)
122 if (accessControlSectionsFromChanges != 0)
124 Persist(handle, accessControlSectionsFromChanges);
125 bool flag2 = base.AccessRulesModified =
false;
126 bool flag4 = base.AuditRulesModified = flag2;
127 bool ownerModified = base.GroupModified = flag4;
128 base.OwnerModified = ownerModified;
PropagationFlags
Specifies how Access Control Entries (ACEs) are propagated to child objects. These flags are signific...
void AddAccessRule(EventWaitHandleAccessRule rule)
Searches for a matching access control rule with which the new rule can be merged....
Represents the Windows access control security applied to a named system wait handle....
The exception that is thrown when an attempt is made to open a system mutex, semaphore,...
Represents an identity and is the base class for the T:System.Security.Principal.NTAccount and T:Syst...
Represents a combination of a user's identity, an access mask, and an access control type (allow or d...
bool RemoveAccessRule(EventWaitHandleAccessRule rule)
Searches for an access control rule with the same user and T:System.Security.AccessControl....
void RemoveAccessRuleAll(EventWaitHandleAccessRule rule)
Searches for all access control rules with the same user and T:System.Security.AccessControl....
void RemoveAccessRuleSpecific(EventWaitHandleAccessRule rule)
Searches for an access control rule that exactly matches the specified rule and, if found,...
override Type AccessRuleType
Gets the type that the T:System.Security.AccessControl.EventWaitHandleSecurity class uses to represen...
Represents a wrapper class for operating system handles. This class must be inherited.
override Type AccessRightType
Gets the enumeration type that the T:System.Security.AccessControl.EventWaitHandleSecurity class uses...
override AccessRule AccessRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type)
Creates a new access control rule for the specified user, with the specified access rights,...
Represents a set of access rights allowed or denied for a user or group. This class cannot be inherit...
Provides the ability to control access to native objects without direct manipulation of Access Contro...
Provides information about, and means to manipulate, the current environment and platform....
Represents a combination of a user’s identity and an access mask.
Represents a set of access rights to be audited for a user or group. This class cannot be inherited.
void SetAuditRule(EventWaitHandleAuditRule rule)
Removes all audit rules with the same user as the specified rule, regardless of the T:System....
Represents type declarations: class types, interface types, array types, value types,...
ResourceType
Specifies the defined native object types.
void SetAccessRule(EventWaitHandleAccessRule rule)
Removes all access control rules with the same user and T:System.Security.AccessControl....
bool RemoveAuditRule(EventWaitHandleAuditRule rule)
Searches for an audit rule with the same user as the specified rule, and with compatible inheritance ...
override Type AuditRuleType
Gets the type that the T:System.Security.AccessControl.EventWaitHandleSecurity class uses to represen...
AccessControlType
Specifies whether an T:System.Security.AccessControl.AccessRule object is used to allow or deny acces...
void ResetAccessRule(EventWaitHandleAccessRule rule)
Removes all access control rules with the same user as the specified rule, regardless of T:System....
override AuditRule AuditRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
Creates a new audit rule, specifying the user the rule applies to, the access rights to audit,...
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
void RemoveAuditRuleAll(EventWaitHandleAuditRule rule)
Searches for all audit rules with the same user as the specified rule and, if found,...
void AddAuditRule(EventWaitHandleAuditRule rule)
Searches for an audit rule with which the new rule can be merged. If none are found,...
InheritanceFlags
Inheritance flags specify the semantics of inheritance for access control entries (ACEs).
void RemoveAuditRuleSpecific(EventWaitHandleAuditRule rule)
Searches for an audit rule that exactly matches the specified rule and, if found, removes it.
EventWaitHandleRights
Specifies the access control rights that can be applied to named system event objects.
AccessControlSections
Specifies which sections of a security descriptor to save or load.
EventWaitHandleSecurity()
Initializes a new instance of the T:System.Security.AccessControl.EventWaitHandleSecurity class with ...
AuditFlags
Specifies the conditions for auditing attempts to access a securable object.