No.
This will require the target application to allow the window title to be altered altogether. Many programs use their headers to display useful information (for example, the name of a file open for editing in Notepad, or <TITLE> an HTML document open in Firefox).
In one case, which I know about, this allows the user to set the header text with slight restrictions - CMD.EXE works in the console window. CMD supports the built-in TITLE command, which sets the window title based on its arguments. But this cannot be done by a second window without pasting key strokes into a specific console window, which is usually not recommended.
Edit:
Since the idea is floating that SetWindowText() will do it for you, let me clarify.
This API function does indeed change the title bar of a top-level window. In fact, this is a call that an application, such as Notepad, is likely to use to set its own title anytime it thinks the name has changed.
The reason I argue that this is not because Notepad really changes the title whenever it wants. An application that supports arbitrary changes to its name must have some mechanism to remember that the title has been changed and not arbitrarily restore its preferred title bar.
source share