为什么conhost.exe正在启动? [英] Why is conhost.exe being launched?
问题描述
我启动从.net一个Java程序(java.exe的)。使用的Process.Start()。除了Java进程,另一个进程名为 conhost.exe 以某种方式推出。我重定向从Java过程的输出到.NET的过程。
- 为什么conhost.exe甚至推出?
- 如何从.net跟踪它?我想跟踪这个特定的实例,因为我不能直接创建它(而是JAVA.EXE过程),我没有它的PID。
在早期版本的Windows中,控制台窗口被托管CSRSS中,这是非常优越的,可信的,系统的关键过程。 Win7上,看来控制台窗口现在承载在conhost.exe,其具有较少的权利。这可能是出于安全和放大器进行;可靠性的原因 - 一个安全问题,在控制台系统不会危及整个框,并在控制台code崩溃也不会蓝屏系统
I'm launching a Java process ("java.exe") from .Net. using Process.Start(). In addition to the Java process, another process called conhost.exe is launched somehow. I am redirecting the output from the Java process to the .Net process.
- Why is conhost.exe even launched?
- How do I track it from .Net? I want to track this specific instance, and since I'm not creating it directly (but rather the Java.exe process), I don't have it's PID.
In earlier versions of Windows, console windows were hosted in CSRSS, which is a highly privileged, trusted, system critical process. On Win7, it appears that console windows are now hosted in conhost.exe, which has less rights. This was probably done for security & reliability reasons - a security issue in the console system won't compromise the entire box, and a crash in the console code won't blue screen the system.
这篇关于为什么conhost.exe正在启动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!