Set focus on the console in Windows?

Can I customize the focus on a console application in Windows? SetFocus looks promising, but it needs HWND, and I don't know if there is even one in console applications.

+3
source share
1 answer

Use the GetConsoleWindow function.

+2
source

Source: https://habr.com/ru/post/988111/


All Articles