Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 我如何隐藏一个在c上有处理程序的窗口#_C#_Winapi_Process - Fatal编程技术网

C# 我如何隐藏一个在c上有处理程序的窗口#

C# 我如何隐藏一个在c上有处理程序的窗口#,c#,winapi,process,C#,Winapi,Process,我需要隐藏使用Processclass生成的窗口 我做了这个程序 _process = new Process() { EnableRaisingEvents = true }; _process.StartInfo.UseShellExecute = false; _process.StartInfo.RedirectStandardOutput = true; _process.StartInfo.CreateN

我需要隐藏使用
Process
class生成的窗口

我做了这个程序

_process = new Process()
            {
                EnableRaisingEvents = true
            };
_process.StartInfo.UseShellExecute = false;
_process.StartInfo.RedirectStandardOutput = true;
_process.StartInfo.CreateNoWindow = true;
_process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
_process.StartInfo.FileName = "app.exe";

_process.Start();
我需要隐藏为此进程生成的窗口。可能是它的一个小窗口


我需要一种方法来隐藏进程调用可以生成的所有子窗口。

可能的重复:好的,但你忘了问问题。CreateNowInow只能应用于控制台模式的应用程序。GUI应用程序通常会忽略processWindowsStyle.Hidden,因为这会创建一个用户只能使用任务管理器关闭的僵尸。请与程序的所有者联系以获得支持。如果我不支持该应用程序,我该怎么办?任何建议。@codeVillagerCU0将您的要求更改为您能够完成的事情。