comp.lang.ada
 help / color / mirror / Atom feed
* Killing a spawned program
@ 2005-02-08 22:14 Richard Lowe
  2005-02-08 23:24 ` Larry Kilgallen
  2005-02-09  8:29 ` Dmitry A. Kazakov
  0 siblings, 2 replies; 3+ messages in thread
From: Richard Lowe @ 2005-02-08 22:14 UTC (permalink / raw)


How, using Gnat and GtkAda, does one kill a non-Ada program which has been
spawned from within an Ada program running under Windows 98SE ?





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Killing a spawned program
  2005-02-08 22:14 Killing a spawned program Richard Lowe
@ 2005-02-08 23:24 ` Larry Kilgallen
  2005-02-09  8:29 ` Dmitry A. Kazakov
  1 sibling, 0 replies; 3+ messages in thread
From: Larry Kilgallen @ 2005-02-08 23:24 UTC (permalink / raw)


In article <cubdkj$5i5$1@hercules.btinternet.com>, "Richard Lowe" <richard.lowe9@btopenworld.com> writes:
> How, using Gnat and GtkAda, does one kill a non-Ada program which has been
> spawned from within an Ada program running under Windows 98SE ?

Using whatever Windows service you would use to kill any spawned process ?



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Killing a spawned program
  2005-02-08 22:14 Killing a spawned program Richard Lowe
  2005-02-08 23:24 ` Larry Kilgallen
@ 2005-02-09  8:29 ` Dmitry A. Kazakov
  1 sibling, 0 replies; 3+ messages in thread
From: Dmitry A. Kazakov @ 2005-02-09  8:29 UTC (permalink / raw)


On Tue, 8 Feb 2005 22:14:44 +0000 (UTC), Richard Lowe wrote:

> How, using Gnat and GtkAda, does one kill a non-Ada program which has been
> spawned from within an Ada program running under Windows 98SE ?

It is not a good idea to kill a process under Windows. Depending on which
DLLs and drivers are used by the process being killed, that might
compromise the operating system state. However, see:

   TerminateProcess

of Win32 API in MSDN.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-02-09  8:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-08 22:14 Killing a spawned program Richard Lowe
2005-02-08 23:24 ` Larry Kilgallen
2005-02-09  8:29 ` Dmitry A. Kazakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox