Add Ian's version of windows.c - no hang, but runs 100% cpu.