Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Need to use ReadConsoleOutputCharacter, but it isn't prototyped in

Started by NightLock, December 05, 2021, 03:44:08 AM

Previous topic - Next topic



I'm trying to save the contents currently written in the console window to a buffer. As far as I understand (and please correct me if I'm wrong), I need the ReadConsoleOutputCharacter Win32 API function for this. However, when invoking it, I get told that the symbol is undefined. In the same program, invoking another function like WriteConsole works. To investigate, I checked the file that comes with the rest of the Irvine files, and for some reason the function isn't prototyped in there. It's strange because  the function is listed in Table 11-2 of the book, the book explicitly says that all Win32 functions are supported by the Irvine library, and even prototyped the Write version of this very function! Could someone help me figure out how I can use this function, maybe by adding the appropriate prototype to

Thanks in advance!