• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 640
  • Last Modified:

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

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
gudidi
Asked:
gudidi
  • 3
  • 2
1 Solution
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
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
 
gudidiAuthor Commented:
i don't understand.
so from the service i can not call GUI?
what is Ui0Detect?
0
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
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
 
gudidiAuthor Commented:
not much. icreate service with timer that activate some Dll's.
and now i want to activate Exe file with GUI.
0
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now