First pass for win32 implementation