give full control folder access to one process in Windows

873 Views Asked by At

I've got an important resource folder (that can not be embeded in exe file) and I want to limit access of all Windows users except Admin Group ones. My program runs in normal (not Admin) user and I want give resource folder access only to this process. I can ask Admin user's password once, but I don't know is it possible or not?

1

There are 1 best solutions below

1
On

You can start an elevated rights process from you application, do whatever is needed with admin rights and end it after.

Take a look here: http://victorhurdugaci.com/using-uac-with-c-part-1/