I want to get the console output screen buffer. What function should I use?
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)
Hi Farabi,
Have a look at the console functions provided by masm32.lib