Win32 implementation