The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Farabi on May 01, 2005, 04:59:53 AM

Title: Get console output
Post by: Farabi on May 01, 2005, 04:59:53 AM
I want to get the console output screen buffer. What function should I use?
Title: Re: Get console output
Post by: MichaelW on May 01, 2005, 06:22:17 AM
To get the handle:  MSDN: GetStdHandle (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/getstdhandle.asp)

To read characters from the buffer:  MSDN: ReadConsoleOutputCharacter (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/readconsoleoutputcharacter.asp)

To read character attributes from the buffer:   MSDN: ReadConsoleOutputAttribute (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/readconsoleoutputattribute.asp)

To read characters and attributes from the buffer:  MSDN: ReadConsoleOutput (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/readconsoleoutput.asp)
Title: Re: Get console output
Post by: Vortex on May 01, 2005, 08:38:54 AM
Hi Farabi,

Have a look at the console functions provided by masm32.lib