Sign in to follow this  
Followers 0
E1M1

How to make service that runs under SYSTEM but can interact with User?

2 posts in this topic

Vista and newer windows don't really allow service to interact with user anymore. Iven if you specify type=interact then it just means that when service creates gui user receives notification which allows him/her to switch to session 0 as all services run in session 0.

So if you if you run this code as system service all you see is following image:

#include
$l = WinList()
_ArrayDisplay($l)

Posted Image

My service needs to be able list User's windows, not only SYSTEM's windows. I found some solution at http://stackoverflow.com/questions/267838/how-can-a-windows-service-execute-a-gui-application

But I don't know how to properly use CreateProcessAsUser() in my services (would be perfect If I could see example). I would like to know if there are any alternatives to CreateProcessAsUser.


edited

Share this post


Link to post
Share on other sites



I figured that ultra vnc works when it's system and it's not even interact type


edited

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0