Tweak win32 console function signature. Add some constants. Add some tests.