当前位置:网站首页>A misunderstanding about the console window

A misunderstanding about the console window

2022-07-05 05:27:00 Korloa

Is the console window the main process of the program ?


Not at all , This is a delay for most people . When we finish writing a C++/C And run it , We call the task manager (Ctrl+Shift+Esc), The findings are as shown in the figure :

We think the one marked is the main program , But it is not , Let's scroll down :

The family name has been written , Just shoot you confused , This is the main process . Sometimes there is more than one such console main process .

What else can we see , I wonder if you have read this blog . One of the parameters is WH_KEYBOARD
Keyboard monitoring technology icon-default.png?t=M0H8https://blog.csdn.net/way_back/article/details/122747689?spm=1001.2014.3001.5502

Its function is to record the keyboard input of the current program main process , But if you are running a console ( Not a window ), You type something into the black box , But there was no response . Obviously the , The black box is just an interaction , Not the main window process .


End~~

This concludes the discussion , As for the thoughtless places, please respond below the comments

原网站

版权声明
本文为[Korloa]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140622302113.html