New features of Win7: Console Host (ConHost.exe)

  

Today, we will introduce you to the new feature of Windows 7 /Windows Server 2008 R2 - Console Host (ConHost.exe).

In fact, whether as a regular user or an enterprise administrator, we use the console application more or less in the daily Windows application and operation and maintenance process. The console application has no user interface. We need to input and output the command prompt (CMD, which is not DOS, many people are confused).

Then everyone thinks back and forth, what console applications does Windows bring?

In fact, the most typical are cmd.exe, nslookup.exe and telnet.exe.

In earlier versions of Windows, all applications that represented non-GUI activities (ie, console applications) were coordinated by the system process Csrss.exe when running on the desktop. When the console application needs to receive characters, a small "console APIs" is called in Kernel32.dll to let Kernel32 generate LPC to call CSRSS. At this point CSRSS checks and verifies the input queue of the console window and returns the result of the character mode to the console application via Kernel32 for association. Earlier versions of Windows console application will handle the messages as shown below:


Copyright © Windows knowledge All Rights Reserved