Article View: borland.public.cppbuilder.nativeapi
Article #2595Re: To Kill A Process
From: Bob Gonder
Date: Thu, 01 Feb 2007 21:46
Date: Thu, 01 Feb 2007 21:46
19 lines
1794 bytes
1794 bytes
poojo hackma wrote:
>If AutoRun.exe can detect that CustomSetup.exe is running, it can close
>CustomSetup.exe ... or itself.
>I'd like to use {} within AutoRun.exe to find and close CustomSetup.exe
I think a named pipe could do the job.
CustomSetup creates a pipe named "MyCompanyCustomSetup", and looks for
data on the pipe.
AutoRun tries to open the named pipe.
If fails, ok, Setup not running.
If succeeds, send short piece of data on the pipe that CustomSetup
will interpret as "go away".
CustomSetup would them close the pipe and self terminate.
Alternative, CustomSetup creates an event and waits for it.
AutoRun signals the event.
CustomSetup self terminates when the event is signaled.
CustomSetup can also use the event to signal itself to shut down.
Technical Details
Message-ID:
<t5n4s2lklkv10qibsuotn9k90na6q07v5g@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<45c257c5$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,122949c7220b533e X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: To Kill A Process Date: Thu, 01 Feb 2007 13:46:37 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <t5n4s2lklkv10qibsuotn9k90na6q07v5g@4ax.com> References: <45c257c5$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.146.125 X-Trace: newsgroups.borland.com 1170366332 67.77.146.125 (1 Feb 2007 13:45:32 -0800) Lines: 22 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail