Exemplo n.º 1
0
 public void ReadOutput(ConsoleApi.CHAR_INFO[] Buffer, ConsoleApi.COORD BufferSize, ConsoleApi.COORD BufferCoord, ref ConsoleApi.SMALL_RECT Region)
 {
     if (!ConsoleApi.ReadConsoleOutput(hConOut, Buffer, BufferSize, BufferCoord, ref Region))
     {
         throw new Win32Exception(Marshal.GetLastWin32Error());
     }
 }
Exemplo n.º 2
0
 public void SetSize(ConsoleApi.COORD Size)
 {
     if (!ConsoleApi.SetConsoleScreenBufferSize(hConOut, Size))
     {
         throw new Win32Exception(Marshal.GetLastWin32Error());
     }
 }