🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Spawning and controlling

#4910
From: Alan Bellingham
Date: Fri, 11 Nov 2005 19:26
18 lines
1664 bytes
"Denville Longhurst" <Denville@metco.co.uk> wrote:

>Thanks, I didn't know about access().
>
>The stumbling block here was to find the HWND from the process information 
>so I could send a close message.  I gather I must enumerate all running 
>processes to find the process id then get the handle.

Well, if you're doing that, then you might as well find the executable
name for the process as well. (Given that access() may or may not be
very useful at all - it's not as though the only reason you wouldn't
able to write to a file be that it is a running program.)

Alan Bellingham
-- 
Team Thai Kingdom
<url:http://www.borland.com/newsgroups/> Borland newsgroup descriptions
<url:http://www.borland.com/newsgroups/netiquette.html>      netiquette
Technical Details
Message-ID: <9ur9n1ll47fs35sshl21i4o5j3b61u1fin@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4374b248$1@newsgroups.borland.com> <81g9n1tnc4hn71lnsbge6ie8osgd9mpluv@4ax.com> <4374e2ca@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d85ed3b722a8f188
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Alan Bellingham <alanb@episys.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Spawning and controlling
Date: Fri, 11 Nov 2005 19:26:06 +0000
Reply-To: alanb@episys.com
Message-ID: <9ur9n1ll47fs35sshl21i4o5j3b61u1fin@4ax.com>
References: <4374b248$1@newsgroups.borland.com> <81g9n1tnc4hn71lnsbge6ie8osgd9mpluv@4ax.com> <4374e2ca@newsgroups.borland.com>
X-Newsreader: Forte Agent 3.1/32.783
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 62.49.31.105
X-Trace: newsgroups.borland.com 1131737131 62.49.31.105 (11 Nov 2005 11:25:31 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail