Why does WriteFile crash when writing to the standard output? Why does WriteFile crash when writing to the standard output? windows windows