예제 #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;
 }