Exemplo n.º 1
0
        }         // proc GetConsoleScreenBufferInfoEx

        private static void SetConsoleScreenBufferInfoEx(IntPtr hConsole, bool all, ref ConsoleScreenBufferInfoEx bufferInfo)
        {
            if (!UnsafeNativeMethods.SetConsoleScreenBufferInfoEx(hConsole, ref bufferInfo))
            {
                throw new Win32Exception();
            }
            if (all)
            {
                SetConsoleCursorPosition(hConsole, bufferInfo.dwCursorPosition);
            }
        }         // proc SetConsoleScreenBufferInfoEx
Exemplo n.º 2
0
        }         // proc Copy

        #endregion

        #region -- Buffer -------------------------------------------------------------

        private static void GetConsoleScreenBufferInfoEx(IntPtr hConsole, out ConsoleScreenBufferInfoEx bufferInfo)
        {
            bufferInfo = new ConsoleScreenBufferInfoEx()
            {
                cbSize = ConsoleScreenBufferInfoEx.Size
            };
            if (!UnsafeNativeMethods.GetConsoleScreenBufferInfoEx(hConsole, ref bufferInfo))
            {
                throw new Win32Exception();
            }
        }         // proc GetConsoleScreenBufferInfoEx
Exemplo n.º 3
0
 public static extern bool SetConsoleScreenBufferInfoEx([In] IntPtr hConsoleOutput, [In] ref ConsoleScreenBufferInfoEx lpConsoleScreenBufferInfo);