Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / ADO.NET / May 2005

Tip: Looking for answers? Try searching our database.

Named Mutex security access.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ken Varn - 16 May 2005 22:02 GMT
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?

Signature

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

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

Nicole Calinoiu - 17 May 2005 14:24 GMT
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.

> My ASP.NET application needs to use a named Mutex that is also used by a
> Windows Application.  The Windows Application runs under administrator
[quoted text clipped - 6 lines]
> How can I create a named Mutex in .NET so that it is accessible by all
> access levels?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.