Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HWnd of Visual Studio 2010

Is there a way to get the HWnd pointer to the top window of Visual Studio 2010 from a VSIX extension? (I would like to change the title of the window).

like image 641
Jake Pearson Avatar asked Dec 14 '10 14:12

Jake Pearson


1 Answers

Since there are good chances that your VSIX extension will be running in-process with Visual Studio, you should try this:

System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle

(Note if you do this too early, you'll get VS Splash screen ...)

like image 146
Simon Mourier Avatar answered Sep 19 '22 17:09

Simon Mourier