0

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?

Alireza
  • 29
  • 1
  • 3
  • I used **runas** command for executing my program under admin user permission. Is it a bad solution? – Alireza Apr 09 '11 at 09:32

1 Answers1

0

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/

Victor Hurdugaci
  • 28,177
  • 5
  • 87
  • 103