🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Urgent FindWindow() with minimized window!!

#14288
From: Schandler
Date: Wed, 20 Aug 2003 09:30
39 lines
2484 bytes
I guess impleminting shared memory would be very usefull for my situation
which is very simller to Martin's one

but I'm not expierenced with memory mapped file, so if there is an example
or something that demonestrates the usage of  CreateFileMapping() and
MapViewOfFile(), it would be nice if u tell me where can I find it

thanks


"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3f42a13b$1@newsgroups.borland.com...
>
> "Martin C" <martinc@aol.com> wrote in message
> news:3f428826@newsgroups.borland.com...
> > I get ONLY the text entered through my application windows
> > and I can't capture any text entered through any other running
> > application
>
> That happens when you are not installing a system-wide hook correctly.
>
> Your DLL must set asside a block of shared-memory using
CreateFileMapping()
> and MapViewOfFile() and then store your HHOOK and HWND pointers in that
> memory instead of local to the DLL.  You are currently not doing that.  As
> such, for every instance of your DLL running, each instance it going to
have
> its own local copies of the pointers instead of sharing the same ones.
>
>
> Gambit
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/03
>
>
Technical Details
Message-ID: <3f433f98@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-05!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-out.visi.com!petbe.visi.com!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f41defb@newsgroups.borland.com> <3f425676$1@newsgroups.borland.com> <3f428826@newsgroups.borland.com> <3f42a13b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2982d6ee34563d56
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-20 02:36:45 PST
From: "Schandler" <theslider@programmer.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f41defb@newsgroups.borland.com> <3f425676$1@newsgroups.borland.com> <3f428826@newsgroups.borland.com> <3f42a13b$1@newsgroups.borland.com>
Subject: Re: Urgent FindWindow() with minimized window!!
Date: Wed, 20 Aug 2003 12:30:49 +0300
Lines: 41
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 62.68.241.109
Message-ID: <3f433f98@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1061371800 62.68.241.109 (20 Aug 2003 02:30:00 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-out.visi.com!petbe.visi.com!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail