Some workaround POSIX code using WinApi