February 9th, 2009, 10:15 AM
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.
February 10th, 2009, 04:53 AM
Re: Adding read/write privileges to process
I need a help.. plz..
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.