Esempio n. 1
0
        public static string GetWindowTitle(IntPtr hWnd, int maxLen)
        {
            StringBuilder sb = new StringBuilder(maxLen);

            Api_User32.GetWindowText(hWnd, sb, sb.Capacity);
            return(sb.ToString());
        }