You cannot use C ++ 11 stream routines with win32 streams (unless you can handle the implementation of mingw streams very much, which I would not recommend), and there is no standard C ++ equivalent for calling APIs for a particular OS.
++ 11 (cfr. waiting), , WaitForSingleObject, ..
: wait_until