I need a small piece of Delphi code which:
runs inside a service
figure out all current logged in users on the current PC
Gets the token from the logged in users
runs/executes a process ([login to view URL]) in the context of the logged in users
Passwords and login names are not known, so you have
to solve it via the user tokens.
You do not have to write a whole service, it's pretty good enough if
your code runs with [login to view URL] (Ex-Systernals tool - ask for URL) in
service mode/with service/interactive parameters.