🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to hook the keyboard?

#12746
From: Remy Lebeau (TeamB)
Date: Wed, 19 Nov 2003 22:07
21 lines
1795 bytes
"Feico Nater" <translation@taaleffect.nl> wrote in message
news:nbpnrvo5ro9fk625ge637jc9fa4jaggguf@4ax.com...

> No that's not what I want. Effectively I want a modifying device between
the keyboard and
> the computer.

Ok, then the hook procedure must be placed into a DLL, and the DLL's
HINSTANCE passed to SetWindowsHookEx().  Also, the hook procedure must be
exported from the DLL, and the DLL must put the HHOOK handle into shared
memory so that all instances of the DLL have access to it.

> Well, when I hook the keyboard, I cannot type any more,
> in any program.

That is not what I asked.  I meant *in your code*, how are you determining
which keys to disable?  You did not show that part of the code.


Gambit
Technical Details
Message-ID: <3fbbe8c6@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <qfqmrv4hmkqcp763t3kuvjuemu0f1ig0de@4ax.com> <3fbb9a35@newsgroups.borland.com> <3unnrv85ulg49hkp9ba36sjsd3gqpqn7u1@4ax.com> <3fbbe474$1@newsgroups.borland.com> <nbpnrvo5ro9fk625ge637jc9fa4jaggguf@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,f2f611428d49d6e5
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-19 14:10:12 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <qfqmrv4hmkqcp763t3kuvjuemu0f1ig0de@4ax.com> <3fbb9a35@newsgroups.borland.com> <3unnrv85ulg49hkp9ba36sjsd3gqpqn7u1@4ax.com> <3fbbe474$1@newsgroups.borland.com> <nbpnrvo5ro9fk625ge637jc9fa4jaggguf@4ax.com>
Subject: Re: How to hook the keyboard?
Date: Wed, 19 Nov 2003 14:07:34 -0800
Lines: 23
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: 67.22.137.149
Message-ID: <3fbbe8c6@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1069279430 67.22.137.149 (19 Nov 2003 14:03:50 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail