Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "EŽ!k \\/!$$EŽ" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: How to terminate a process within VO Date: Thu, 15 Sep 2011 21:21:30 +0200 Lines: 43 Message-ID: <9df1hqFbtU1@mid.individual.net> References: <9de31rFlgaU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-15"; reply-type=response Content-Transfer-Encoding: 8bit X-Trace: individual.net FP+IBcB6gcguofoTqlmOQARXNUc6nktNmQivV6p2nFTjae/rVo Cancel-Lock: sha1:RW+QrlbXiFXfCTKFY6N8DPS1E2Y= In-Reply-To: X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 15.4.3538.513 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3538.513 Xref: x330-a1.tempe.blueboxinc.net comp.lang.clipper.visual-objects:2022 Hi Eckhard, And what happens if you do not send WM_CLOSE but WM_DESTROY ? Erik "Eckhard Sallermann" schreef in bericht news:j4slae$8fc$1@dont-email.me... hi Erik, thank you, i have already tried that ptrExcel := FindWindow(String2Psz("XLMAIN"),null_psz) if !ptrExcel == null_ptr ? SendMessage( ptrExcel , WM_CLOSE , 0L , 0L ) endif The Sendmessage returns 0 but the process will still be activ Am 15.09.2011 12:41, schrieb E®!k \/!$$E®: > Eckhard, > > Get the handle of the process with the Win32 API function FindWindow() > and send the WM_CLOSE message. > > regards, > > Erik > > "Eckhard Sallermann" schreef in bericht news:j4sjt7$vcf$1@dont-email.me... > > WINXP SP3 > VO 2.8 SP3 > > hi, > > how can i terminate a windowsprocess with Vo ?