How to open Empty console window in program (windows)
I need to open a Console window from th开发者_如何学Ce application and need to perform read write operation using console API.
To work with consoles in WinAPI there are some functions such as AllocConsole(), GetStdHandle(), WriteConsole(), ReadConsole(), etc. More info at http://msdn.microsoft.com/en-us/library/ms682073(VS.85).aspx
First case in my mind is to create two levels of your application: server and clients. Server will start clients(new console windows) and clients will cooperate with server. How it would be done you must choose(crossproccess interaction, sockets, etc.)
Second case is intercepting of WinAPI messages from other console window, but in that case i can`t help you :)
精彩评论