Пример #1
0
        public static CONSOLE_FONT_INFO_EX GetCurrentFontInfo()
        {
            CONSOLE_FONT_INFO_EX ConsoleFontInfo = new CONSOLE_FONT_INFO_EX();

            ConsoleFontInfo.cbSize = (uint)Marshal.SizeOf(ConsoleFontInfo);
            WinApi.GetCurrentConsoleFontEx(WinApi.GetStdHandle(StdHandle.OutputHandle), false, ref ConsoleFontInfo);
            return(ConsoleFontInfo);
        }
Пример #2
0
 public static extern Int32 SetCurrentConsoleFontEx(IntPtr ConsoleOutput, bool MaximumWindow, ref CONSOLE_FONT_INFO_EX ConsoleCurrentFontEx);
Пример #3
0
 public extern static bool GetCurrentConsoleFontEx(IntPtr hConsoleOutput, bool bMaximumWindow, ref CONSOLE_FONT_INFO_EX lpConsoleCurrentFont);
Пример #4
0
 public static void SetCurrentFontInfo(CONSOLE_FONT_INFO_EX ConsoleFontInfo)
 {
     ConsoleFontInfo.cbSize = (uint)Marshal.SizeOf(ConsoleFontInfo);
     WinApi.SetCurrentConsoleFontEx(WinApi.GetStdHandle(StdHandle.OutputHandle), false, ref ConsoleFontInfo);
 }