Jump to content

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


E1M1
 Share

Recommended Posts

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...