Shell在挂起模式下执行
Createprocess API 可以选择使用 CREATE_SUSPENDED 标志创建进程。同样,ShellExecute API 是否有可能创建处于挂起状态的进程。
Createprocess API has a option to create a process with CREATE_SUSPENDED flag. Similarly, is there any possiblity in ShellExecute APIs to create the process in suspended state.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不。ShellExecute 不一定意味着启动进程 - 它用于执行“shell 操作”,例如“打开”或“打印”,这可能会导致创建新进程。
No. ShellExecute doesn't have to imply a process is launched - it's used to perform "shell operations" such as "open" or "print", which may lead to a new process being created.
在 Windows 7 中,生成进程时的 Shell 执行不会调用 createprocess。但在 Windows 2008 中则相反。因此,在 win7 中为 shellexecute 实现了 wine 代码,并通过 createprocess 为我的应用程序工作。
Shell execute while spawning a process is not invoking createprocess in windows 7. But that's opposite in windows 2008. Hence implemented wine code for shellexecute in win7 and made to work via createprocess for my application.