🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to find and close an external window?

#8958
From: Svennis
Date: Mon, 23 Aug 2004 08:26
18 lines
1336 bytes
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: <4129a9f9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4127cece$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
Date: Mon, 23 Aug 2004 10:26:15 +0200
From: Svennis <sven_olovl@nospam.hotmail.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.1) Gecko/20040707
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How to find and close an external window?
References: <4127cece$1@newsgroups.borland.com>
In-Reply-To: <4127cece$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 217.210.155.168
Message-ID: <4129a9f9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1093249529 217.210.155.168 (23 Aug 2004 01:25:29 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail