Reputation: 61
The Problem is my exe is started by a service, and in that exe i gave a call to ShellExecute to open a link. In this case the ShellExecute always open the link in IE instead of Default Web Browser.
I think when i execute the exe through a service it does not run in user context so it does not open link in default web browser.
Can any one help me how to open the link in default web browser in this case.
Upvotes: 0
Views: 709
Reputation: 1575
You will need to impersonate the user account/context within the service. Use this link to know how to impersonate an active user context in a service.
Upvotes: 1