🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Closing another program

#12727
From: Eelke Klein
Date: Wed, 19 Nov 2003 08:11
16 lines
1740 bytes
Remy Lebeau (TeamB) wrote:
> You cannot obtain a Process ID from a Process handle.  The reverse is
> possible, though - getting a handle from an ID.
That's a pity I am using ShellExecuteEx which does not return the ID. 
Guess I'll have to switch to CreateProcess :(.

> Also keep in mind
> that it is possible for programs to prevent their windows from being closed
> prematurely, so depending on the program that is being launched, it may or
> may not be so easy to close it down.
It's a very limited set of applications I wish to close so it will be 
easy to check this.

Thanks,

Eelke
Technical Details
Message-ID: <3fbb259d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3fba0c7c@newsgroups.borland.com> <5hjkrvc8sljb887ni7t0geolt5m9fcmer3@4ax.com> <3fba5bf3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,36f59e3e03394bfd
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-19 00:26:58 PST
Date: Wed, 19 Nov 2003 09:11:41 +0100
From: Eelke Klein <e.klein@mplussoftware.nl>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Closing another program
References: <3fba0c7c@newsgroups.borland.com> <5hjkrvc8sljb887ni7t0geolt5m9fcmer3@4ax.com> <3fba5bf3$1@newsgroups.borland.com>
In-Reply-To: <3fba5bf3$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.58.1.162
Message-ID: <3fbb259d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1069229469 81.58.1.162 (19 Nov 2003 00:11:09 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail