Solved

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

Posted on 2011-02-13
5
622 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 70

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 70

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 70

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

691 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