Most of us consider sharing an event to be a really bad idea, let alone a
mutex like structure. A mutant can be abandoned leaving things permanently
locked up while a mutex can’t, so using a mutant in the kernel is a really
stupid idea.
Rethink your design, sharing a mutex this way is great for crashes but not
much else.
Don Burn
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Monday, August 12, 2013 7:13 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to open a named mutex in kernel mode?
Provided that we have two threads A and B. A is a user-mode thread, and B is
a kernel-mode thread.
As we know, if A call CreateEvent to create a named event, then B can open
the named event in kernel mode.
However, if A calls CreateMutex to create a named mutex, how does B open the
named mutex in kernel mode?
Why is there no ZwOpenMutant akin to ZwOpenEvent in kernel mode?
Furthermore, what’s the difference between a user-mode mutex and a kernel
one?
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer