Trying to overwrite default title of ssms(sql server management studio) 17.
Tried using below code for setting custom text. This code works fine on ssms 12 but in ssms 17 new title can be seen by hovering ssms icon in taskbar but when ssms 17 window is brought in focus(foreground) old title appears on the application window.
[DllImport("user32.dll")]
public static extern Boolean SetWindowText(IntPtr HWND, string Text);
SetWindowText(process.MainWindowHandle, "new ssms title");
My main task is to show the new title in SSMS application window. The same title which is shown while hovering the ssms icon in taskbar.