Added some Win32 functions