The browser and the registry
-
-
I need to know what browser is the default browser and in what directory is located, so I can call ShellExecute to open some html pages but NOT in the same window. So I guess this information must be stored into the registry, right? So in what keys?
How do you want to force opening .html in new window? Are there any commandline switches you're going to pass to ShellExecute? Tomasz Sowinski -- http://www.shooltz.com
-
I need to know what browser is the default browser and in what directory is located, so I can call ShellExecute to open some html pages but NOT in the same window. So I guess this information must be stored into the registry, right? So in what keys?
-
How do you want to force opening .html in new window? Are there any commandline switches you're going to pass to ShellExecute? Tomasz Sowinski -- http://www.shooltz.com
-
I'm gonna say instead of ShellExecute(..,"open","page.html",...) wich opens the pages in same windows. ShellExecute(..,"open", "Path_got_from_registry:\\iexplore.exe page.html",...). It opens the pages in separate windows. That I know!
Can't you just pass 'opennew' as a verb instead of 'open'? Tomasz Sowinski -- http://www.shooltz.com
-
Can't you just pass 'opennew' as a verb instead of 'open'? Tomasz Sowinski -- http://www.shooltz.com
-
There is no such parameter as openew to pass to ShellExecute. It's not a smart builed function if u ask me!
There is no such parameter as openew to pass to ShellExecute. You're passing plain string as a verb to ShellExecute. 'opennew' is registered as a .html verb, at least on my W2K machine. It's not a smart builed function if u ask me! Sure. Microsoft should hire you as a consultant. ;P Tomasz Sowinski -- http://www.shooltz.com
-
I need to know what browser is the default browser and in what directory is located, so I can call ShellExecute to open some html pages but NOT in the same window. So I guess this information must be stored into the registry, right? So in what keys?
Call RegQueryValueEx(...) with HKEY_CLASSES_ROOT, "http\\shell\\open\\command", "(Default)" and you should get the path to the application browser running as default. /Tommy