Sergey and Tracy
Thanks. That's correct except on Vista (on the machine I am using) there is another key in
HKEY_CURRENT_USER\SOFTWARE\Clients\Mail
It would appear that's that one Vista is updating consistently. Changing default email client didn't change the value in HKEY_LOCAL_MACHINE entry.
I take I hove to look in current_user first. Any comments will be much appreciated.
Mathias
>Tracy is correct about registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail. See
Adding an Email Client Application for details
>
>The default e-mail client application
>
>HKEY_LOCAL_MACHINE
> SOFTWARE
> Clients
> Mail
> (Default) = Mail_Client
>
>
>>
>>I haven't checked this on xp but it appears so far it is the Vista users being affected to that's where my interest is.
>>
>>I use an lagacy registry class to pick the default email client and the code looks for a key in registry's "mailto\shell\open\command" in Classes Root.
>>
>>This works fine most of the time. The default email client on Vista is Windows Mail. If a customer upgrades or installs Windows Live Mail, and sets it as default email client, the key above still points to Windows Mail.
>>
>>Any advice please on where I should be looking instead or where else I should be looking. The ShellExecute works fine and it does pick the right client so it must be lodged some, any ideas will be much appreciated.
>>
>>Thank you
Mathias Banda
Time is longer than a rope.