-
February 9th, 2009, 10:15 AM
#1
Adding read/write privileges to process
Hi,
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.
-
February 10th, 2009, 04:53 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|