public static string GetWindowTitle(IntPtr hWnd, int maxLen) { StringBuilder sb = new StringBuilder(maxLen); Api_User32.GetWindowText(hWnd, sb, sb.Capacity); return(sb.ToString()); }
public static string GetWindowTitle(IntPtr hWnd, int maxLen) { StringBuilder sb = new StringBuilder(maxLen); Api_User32.GetWindowText(hWnd, sb, sb.Capacity); return(sb.ToString()); }