Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个重要的资源文件夹(不能嵌入到 exe 文件中),我想限制除 Admin Group 之外的所有 Windows 用户的访问。我的程序以普通(非管理员)用户运行,我只想让资源文件夹访问此进程。我可以询问一次管理员用户的密码,但我不知道这可能吗?
您可以从您的应用程序开始提升权限过程,使用管理员权限执行所需的任何操作,然后结束它。
看看这里:http: //victorhurdugaci.com/using-uac-with-c-part-1/