almost win32 impl