Added (untested) win32 implementation