Article View: borland.public.cppbuilder.nativeapi
Article #3970Re: OpenProcess() returns different handles
From: Wiebe Vos
Date: Mon, 10 Apr 2006 08:15
Date: Mon, 10 Apr 2006 08:15
7 lines
1164 bytes
1164 bytes
Thanks, I want to use the returned handle to check if the program is (still) alive and be able to kill it. However GetExitCodeProcess ( returnedHandle, &exitCode) gives exitCode=0. How can I get the appropriate handle to do so, when I have the processId? Wiebe
Technical Details
Message-ID:
<443a1485$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44397058@newsgroups.borland.com> <443974ee$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8a9918c2e9877ca0 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Wiebe Vos" <wiebe@foxware.nl> Newsgroups: borland.public.cppbuilder.nativeapi References: <44397058@newsgroups.borland.com> <443974ee$1@newsgroups.borland.com> Subject: Re: OpenProcess() returns different handles Date: Mon, 10 Apr 2006 10:15:46 +0200 Lines: 9 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 62.131.171.202 Message-ID: <443a1485$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1144657029 62.131.171.202 (10 Apr 2006 01:17:09 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail