Lazarus
Programming => General => Topic started by: andersonscinfo on July 06, 2020, 08:48:48 pm
-
Hello, I would like to know if it is possible to control an application running with TProcess, detail is that it was not my app that ran it initially.
Lazarus stable, fpc stable, S.O win 7
-
Only to a certain degree.
what kind of control was you looking for ?
-
handle, processid, and terminate.
Att
-
handle, processid, and terminate.
Att
https://www.freepascal.org/docs-html/current/fcl/process/tprocess.html
-
Thank you all.
-
Hello, I would like to know if it is possible to control an application running with TProcess, detail is that it was not my app that ran it initially.
Lazarus stable, fpc stable, S.O win 7
Afaik no. TProcess wraps ExecuteProcess/execve, and the various preparations for it. Maybe you could reuse some code for handling the pipes, but even those depend on how they are prepared.