EventWaitHandleRights Enumeration
Specifies the access control rights that can be applied to named system event objects.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Assembly: mscorlib (in mscorlib.dll)
| Member name | Description | |
|---|---|---|
| ChangePermissions | The right to change the security and audit rules associated with a named event. | |
| Delete | The right to delete a named event. | |
| FullControl | The right to exert full control over a named event, and to modify its access rules and audit rules. | |
| Modify | The right to set or reset the signaled state of a named event. | |
| ReadPermissions | The right to open and copy the access rules and audit rules for a named event. | |
| Synchronize | The right to wait on a named event. | |
| TakeOwnership | The right to change the owner of a named event. |
Use the EventWaitHandleRights enumeration to specify access control rights when you create EventWaitHandleAccessRule objects. To apply access rights to a named system event, first add EventWaitHandleAccessRule objects to an EventWaitHandleSecurity object, then attach the EventWaitHandleSecurity object to the named system event using the EventWaitHandle::EventWaitHandle(Boolean, EventResetMode, String^, Boolean%, EventWaitHandleSecurity^) constructor or the EventWaitHandle::SetAccessControl method.
Note |
|---|
Security on synchronization objects is not supported for Windows 98 or Windows Millennium Edition. |
The following code example demonstrates the use of EventWaitHandleRights values when creating and using EventWaitHandleAccessRule objects. The example creates an EventWaitHandleSecurity object, adds rules that allow and deny various rights for the current user, and displays the resulting pair of rules. The example then allows new rights for the current user and displays the result, showing that the new rights are merged with the existing AccessControlType::Allowrule.
Note |
|---|
This example does not attach the security object to an EventWaitHandle object; see EventWaitHandleSecurity, EventWaitHandle::GetAccessControl method, and EventWaitHandle::SetAccessControl. |
Available since 2.0
