Answer the question
In order to leave comments, you need to log in
Starting a process from a service
Good day, dear Khabrovites!
One question arose, how to launch an arbitrary process so that it runs under the current user, but runs from poses under a service running under the system account?
An example of this is TeamViewer.
Moreover, during installation, TeamViewer did not ask for the user's login and password ...
How can I repeat this?
Now it’s done like this, the service (from under the system) launches the application, the application, accordingly, also hangs them under the system account, and this application interacts via sockets with the 3rd one (written in startup), which interacts with the desktop. This was done due to the fact that in XP and Win7 the possibilities for interacting with the desktop from under processes are different ... Allegedly a universal solution ... But I would like to do it exactly the way TeamViewer does it.
Answer the question
In order to leave comments, you need to log in
See here
msdn.microsoft.com/en-us/library/windows/desktop/ms682429(v=vs.85).aspx
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question