Exemplo n.º 1
0
 private static void MonoHardFlush(System.IO.FileStream stream)
 {
     System.IO.MonoIOError result = System.IO.MonoIOError.ERROR_SUCCESS;
     System.IO.MonoIO.Flush(stream.Handle, out result);
     if (result != System.IO.MonoIOError.ERROR_SUCCESS)
     {
         throw new System.IO.IOException(string.Format("Flush call failed with error {0}.", result));
     }
 }
Exemplo n.º 2
0
 private static extern IntPtr OpenSemaphore_internal(string name, SemaphoreRights rights, out System.IO.MonoIOError error);