>>These work for me:
>>
>>? ShellExecute(0,"open","c:\windows\system32\mspaint.exe","D:\software\smlogo.jpg","",1)
>>? ShellExecute(0,"open","c:\windows\sysWOW64\mspaint.exe","D:\software\smlogo.jpg","",1)
>>
>
>Thank you. This works. Questions:
>
>1. How to open jpg and other files with default file type handler like clicking in file in Windows Explorer ?
>
>2. I right clicked in windows explorer in jpg file and selected
>
>Choose default program
>Photo Gallery Viewer
>
>After hat I got error message
>
>Picture printing is not available without the Desktop Experience Feature.
>
>Images are still opened with paint.
>How to open images with Photo Gallery Viewer or other windows built in viewer ?
I do not know.
Clicking from Windows Explorer, it does not mean, you can do it exactly as it is going on on 64 machines when calling from 32 bit application. See
http://msdn.microsoft.com/en-us/library/aa384187.aspx, for example. Even with examples I provided, I do not know whether file redirector works or not.
Until more reliable information is available, I would lean on "universal" file viewers like WEB Browser.