public string GetWindowTitle() { int size = 100; StringBuilder builder = new StringBuilder(size); WinCon.GetConsoleTitle(builder, size); return(builder.ToString()); }