www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/06/13/03:45:23

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: Win32 console question
13 Jun 1998 03:45:23 -0700 :
Message-ID: <01BD96AF.8B5CF450.cygnus.gnu-win32@sos>
To: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>,
"'Gunther Ebert'"
<gunther DOT ebert AT ixos-leipzig DOT de>

Gunther Ebert wrote:
> I need to obtain information of the console output
> of a third-party program. For example, I need to
> determine the size of the console screen buffer
> and I also need to read lines from the output
> of the third-party program which is of course
> running in a different process space than my
> one.

If you're able to start your program in the same console, your problem is 
solved. GetConsoleScreenBufferInfo() returns the size of console buffer, 
ReadConsoleOutput() gives you an access to the buffer contents.

--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019