Article View: borland.public.cppbuilder.nativeapi
Article #8960Re: How to find and close an external window?
From: Mentor
Date: Mon, 23 Aug 2004 11:50
Date: Mon, 23 Aug 2004 11:50
27 lines
1420 bytes
1420 bytes
Hi Svennis,
Haha :) I'm not trying to hack, just want to close pop-ups.I
hope i can do it.Thank your for your great help.
Mentor
Svennis <sven_olovl@nospam.hotmail.com> wrote:
>Hi Mentor!
>
>This will close Media player if it's open:
>
>8<--------------------
>HWND RadioHandle;
>
> RadioHandle = FindWindow("WMPlayerApp", "Windows Media Player");
> if(RadioHandle) PostMessage(RadioHandle,WM_CLOSE,0,0);
>8<--------------------
>
>Good luck hacker :)
>
>
>--
>Greeting from Sweden:
>/Svennis
>http://w1.213.telia.com/~u21316909/
Technical Details
Message-ID:
<4129d9f8$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4127cece$1@newsgroups.borland.com> <4129a9f9$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,877bf636df2801ef X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mentor" <mentor@nospam.com> Sender: "Mentor" <mentor@nospam.com> Reply-To: "Mentor" <mentor@nospam.com> Subject: Re: How to find and close an external window? Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 81.215.242.168 References: <4127cece$1@newsgroups.borland.com> <4129a9f9$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <4129d9f8$1@newsgroups.borland.com> Date: 23 Aug 2004 04:50:16 -0700 X-Trace: newsgroups.borland.com 1093261816 207.105.83.66 (23 Aug 2004 04:50:16 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail