|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Missing enumeration value in EventWaitHandleRights enumeration?Is there a missing value in this enumeration? A dump of the values reveals: 0x0002 - Modify 0x10000 - Delete 0x20000 - ReadPermissions 0x40000 - ChangePermissions 0x80000 - TakeOwnership 0x100000 - Synchronize 0x1f0003 - FullControl I expected FullControl to be the logical sum of the individual rights, but the least significant bit is set in FullControl and there's no equivalent individual right value of 0x0001. The lowest 16 bits are usually reserved for rights that are specific to the type of object, whilst the upper 16 bits are rights values that are common to all objects. Thus there seems to be a right specific to an Event missing from the enumeration. The reason that I ask is that I'm trying to test some code that uses a named event across a process boundary using the .NET 2.0 EventWaitHandle class. I can only get it to work if I allocate FullControl when I create the Event. I don't like doing this when FullControl is really giving too many rights away. Regards David Razzetti |
|||||||||||||||||||||||