Article View: borland.public.cppbuilder.nativeapi
Article #4913Re: Spawning and controlling
From: Denville Longhurst
Date: Sat, 12 Nov 2005 10:16
Date: Sat, 12 Nov 2005 10:16
24 lines
1955 bytes
1955 bytes
Thanks again Denville "Alan Bellingham" <alanb@episys.com> wrote in message news:9ur9n1ll47fs35sshl21i4o5j3b61u1fin@4ax.com... > "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:
<4375c0c4@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.volia.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4374b248$1@newsgroups.borland.com> <81g9n1tnc4hn71lnsbge6ie8osgd9mpluv@4ax.com> <4374e2ca@newsgroups.borland.com> <9ur9n1ll47fs35sshl21i4o5j3b61u1fin@4ax.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: "Denville Longhurst" <Denville@metco.co.uk> Newsgroups: borland.public.cppbuilder.nativeapi References: <4374b248$1@newsgroups.borland.com> <81g9n1tnc4hn71lnsbge6ie8osgd9mpluv@4ax.com> <4374e2ca@newsgroups.borland.com> <9ur9n1ll47fs35sshl21i4o5j3b61u1fin@4ax.com> Subject: Re: Spawning and controlling Date: Sat, 12 Nov 2005 10:16:09 -0000 Lines: 26 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; Original NNTP-Posting-Host: 80.0.6.88 Message-ID: <4375c0c4@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1131790532 80.0.6.88 (12 Nov 2005 02:15:32 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.volia.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail