static string GetWindowTextUsingNet() { return System.Diagnostics.Process. GetCurrentProcess().MainWindowTitle; }