应用程序和UAC? [英] Applications and the UAC?

查看:72
本文介绍了应用程序和UAC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在运行时检查程序是否具有"runas admin"权限?使用vb9,VB10或VB11 Beta.在此先感谢您提供任何可能解决此小问题的答案或(文章的说明).

How Would I Check if a program has or needs a "runas admin" permission during runtime? using vb9, VB10, or VB11 beta. Thanks in advance for any answers, or (directions to an article), that could possibly resolve this little problem.

推荐答案

我认为您无法做到即使某些静态代码分析算法可能会有所帮助,它也会自动运行.您只需要了解导致权限问题的原因并相应地编写代码.另外,您可以简单地在没有提升特权的情况下测试代码,但是与任何测试一样,它可以为您提供100%的保证,因为在测试中并非总是能够用尽所有可能的情况.

—SA
I don''t think you can do it automatically, even though some static code analysis algorithm could help. You just need to understand what causes permission problems and write code accordingly. Also, you can simply test the code without elevated privileges, but it can give you 100% guarantee, as with any testing, as it is not always possible to exhaust all possible cases in testing.

—SA


这篇关于应用程序和UAC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆