I have starter new System.Diagnostics.Process and it launchs FireFox. How can I obtain the Handler of that window? Any ideas – C#, winAPI functions… anything (just not ASM 😉 )
I have starter new System.Diagnostics.Process and it launchs FireFox. How can I obtain the
Share
Once you started the process, you can call
process.Refresh()and theprocess.MainWindowHandleproperty will eventually contain the native windows handle of the application’s main window.You might have to wait a little bit after you started the process for it to get populated.
Here is some code: