模仿shellexecute [英] Impersonation with shellexecute

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

问题描述

我需要帮助来弄清楚如何在不启动新进程的情况下将shellexecute函数与模拟一起使用. Shellexecute 似乎要启动一个新进程,我无法跨越鸿沟,但我需要使用shellExecute,因为它在执行过程中包括文件关联.有人可以通过其他一些API为我提供解决方案吗?

TIA,


Dennis

I need help to figure out how to make use of the shellexecute function along with impersonation without starting a new process. Shellexecute seems to fire a new process and I cannot reach across the gulf, but I need to use shellExecute because it includes the file associations in its execution. Does anyone have a solution for me with perhaps some other APIs.

TIA,


Dennis

推荐答案

Kinda有点黑,但您可以使用CreateProcessAsUser 生成存根exe,然后使用ShellExecute/ShellExecuteEx.
Kinda hackish but you could use CreateProcessAsUser to spawn a stub exe that then uses ShellExecute/ShellExecuteEx.


这篇关于模仿shellexecute的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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