但隐藏进程的窗口

但隐藏进程的窗口

本文介绍了WINAPI:CreateProcess的,但隐藏进程的窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

,这让命令提示符闪光灯在屏幕上。

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.

我试图通过设置STARTUPINFO结构wShowWindow以SW_HIDE避免这一点,但这个参数似乎影响调用窗口,而不是窗口的被执行的过程。

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.

反正是有,你可以用CreateProcess的启动是从视图中隐藏的程序?

Is there anyway that you can use createprocess to launch a program that is hidden from view?

还有什么是正确的WINAPI标准的方式来获取环境变量?

Also what is the proper winapi standard way to get enviroment variables?

推荐答案

设置STARTF_USESHOWWINDOW在dwFlags中

set the STARTF_USESHOWWINDOW in dwFlags

由锐齿

这篇关于WINAPI:CreateProcess的,但隐藏进程的窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 05:35