Beispiel #1
0
        public static string GetTopWindowText()
        {
            IntPtr desktop   = WinAPIDeclarations.GetDesktopWindow();
            IntPtr topWindow = WinAPIDeclarations.GetTopWindow(desktop);

            return(GetTextOfWindow(topWindow));
        }