Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6749217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:39:49+00:00 2026-05-26T12:39:49+00:00

I am using a (.NET2.0) service to periodically carry out privileged actions and return

  • 0

I am using a (.NET2.0) service to periodically carry out privileged actions and return the result to shared memory, via IPC, with a non-admin user’s (.NET2.0) process.

I have been using globally named mutexes while developing from my administrator account but when I come to try the application on a limited account I get the error:

Additional information: Access to the path ‘Global\timersyncu33sc3c2sd42frandomlynamedmutexoijfvgf9v3f32’ is denied.

Is there some other way a non-privileged user can interact with a Service? Or should I just share the period of polling and update time and hope those values get written/read atomically?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:39:50+00:00Added an answer on May 26, 2026 at 12:39 pm

    I found the following method of granting access to my limited users as they log on and fire up their GUI. Note the function getUsername(/*somehow*/); had several incarnations and I’m not listing the implementation that worked on XP, I’m sure there are other ways though 3 of the 4 I found didn’t work for me.

    void grantMutexToCurUser(Mutex ^%fpMutex) {
        try {
            fpMutex = Mutex::OpenExisting( ServerGUIBridge::NAMEDMUTEXFORTIMERSYNC,
                static_cast<MutexRights>(
                MutexRights::ReadPermissions | MutexRights::ChangePermissions) );
    
            MutexSecurity^ mSec = fpMutex->GetAccessControl();
            String^ user;
    
            try {
                user = getUsername(/*somehow*/);
                Trace::WriteLine( DateTime::Now.ToLongTimeString() + " - Granting mutex access to: " 
                    + user , "grantMutexToCurUser" );
            } catch (Exception ^ex) {
                Trace::WriteLine( "getUsername: " + ex->Message, "grantMutexToCurUser" );
            }
    
            // First, the rule that denied the current user the right to enter and
            // release the mutex must be removed.
            MutexAccessRule^ rule = gcnew MutexAccessRule( user,
                static_cast<MutexRights>(MutexRights::Synchronize
                | MutexRights::Modify), AccessControlType::Deny );
            mSec->RemoveAccessRule( rule );
    
            // Now grant the user the correct rights.
            rule = gcnew MutexAccessRule( user,
                static_cast<MutexRights>(MutexRights::Synchronize
                | MutexRights::Modify), AccessControlType::Allow );
            mSec->AddAccessRule( rule );
    
            fpMutex->SetAccessControl( mSec );
    
            // Open the mutex with (MutexRights.Synchronize | MutexRights.Modify), the
            // rights required to enter and release the mutex.
            fpMutex = Mutex::OpenExisting( ewfmon::ServerGUIBridge::NAMEDMUTEXFORTIMERSYNC );
            //noThrowRelease(fpMutex);
        }
        catch ( UnauthorizedAccessException^ ex ) 
        {
            Trace::WriteLine( DateTime::Now.ToLongTimeString() + " - Unable to change permissions: "
                + ex->Message, "grantMutexToCurUser" );
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need my Service to update fields in shared memory for a client application
I using VB.NET 2.0. I am trying to call a web service. This web
I am using ASP.NET2.0. I have created a download form with some input fields
When you create a web service using .NET 2.0 (or 3.5), it generates a
I've installed ODP.NET and am using the session state service through Oracle for an
I'm using a .NET 2.0 Client to communicate with an AXIS Web service. The
I'm trying to create a simple AJAX & web service test (using C# .Net
I have an ASP.NET 2.0 web service and am using it in (among other
We need to print a report periodically from a windows service, we use .NET
I am using a .NET web service as an interface to a database. What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.