CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2006
    Mumbai, India

    Adding read/write privileges to process


    I am working on an application which is a Windows Service.
    There is another process which needs to be called from user context by my service. This I have achieved using Imporsonating logged in user token.
    Everything works fine with user with Administrator rights. But local or limited account , in a case where I need to read from critical file, The imporsonated process fails because of limited privileges.

    My Problem is
    1. My Service needs to create a process which will run in logged in user context.
    2. The new process should have privileges to read/write files (same as service)

    I tried different ways to do this but in vein. I tried calling AdjustTokenPrivilges() but it didnt worked for me

    Can anyone plz help me resolve this issue,

    Thanks in advance.

  2. #2
    Join Date
    May 2006
    Mumbai, India

    Re: Adding read/write privileges to process

    Hey guys..

    I need a help.. plz..

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.