Win32 API translation to Linux