Solved

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

Posted on 2011-02-13
5
589 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 68

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 68

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 68

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

So many times I have seen the words written in a question "if only I could show you" or " I know how hard it is for you since you can't see it" in any zone. That has inspired me to write about this tool in windows 7 called "Problem Steps Recorder…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
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…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now