🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Hooking another application

#17280
From: nicolasr
Date: Thu, 27 Mar 2003 19:17
14 lines
1566 bytes
thank you very much, Remy.
I tried WH_GETMESSAGE together with PostMessage() as you suggested and this
works well now.

I think I will also need SendMessage(), though. So I tried a WH_CALLWNDPROC
hook and this doesn't work. The hook callback is called for other messages
(redraw etc.) but never for my SendMessage(). Which window proc is actually
hooked, the main form, the application window? When setting the hook I only
pass the thread ID of the server app. Then in my client I used FindWindow()
to find the main form. But SendMessage() to this window seems to bypass the
hook callback somehow. Any ideas?

thanks,
Nick
Technical Details
Message-ID: <3e834e27$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e824b00@newsgroups.borland.com> <3e824e7e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,c5183b6fe95bcc6
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-27 11:23:10 PST
From: "nicolasr" <nicolasrATSIGNgmx.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e824b00@newsgroups.borland.com> <3e824e7e$1@newsgroups.borland.com>
Subject: Re: Hooking another application
Date: Thu, 27 Mar 2003 20:17:01 +0100
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 80.133.161.229
Message-ID: <3e834e27$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048792615 80.133.161.229 (27 Mar 2003 11:16:55 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail