开发者

give full control folder access to one process in Windows

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 Adm开发者_如何学编程in user's password once, but I don't know is it possible or not?


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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜