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);
        }
Beispiel #2
0
 public static extern bool GetConsoleSelectionInfo(
     [In, Out][MarshalAs(UnmanagedType.LPStruct)] ConsoleSelectionInfo lpConsoleSelectionInfo);
Beispiel #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;
 }