Launching a process in user’s session from a service

后端 未结 5 1708
一个人的身影
一个人的身影 2020-11-28 08:07

In Windows Vista/7/2008/2008R2, is it at all possible to launch a process in a user\'s session from a service? Specifically, the local session would be most useful.

5条回答
  •  温柔的废话
    2020-11-28 08:25

    It can be done but its not considered good practice for services to interact directly with users' sessions as it can create serious security holes.

    http://support.microsoft.com/kb/327618

    A better approach is to create 2 programs, a backend service and a front end client UI program. The service backend runs all the time and exposes its operations using WCF (for instance). The client program could be run at startup of a user's session.

提交回复
热议问题