🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: CBT hooks and exe name

#14064
From: Gary Setter
Date: Mon, 25 Aug 2003 13:07
17 lines
1520 bytes
"Martin C" <martinc@aol.com> wrote in message
news:3f4a0317@newsgroups.borland.com...
> I've CBT hook application that help me get notified whenever an new window
> is to be created using HCBT_CREATEWND, but I need to know how I can get
the
> exe name of the newly created window from its handle?
<snip>

Whould this work?

GetModuleFileName(((HMODULE)GetWindowLong(hwnd, GWL_HINSTANCE)),
buff,sizeof(buff));

Hope that helps,
Gary
http:/home.att.net/~setterg beta testers are needed
Technical Details
Message-ID: <3f4a0a44@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f4a0317@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ee2ed6328ff2f934
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-25 06:10:06 PST
From: "Gary Setter" <setterg@worldnet.att.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f4a0317@newsgroups.borland.com>
Subject: Re: CBT hooks and exe name
Date: Mon, 25 Aug 2003 08:07:59 -0500
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 12.84.32.169
Message-ID: <3f4a0a44@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1061816900 12.84.32.169 (25 Aug 2003 06:08:20 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail