winapi: CreateProcess but hide the process' window?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using CreateProcess to create a cmd.exe process that is passed a parameter that it executes and quits, this makes command prompt flash up on the screen. I tried to avoid this by setting STARTUPINFO struct wShowWindow to SW_HIDE but this parameter seems to affect the calling window, not the window for the process that gets executed. Is there anyway that you can use createprocess to launch a program that is hidden from view? Also what is the proper winapi standard way to get enviroment variables? 回答1: If its just a console app you can