SetWindowText

[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
public static extern bool SetWindowText(
   IntPtr hWnd,
   string lpString
);

Microsoft documentation: Link

Last updated