Link to home
Start Free TrialLog in
Avatar of gudidi
gudidiFlag for Israel

asked on

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
Avatar of Qlemo
Qlemo
Flag of Germany image

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.
Avatar of gudidi

ASKER

i don't understand.
so from the service i can not call GUI?
what is Ui0Detect?
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?
Avatar of gudidi

ASKER

not much. icreate service with timer that activate some Dll's.
and now i want to activate Exe file with GUI.
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial