Article View: borland.public.cppbuilder.nativeapi
Article #13005Control pointer from window handle
From: nicolasr
Date: Tue, 04 Nov 2003 02:29
Date: Tue, 04 Nov 2003 02:29
19 lines
1495 bytes
1495 bytes
Hi, I have hooked another application using a DLL. My application then sends user defined messages to the target application which get caught by the DLL which is loaded in the target applications address space. I communicate the arguments that belong to a specific message via shared memory. F.e.: My application sends a message to the hook DLL to return the value of a specific cell in a TDBGrid in the target application. The argument passed via shared memory is the handle of the TDBGrid. Question: How can the hook DLL get a pointer to the TDBGrid instance given the window handle? thanks for any idea, Nick
Technical Details
Message-ID:
<3fa70ef0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,eb9c48fffbb335b9,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-03 18:39:21 PST From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Control pointer from window handle Date: Tue, 4 Nov 2003 03:29:01 +0100 Lines: 21 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: 80.133.162.134 Message-ID: <3fa70ef0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1067912944 80.133.162.134 (3 Nov 2003 18:29:04 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail