I was actually trying to do this on Unix...
getch is implemented in the curses.h file, and I tried using it (after an initscr(), but it still echoed stdin to the screen aswell as to the variable ( I was trying to replace the input keystrokes with an asterix and ended up with an output that looked like a*b*c*...! ).
I was also hoping for something which didn't involve screen manipulation...