murrayju / CreateProcessAsUser

Creates a process in a different Windows session
MIT License
369 stars 114 forks source link

This service works if the user is logged in #2

Closed kolobok01 closed 9 years ago

kolobok01 commented 9 years ago

I wonder if it would be possible to start the service and that service would start a process in session 1 weather or not user have logged on. The is one sample http://www.codeproject.com/Articles/35773/Subverting-Vista-UAC-in-Both-and-bit-Archite That works win the following manner unfortunately starts the service as LocasService user which brings limitation. My windows and c# is none existent . This is not the issue but a cry for help or at least guidance :)

Thanks in advance.

murrayju commented 9 years ago

I don't think so. The session does not exist unless a user is logged in. It is possible to detect when the session starts/ends, and launch your process as soon as they log in.