Пример #1
0
        private ConsoleSelectionInfo GetSelectionInfo()
        {
            ConsoleSelectionInfo csi = new ConsoleSelectionInfo();

            if (!WinCon.GetConsoleSelectionInfo(csi))
            {
                throw new System.IO.IOException("Unable to get selection info.", Marshal.GetLastWin32Error());
            }
            return(csi);
        }
Пример #2
0
 public static extern bool GetConsoleSelectionInfo(
     [In, Out][MarshalAs(UnmanagedType.LPStruct)] ConsoleSelectionInfo lpConsoleSelectionInfo);
Пример #3
0
 private ConsoleSelectionInfo GetSelectionInfo()
 {
     ConsoleSelectionInfo csi = new ConsoleSelectionInfo();
     if (!WinCon.GetConsoleSelectionInfo(csi))
     {
         throw new System.IO.IOException("Unable to get selection info.", Marshal.GetLastWin32Error());
     }
     return csi;
 }