コード例 #1
0
 private static NativeInterface.CONSOLE_SCREEN_BUFFER_INFO getScreenBufferInfo()
 {
     using (SafeHandle hConsoleOutput = ConsoleInterface.getConsoleOutputHandle())
     {
         NativeInterface.CONSOLE_SCREEN_BUFFER_INFO screenBufferInfo = default(NativeInterface.CONSOLE_SCREEN_BUFFER_INFO);
         ConsoleInterface.callWin32Func(() => NativeInterface.GetConsoleScreenBufferInfo(hConsoleOutput, out screenBufferInfo));
         return(screenBufferInfo);
     }
 }