_ShellExecute Error 5?  
Author Message
DianaBeaubien





PostPosted: Fri Apr 29 00:10:28 CDT 2005 Top

Exchange Servers >> _ShellExecute Error 5?

I have one user (XP SP2) of an application that gets a return value of 5
from shellexecute. The program is attempting to run an "FDF" file. The
file association appears to be okay. In fact if I click on the selected
file it open in Acrobat Reader as expected.

The documentation for shellexecute mentions the following:

2 = Bad Association (for example, invalid URL)
29 = Failure to load application
30 = Application is busy
31 = No application association

No mention of 5.

Anyone have any idea what 5 represents?

Dave

Exchange Server44  
 
 
Stefan





PostPosted: Fri Apr 29 00:10:28 CDT 2005 Top

Exchange Servers >> _ShellExecute Error 5?


>I have one user (XP SP2) of an application that gets a return value of 5 from
>shellexecute. The program is attempting to run an "FDF" file. The file association
>appears to be okay. In fact if I click on the selected file it open in Acrobat
>Reader as expected.
>
> The documentation for shellexecute mentions the following:
>
> 2 = Bad Association (for example, invalid URL)
> 29 = Failure to load application
> 30 = Application is busy
> 31 = No application association
>
> No mention of 5.

According to MSDN:
#DEFINE SE_ERR_FNF 2
#DEFINE SE_ERR_PNF 3
SE_ERR_FNF is "File not found." and SE_ERR_PNF is "Path not found."


hth
-Stefan



--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------

 
 
PM





PostPosted: Fri Apr 29 08:56:04 CDT 2005 Top

Exchange Servers >> _ShellExecute Error 5? A return value of 5 is an "Access is denied" error.

See:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/system_error_codes__0-499_.asp

PM Godfrey


On Thu, 28 Apr 2005 13:36:16 -0400, "David Tiffany"


>I have one user (XP SP2) of an application that gets a return value of 5
>from shellexecute. The program is attempting to run an "FDF" file. The
>file association appears to be okay. In fact if I click on the selected
>file it open in Acrobat Reader as expected.
>
>The documentation for shellexecute mentions the following:
>
>2 = Bad Association (for example, invalid URL)
>29 = Failure to load application
>30 = Application is busy
>31 = No application association
>
>No mention of 5.
>
>Anyone have any idea what 5 represents?
>
>Dave
>