Win32 version for unit tests