Gingko
2010-01-23 12:32:39 UTC
Hello,
I have an application that uses (several times) the function "ShellExecute"
for opening a URL inside a web browser (using the default web browser), with
a call like the following one :
int nResult = (int)ShellExecute(hMainWnd, "open",
"http://fr.wikipedia.org/", NULL, NULL, SW_SHOWNORMAL);
(given URL is a generic sample, of course, actual values are different and
there are 3 different ones)
This used to work on Windows XP, and this still works on Windows Vista and
Windows 7.
But now, for an unknown time, maybe after some update to Windows XP, the
call no longer opens anything and returns error code 5 (=
SE_ERR_ACCESSDENIED).
Same result whatever I compile in Unicode or not.
Used default brower is Mozilla Firefox.
OS is Windows XP Professional SP3, French edition, all critical and many not
critical updates installed as of today (on all computers).
I checked this using 3 different computers having Windows XP (for getting an
error result) and also 3 different computers having Windows Vista or Windows
7 (actually multiboot of the same computers), where it works correctly.
I would like to know how to have it working again on Windows XP, or if there
is some other method for opening an URL using the default browser that would
be garanteed to work on Windows XP.
I made some searches using Google with the words ShellExecute and
SE_ERR_ACCESSDENIED, this gives a lot of results, but I didn't find any that
really apply to my case, or that give a solution working for me.
Can somebody help me ?
Thanks for any help.
Gilles
P.S.: I already asked this question in microsoft.public.platformsdk.shell,
but it looks like this newsgroup is no longer managed.
I have an application that uses (several times) the function "ShellExecute"
for opening a URL inside a web browser (using the default web browser), with
a call like the following one :
int nResult = (int)ShellExecute(hMainWnd, "open",
"http://fr.wikipedia.org/", NULL, NULL, SW_SHOWNORMAL);
(given URL is a generic sample, of course, actual values are different and
there are 3 different ones)
This used to work on Windows XP, and this still works on Windows Vista and
Windows 7.
But now, for an unknown time, maybe after some update to Windows XP, the
call no longer opens anything and returns error code 5 (=
SE_ERR_ACCESSDENIED).
Same result whatever I compile in Unicode or not.
Used default brower is Mozilla Firefox.
OS is Windows XP Professional SP3, French edition, all critical and many not
critical updates installed as of today (on all computers).
I checked this using 3 different computers having Windows XP (for getting an
error result) and also 3 different computers having Windows Vista or Windows
7 (actually multiboot of the same computers), where it works correctly.
I would like to know how to have it working again on Windows XP, or if there
is some other method for opening an URL using the default browser that would
be garanteed to work on Windows XP.
I made some searches using Google with the words ShellExecute and
SE_ERR_ACCESSDENIED, this gives a lot of results, but I didn't find any that
really apply to my case, or that give a solution working for me.
Can somebody help me ?
Thanks for any help.
Gilles
P.S.: I already asked this question in microsoft.public.platformsdk.shell,
but it looks like this newsgroup is no longer managed.