🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4016

Re: Create Process and dying parents...

#4016
From: Eric Noel
Date: Fri, 31 Mar 2006 19:26
8 lines
1284 bytes
> What's the easiest way to check if a certain process is still
> alive once I have the process ID?

If you don't need win9x compatibility, then you could use 
OpenProcess(SYNCHRONIZE,false,ProcessID). Then you can use 
WaitForSingleObject to poll the state.

- Eric
Technical Details
Message-ID: <442d82c3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <442c3cf4$1@newsgroups.borland.com> <442c59a6$1@newsgroups.borland.com> <442d4576$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5f01f131eb370203
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 31 Mar 2006 11:26:32 -0800
From: Eric Noel <eric.no@spam.rcs100.com>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Create Process and dying parents...
References: <442c3cf4$1@newsgroups.borland.com> <442c59a6$1@newsgroups.borland.com> <442d4576$1@newsgroups.borland.com>
In-Reply-To: <442d4576$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 207.224.24.86
Message-ID: <442d82c3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1143833283 207.224.24.86 (31 Mar 2006 11:28:03 -0700)
Lines: 8
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail