"asInvoker"和"asInvoker"之间有什么区别和“最高可用"执行水平? [英] What is the difference between "asInvoker" and "highestAvailable" execution levels?

查看:1419
本文介绍了"asInvoker"和"asInvoker"之间有什么区别和“最高可用"执行水平?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在想嵌入之间有什么区别

I've been wondering what the difference between embedding

<requestedExecutionLevel  level="asInvoker" uiAccess="false" />

<requestedExecutionLevel  level="highestAvailable" uiAccess="false" />

您应用程序清单中的

.

in your application's manifest is.

推荐答案

这是在MSDN上进行了描述:

基本上,"asInvoker"将使用用户的默认安全设置.它被描述为应用程序使用与父进程相同的访问令牌运行.",这意味着将相同的安全令牌用作调用进程,通常是桌面外壳程序(或启动此进程的进程,如果您启动了自己的进程)应用程序).

Basically, "asInvoker" will use the user's default security settings. It's described as "The application runs with the same access token as the parent process.", which means the same security token is used as the calling process, which is typically the desktop shell (or the process that launches this, if you launch your app from another program).

使用"highestAvailable"将导致应用程序使用用户可获得的最高特权运行.例如,如果他们是管理员,他们将收到UAC提示,并且该应用将以管理员权限运行.但是,如果他们是普通用户,他们将获得普通的安全设置,等等.

Using "highestAvailable" will cause the application to run using the highest priveledges the user can obtain. If they're an administrator, for example, they'll get a UAC prompt and the app will run with admin rights. However, if they're a normal user, they'll get normal security settings, etc.

通常,除非有特殊原因要求更多权限,否则您将要使用"asInvoker".

In general, you'll want to use "asInvoker" unless you have a specific reason to request more rights.

这篇关于"asInvoker"和"asInvoker"之间有什么区别和“最高可用"执行水平?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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