🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: HWND from HPROCESS

#1253
From: Darko Miletic
Date: Mon, 24 Sep 2007 12:17
15 lines
1415 bytes
Ray Carpenter wrote:
> Colleagues
> 
> For a process, is there a way of obtaining the main window handle HWND (as
> needed by SendMessage()) from the process handle HPROCESS (as provided by
> ShellExecuteEx())?
> 

Take a look at EnumProcesses API or here for example:

http://www.codeproject.com/threads/enumprocess.asp

or here:

http://delphi.about.com/od/windowsshellapi/l/aa080304a.htm
Technical Details
Message-ID: <46f7aad4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46f6e9ca@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,da404016b88d04f2
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 24 Sep 2007 09:17:21 -0300
From: Darko Miletic <kiklop@fibertel.com.ar>
Reply-To: Darko Miletic <kiklop@fibertel.com.ar>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: HWND from HPROCESS
References: <46f6e9ca@newsgroups.borland.com>
In-Reply-To: <46f6e9ca@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Antivirus: avast! (VPS 000776-0, 24/09/2007), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 200.49.157.163
Message-ID: <46f7aad4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1190636244 200.49.157.163 (24 Sep 2007 05:17:24 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail