在不重新启动应用程序的情况下进行海拔提升? [英] Elevation without restarting an application?

查看:63
本文介绍了在不重新启动应用程序的情况下进行海拔提升?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人设法通过UAC获得管理权限而无需重新启动应用程序或嵌入清单文件?

Has anyone managed to get administration rights through the UAC without restarting the application or embedding a manifest file?

我想写一些只有管理员才能修改的文件,而不必依赖于另一个高级应用程序.可以冒充以前用某些本机API调用UAC提示的管理员吗?

I'd like to write to some files that only administrators can modify, without relying to another elevated application. Is it possible to impersonate an administrator previously calling with some native API the UAC prompt?

我想这是不可能的,我将不得不使用具有提升权限的外部工具,但我只是想以防万一.

I guess this is not possible and I'll have to use an external tool with elevated rights, but I'm asking just in case.

我知道周围还有其他类似的问题,但是由于它们没有涵盖模拟的主题(如我所见,也未曾有过),也没有对UAC的一些本地调用,因此我决定给出一个新的穿线...

I know there are some other similar questions around, but since they do not cover the topic of impersonation (as fas as I've seen), nor some possible native call to the UAC prompt I decided to give a new thread a go...

推荐答案

如另一个问题所述,您不可能拥有COM对象或其他进程,但不能拥有当前进程.

As stated in this other question, it is not possible, you have can eleveate COM object or another process, but not the current process.

如果路径受保护,则请求Windows Vista UAC提升?

这篇关于在不重新启动应用程序的情况下进行海拔提升?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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