Exemple #1
0
 public static extern bool SetConsoleMode(IntPtr hConsoleHandle, CONSOLE_MODE dwMode);
Exemple #2
0
 public static extern bool GetConsoleMode(IntPtr hConsoleHandle, ref CONSOLE_MODE lpMode);
Exemple #3
0
        static bool ConsoleDisplayMode(CONSOLE_MODE mode)
        {
            IntPtr handle = GetStdHandle((int)STD_HANDLE.STD_OUTPUT_HANDLE);

            return(SetConsoleDisplayMode(handle, (int)mode, IntPtr.Zero));
        }