Named Mutex security access.

K

Ken Varn

My ASP.NET application needs to use a named Mutex that is also used by a
Windows Application. The Windows Application runs under administrator
rights, while the ASP.NET application runs under the SYSTEM account.
Depending on which layer creates the mutex first, the other may get
prevented from using it because the access levels are not the same. In C++,
I could assign a SECURITY_DESCRIPTOR to the mutex to lift the access right
restriction. I see no way of doing this in the .NET version of a Mutex.
How can I create a named Mutex in .NET so that it is accessible by all
access levels?

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
 
N

Nicole Calinoiu

This functionality is not available in the v.1 .NET Framework (although it
has been added to v.2), so you'll need to call the Windows API functions via
p/invoke in order to set the security descriptor.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top