A
A
ArtLivinov2020-07-26 22:33:18
Delphi
ArtLivinov, 2020-07-26 22:33:18

Is it possible to call an application from a service so that it is displayed on the user's desktop in Delphi 7?

Hello.
I am writing a service in Delphi. Moreover, I create it by declaring it so that it does not have a visual part.
I need to call a third-party exe program (also written in Delphi) on a certain event from this service so that it is displayed on the desktop of the user of this PC that is currently active.
Is it possible to do so?
P.S. I understand that it is still possible for users to make separate programs at the time of installing the service, but then they will have to be put into autoload or something like that. And all I need is for the interaction interface to appear only for certain events. And the option of launching at the right time would be better.
Maybe somehow through uses ShellApi it is possible using ShellExecute?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
Hemul GM, 2020-07-27
@ArtLivinov

However, an agent who will communicate with the service is desirable.
You can see how it works, for example Cobian Backup. It is written in Delphi in just such a concatenation. There is somewhere the source of the old version.
But you can start a process from a service this way. CreateProcessAsUser
https://stackoverflow.com/questions/11907299/creat...

U
u007, 2020-08-18
@u007

An acquaintance of my uncle in such cases created a task in the system scheduler to run "right now" and on behalf of the desired user.
Not that I would approve of such hacks, but this should work most likely maybe probably

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question