Article View: borland.public.cppbuilder.nativeapi
Article #14066Re: CBT hooks and exe name
From: Martin C
Date: Mon, 25 Aug 2003 15:36
Date: Mon, 25 Aug 2003 15:36
25 lines
1709 bytes
1709 bytes
Thanks Gray, that is all what I was looking for... "Gary Setter" <setterg@worldnet.att.net> wrote in message news:3f4a0a44@newsgroups.borland.com... > > "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:
<3f4a2d01@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f4a0317@newsgroups.borland.com> <3f4a0a44@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 08:40:09 PST From: "Martin C" <martinc@aol.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f4a0317@newsgroups.borland.com> <3f4a0a44@newsgroups.borland.com> Subject: Re: CBT hooks and exe name Date: Mon, 25 Aug 2003 07:36:31 -0800 Lines: 27 Organization: V Safe 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: 62.135.27.140 Message-ID: <3f4a2d01@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1061825793 62.135.27.140 (25 Aug 2003 08:36:33 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail