Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SW_HIDE doesn't work with ShellExecute on Firefox

Status
Not open for further replies.

sirugo

Programmer
Aug 1, 2000
162
SE
I have an app that opens Explorer at a given URL, but in the background with no windows open:

ShellExecute (NULL, "open", "iexplore.exe", loginURL, NULL, SW_HIDE);

Works great. I now want the same app to open Firefox in the same way:

ShellExecute (NULL, "open", "firefox.exe", loginURL, NULL, SW_HIDE);

Firefox opens at the correct URL but not in the background.
Seems that SW_HIDE does not work with Firefox.

Why and is there a workaround?
Can I use CreateProcess in the same way, opening a URL?
If so - what does the complete code look like until the browser is closed or process terminated?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top