When could ShellExecute fail? (Delphi) -


I am planning to use ShellExecute for updater of applications written in Delphi 2007, I was thinking ShellExecute will work most with Win computer or if it can be easily failed due to some user permission or something like that.

to

comment

Because ShellExecute can execute execution of shell extensions (data source, context menu operators, verb implementation) which is active by using component object model (COM), COM should be started before ShellExecute Shell extensions require the Com Single-Threaded Apartment (STA) type. In that case, the COM as shown here should be started as follows:

  CoInitializeEx (NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE)  

As Ken Lang Alred has been suggested, what you want to execute, you may need administrative rights.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -