Solved

C# - how do i activate a UI from win service?

Posted on 2011-02-13
5
617 Views
Last Modified: 2013-12-17
Hi Experts

we wrote  a win service  with C#.  it is local system account
and even though the interact with desktop property is on -
i can't load a GUI or EXE with GUI.

is there a way to Load UI from win service?

10x
for the help
0
Comment
Question by:gudidi
  • 3
  • 2
5 Comments
 
LVL 69

Expert Comment

by:Qlemo
ID: 34882259
Starting with Vista GUI components of interactive services are catched on WinStation 0 (which has been the "Console" in prior OS', which does no longer exist with Vista and above). There is a service running (Ui0Detect) catching Windows and notifying you that there is something to be displayed. Confirming will switch to WinStation 0 temporarily.
You cannot circumvent that. If Ui0Detect does not run, you cannot switch to the Service Desktop.
0
 

Author Comment

by:gudidi
ID: 34882272
i don't understand.
so from the service i can not call GUI?
what is Ui0Detect?
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 34882303
I don't understand. I was expecting you to be an experienced developer, tried that already with XP or the like, because writing interactive services isn't something you would start with when learning.
How much do you know already regarding services?
0
 

Author Comment

by:gudidi
ID: 34882321
not much. icreate service with timer that activate some Dll's.
and now i want to activate Exe file with GUI.
0
 
LVL 69

Accepted Solution

by:
Qlemo earned 500 total points
ID: 34882396
First, read my post again regarding Ui0Detect - it is a service needed in your case. Check that.
If you are not getting a notification from your sevice when Ui0Detect runs, you will need to check for error codes returned in your service.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

OfficeMate Freezes on login or does not load after login credentials are input.
While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question