
March 6, 2013
3:19 p.m.
On Tue, Mar 5, 2013, at 4:22, Antoine Pitrou wrote:
Apparently you need ReadConsole to read bytes, not ReadConsoleInput: http://msdn.microsoft.com/en-us/library/ms684958%28v=vs.85%29.aspx
ReadConsole reads characters. Using ReadConsoleA to get bytes is almost certainly not what you want 90% of the time. Unfortunately, Python does it (or, more likely, uses ReadFile which does the same thing) now, at least in version 2.7. I may post to this list later this week suggesting improvements to the console streams on win32.