E
E
Eugene2012-10-24 12:30:02
.NET
Eugene, 2012-10-24 12:30:02

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.

image

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

2 answer(s)
B
BaJlepa, 2012-10-24
@csfmeridian

See here
msdn.microsoft.com/en-us/library/windows/desktop/ms682429(v=vs.85).aspx

I
Iwamoto, 2012-10-29
@Iwamoto

How can I do the same with CMD? I have a CRON scheduler running on behalf of one of the admin accounts, it is necessary that the user in another session has a GUI from CMD.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question