I am using the GetConsoleScreenBufferInfo function in an attempt to get the position of the Console cursor (the text cursor, not the mouse cursor). The function however returns error number 12 (invalid access code). The handle to the console is being set with a GetStdHandle call which supposedly gives it generic read and write access. So what gives? Any suggestions (except to move to the GUI which isn't really an option here) are welcome.

________
Rutabega