🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Looking for an example of mouse- or keyboard-hooks for BCB5

#15360
From: Michel Leunen
Date: Mon, 07 Jul 2003 15:20
22 lines
2161 bytes
M_R wrote:

> This could be handled by a stop-flag, but it seems that we therefore
> need shared memory inside the dll (i.e. somehow the OS creates more
> than one instance of the DLL, but this id (stop-flag) should exist
> only once, like a static var inside a function). The second thing is,
> we have to be able to access to this stop-flag from our
> application-program, i.e. the OnTimer-event.

Have a look at memory mapped files. Maybe it's what you need.
Joe C. Hecht posted an excellent article about hook and memory mapped 
files and hooks a long time ago. You can find it here:

http://tinyurl.com/g7ty

Michel
-- 
----------------------------------------
Michel Leunen
mailto:michel@leunen.com
http://www.leunen.com/cbuilder/
----------------------------------------
Technical Details
Message-ID: <3f098fb1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <0oidgvgc9issuibu3369ebkd7u3h6hfh9d@4ax.com> <3f06da13@newsgroups.borland.com> <3n4igvok5ctvibr5jlefp461k524q83cqk@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,c8028aaaabe6faee
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-07 08:40:39 PST
Date: Mon, 07 Jul 2003 17:20:11 +0200
From: Michel Leunen <mleu@skynet.be>
Organization: http://www.leunen.com/cbuilder/
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Looking for an example of mouse- or keyboard-hooks for BCB5
References: <0oidgvgc9issuibu3369ebkd7u3h6hfh9d@4ax.com> <3f06da13@newsgroups.borland.com> <3n4igvok5ctvibr5jlefp461k524q83cqk@4ax.com>
In-Reply-To: <3n4igvok5ctvibr5jlefp461k524q83cqk@4ax.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 217.136.235.195
Message-ID: <3f098fb1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1057591217 217.136.235.195 (7 Jul 2003 08:20:17 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail