From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,3f5dfe9e475b2ad0 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!m20g2000vbp.googlegroups.com!not-for-mail From: Pablo Newsgroups: comp.lang.ada Subject: Re: kill a process Date: Tue, 22 Sep 2009 11:43:47 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <6eea521f-5113-4982-bf66-066c2c277951@e34g2000vbm.googlegroups.com> NNTP-Posting-Host: 201.7.145.1 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1253645027 13822 127.0.0.1 (22 Sep 2009 18:43:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 22 Sep 2009 18:43:47 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m20g2000vbp.googlegroups.com; posting-host=201.7.145.1; posting-account=n9Sa1woAAACZc_iwSjaEkj9Lnt-XVrSr User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.0.14) Gecko/2009082707 Firefox/3.0.14 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8427 Date: 2009-09-22T11:43:47-07:00 List-Id: On 21 set, 20:45, tmo...@acm.org wrote: > >How can I kill a Windows process in Ada? > > =A0 type Process_Handles is new Interfaces.C.Unsigned; > =A0 type Exit_Codes is new Interfaces.C.Unsigned; > =A0 type Bool is new Interfaces.C.Int; > > =A0 function TerminateProcess(Process =A0 : Process_Handles; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Exit_Code : Exit_= Codes) return Bool; > =A0 pragma Import(StdCall, TerminateProcess, "TerminateProcess"); Thanks!! Now do you know how can I start two non-exiting Windows process in paralell ? (something like command "&" in unix...)