ACAT.Lib.Core.Utility.Windows.GetWindowTitle C# (CSharp) Метод

GetWindowTitle() публичный статический Метод

Returns the window title of the specified window
public static GetWindowTitle ( IntPtr hwnd ) : String
hwnd System.IntPtr handle to the window
Результат String
        public static String GetWindowTitle(IntPtr hwnd)
        {
            if (hwnd != IntPtr.Zero)
            {
                var sb = new StringBuilder(256);
                User32Interop.GetWindowText(hwnd, sb, 256);
                return sb.ToString();
            }
            return String.Empty;
        }