等待提升的过程 [英] Waiting for an elevated process

查看:62
本文介绍了等待提升的过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,
有什么方法可以启动提升的进程并等待其终止吗?
我尝试使用ShellExecuteEx(),"runas"和NOCLOSEPROCESS标志,但显然无法为我未提升的进程返回有效的句柄...

Hello,
Is there any way to start an elevated process and wait for its termination?
I tried with ShellExecuteEx(), "runas" and the NOCLOSEPROCESS flag, but it apparently fails to return a valid handle to my unelevated process...

推荐答案

也许您可以尝试其他进程间通信方法,例如命名管道,窗口消息.搜索进程间"如果您想查看以前的讨论,请访问http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/threads.
Maybe you can try other inter-process communication methods, e.g. named pipes, window messages. search "interprocess" at http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/threads if you want to see previous discussions.


这篇关于等待提升的过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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