Ehsan

> This is the first time I see anyone checking for the return code of a 
> process in that way.  I doubt it would work.

Look here:

http://windowssdk.msdn.microsoft.com/library/default.asp?url=/library/en-us/
shellcc/platform/shell/reference/functions/shellexecuteex.asp

Snippet:

"If the function succeeds, it sets the hInstApp member of the
SHELLEXECUTEINFO structure to a value greater than 32. If the function
fails, hInstApp is set to the SE_ERR_XXX error value that best indicates the
cause of the failure. Although hInstApp is declared as an HINSTANCE for
compatibility with 16-bit Microsoft Windows applications, it is not a true
HINSTANCE. It can only be cast to an int and compared to either 32 or the
SE_ERR_XXX error codes."

Andrew


This email and any attached files are confidential and copyright protected. If 
you are not the addressee, any dissemination of this communication is strictly 
prohibited. Unless otherwise expressly agreed in writing, nothing stated in 
this communication shall be legally binding.

_______________________________________________
msvc mailing list
msvc@beginthread.com
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to