Named Mutex security access.

  • Thread starter Thread starter Ken Varn
  • Start date Start date
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
-----------------------------------
 
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.
 
Back
Top