🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Close a Program!?

#10868
From: Safari
Date: Thu, 11 Mar 2004 23:10
25 lines
1649 bytes
Example: Msimn.exe = Microsoft Outlook Express;

void __fastcall TMain::BitBtn1Click(TObject *Sender)
{
   HWND MyMean = FindWindow(OEClassName, OECaptionName);
   SendMessage(MyMean, WM_SYSCOMMAND, SC_CLOSE, 0);
}
I want a close a program with class name, but my class
is #32770!

Thanks,
Safari

"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message
news:404fe0d3$1@newsgroups.borland.com...
|
| "Safari" <Safari@alloymail.com> wrote in message
| news:404fc418@newsgroups.borland.com...
|
| > How can i close a program from TaskList?
|
| What kind of program exactly?  Console?  GUI?  Are there any windows
| involved?  How are you determining which program to terminate?
|
| Gambit
Technical Details
Message-ID: <4051013a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <404fc418@newsgroups.borland.com> <404fe0d3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ae22238877755cbc
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-11 16:40:29 PST
From: "Safari" <Safari@alloymail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <404fc418@newsgroups.borland.com> <404fe0d3$1@newsgroups.borland.com>
Subject: Re: Close a Program!?
Date: Fri, 12 Mar 2004 03:40:15 +0430
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 194.225.63.129
Message-ID: <4051013a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1079050554 194.225.63.129 (11 Mar 2004 16:15:54 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail