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