This is a mirror of official site: http://jasper-net.blogspot.com/

Alternative way for window services to interact with desktop where operating > XP

| Sunday, September 19, 2010
Problem:-
When we migrate the solution to windows 7 operating sytem it runs in session 0 .So you get an message blocked by Interactive Service Dialog Detection

This article Can be one solution, for the above problem.

Question:-

1) Why I want the windows service to interact with Desktop ,its not they are made for?

Ans: Yes, Exactly! the windows services are not make to interact with Desktop.But after introducing wcf services which can be hosted in windows services we may have the requirement to run the exe file from the wcf services.

But Before going through this article please read this: http://www.microsoft.com/whdc/system/sysinternals/Session0Changes.mspx

Note:-
   Before Implementing this solution please aware of your requirements and handle all the security problems.

Introduction:

Windows Services:-
Microsoft Windows services, formerly known as NT services, enable you to create long-running executable applications that run in their own Windows sessions. These services can be automatically started when the computer boots, can be paused and restarted, and do not show any user interface. These features make services ideal for use on a server or whenever you need long-running functionality that does not interfere with other users who are working on the same computer. You can also run services in the security context of a specific user account that is different from the logged-on user or the default computer account. For more information about services and Windows sessions.

Read more: Codeproject

Posted via email from .NET Info

0 comments: