Hi! Schau mal, ob Dir das weiterhilft.
Code:
[DllImport("user32")]
private static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
[DllImport("user32")]
private static extern IntPtr FindWindowEx(IntPtr hWnd1, IntPtr hWnd2, string lpsz1, string lpsz2);
[DllImport("user32")]
private static extern bool SetWindowText(IntPtr hWnd, string lpString);
IntPtr HWnd;
HWnd = FindWindow();
HWnd = FindWindowEx();
SetWindowText();
Grüße,
Marc