冒充 [英] impersonation
本文介绍了冒充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在c#中具有Windows应用程序,并且可以使用Windows注册表.在Windows 7中,安全性受到限制,但我知道通过配置文件模拟应用程序可以消除此限制.
请帮忙.
have a windows application in c # and work with the Windows registry. In Windows 7 it is restricted for security but I know that impersonating the application through a config file can remove this restriction.
Please help.
推荐答案
在清单文件中:
In your manifest file:
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
请注意,这不会删除UAC提示,只会确保您的应用程序始终需要提升.
Note that that this will not remove the UAC prompt, it will just ensure that your app always requires elevation.
这篇关于冒充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文