是否可以在不显示其窗口的情况下启动命令行应用程序? [英] Is it possible to launch command line application without displaying its window?
本文介绍了是否可以在不显示其窗口的情况下启动命令行应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个命令行应用程序,它具有 wmain()
入口点.我使用 ShellExecuteEx
函数从另一个应用程序启动它.如果我设置 shellExecuteInfo.nShow = SW_HIDE
它仍然会弹出.是否有可能根本不显示它?
I have an command line application that has wmain()
entry point. And I launch it from another app using ShellExecuteEx
function. If I set shellExecuteInfo.nShow = SW_HIDE
it still pops out. Is it somehow possible to not show it at all?
推荐答案
使用 CreateProcess
并传递 CREATE_NO_WINDOW
标志.
Use CreateProcess
and pass the CREATE_NO_WINDOW
flag.
这篇关于是否可以在不显示其窗口的情况下启动命令行应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文