Delphi - Gracefully Closing Created Process in Service. (using tprocess / createProcess)
问题 I have a Windows Service written in Delphi which runs a number of programs. On Stopping the service, I want to also close these programs. When the service was originally written, this worked fine, but I think I've updated the tProcess component and now - The subordinate programs are not being closed. in tProcess - Here's the code which starts the new processes. if CreateProcess( nil , PChar( FProcess.Command ) , nil , nil , False , NORMAL_PRIORITY_CLASS , nil , Directory , StartupInfo ,