Re: finding default browser
Find the registry entry for ".html" (without the quotes), this will give the document type (the description displayed in Windows Explorer's full details view). Then, search for the shell\command\open (it's something like that, I can't remember exactly and I can't view my registry here - disabled by admin)subkey under this document type key (not under the .html key), and this should give a string of the form:
c:\somedirectory\someotherdir\iexplore.exe,1
If you strip off the ',' and digit(s), that gives you the EXE path.
If you want more info, e-mail me at [email protected] and I'll give a code example.
Re: finding default browser
An alternative to manually locating the default Web browser is to let Windows do the work for you.
You can use the ShellExecute() function to open the page. For example:
char *pFile = "c:\\files\\index.html";
ShellExecute(NULL, "open", pFile, NULL, NULL, SW_SHOWNORMAL);
--
Daren Chandisingh