🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: API Access ToolBarWindow32 object

#5368
From: Remy Lebeau (TeamB)
Date: Wed, 07 Sep 2005 17:42
17 lines
1748 bytes
"Eangelo" <eangelo@libero.it> wrote in message
news:431ef67b@newsgroups.borland.com...

>   e = SendMessage(TBWin32_Handle, TB_GETBUTTON, Idx, (LPARAM)&TB_Data);

You cannot pass a pointer across process boundaries.  The memory address of
the pointer in your process will not be a valid memory address in another
process.  The only way to make it work is to have your code execute in the
context of the other process.  To do that, you have to write a DLL and
"inject" it into the other process, such as by using a global hook via
SetWindowsHookEx().  In the case of IE specifically, you can alternatively
write a Browser Helper Object (BHO) instead, which has much more flexible
access to controlling and querying IE's data and GUI.


Gambit
Technical Details
Message-ID: <431f2658$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <431de643@newsgroups.borland.com> <431e07eb$1@newsgroups.borland.com> <431ef67b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,25927713f6122048
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <431de643@newsgroups.borland.com> <431e07eb$1@newsgroups.borland.com> <431ef67b@newsgroups.borland.com>
Subject: Re: API Access ToolBarWindow32 object
Date: Wed, 7 Sep 2005 10:42:07 -0700
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <431f2658$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1126114904 68.69.17.41 (7 Sep 2005 10:41:44 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail