Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem using ShellExecute under Windows Server Enterpri
Message
From
30/06/2009 02:51:16
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Miscellaneous
Thread ID:
01409010
Message ID:
01409287
Views:
45
Hi Christof.

I tried looking in HKEY_CURRENT_USER\Software\Classes\.jpg and there wasn't anything. I then tried HKEY_CLASSES_ROOT_USER\.jpg best I could get from there was that a .jpg file was known as a jpegfile. I then looked up HKEY_CLASSES_ROOT/jpegfile where I did find a PrintTo key, but it had no value of sub keys. The CLSID defined under jpegfile lead me to Microsoft HTML Document 6.0, which has even less to do with what's going on.

If I try all this on my XP machine it makes sense. HKEY_CLASSES_ROOT_USER\.jpg leads to HKEY_CLASSES_ROOT/jpegfile which has a Shell key which contains an Open option, which contains what I'd expect. On the server the Shell key is missing.

Ian Simcock.


>Hi Ian,
>
>>1) Why ShellExecute is not using the Default Verb , or
>
>That would happen if there's no default action associated with the file extension. In this case, ShellExecute() uses the first verb which might be "print". It could be that Explorer isn't using the first one, rather tries open and edit before resorting to something else.
>
>File associations are stored in HKEY_CURRENT_USER\Software\Classes.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform