Article View: borland.public.cppbuilder.nativeapi
Article #5373Re: API Access ToolBarWindow32 object
From: Eangelo
Date: Thu, 08 Sep 2005 14:08
Date: Thu, 08 Sep 2005 14:08
26 lines
1921 bytes
1921 bytes
Thank you Mister Gambit! Henry "Remy Lebeau (TeamB)" <no.spam@no.spam.com> ha scritto nel messaggio news:431f2658$1@newsgroups.borland.com... > > "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:
<432045a4@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<431de643@newsgroups.borland.com> <431e07eb$1@newsgroups.borland.com> <431ef67b@newsgroups.borland.com> <431f2658$1@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: "Eangelo" <eangelo@libero.it> Newsgroups: borland.public.cppbuilder.nativeapi References: <431de643@newsgroups.borland.com> <431e07eb$1@newsgroups.borland.com> <431ef67b@newsgroups.borland.com> <431f2658$1@newsgroups.borland.com> Subject: Re: API Access ToolBarWindow32 object Date: Thu, 8 Sep 2005 16:08:33 +0200 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 151.24.77.109 Message-ID: <432045a4@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1126188452 151.24.77.109 (8 Sep 2005 07:07:32 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail