🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: About Windows keyboard Hook

#13264
From: Remy Lebeau (TeamB)
Date: Thu, 23 Oct 2003 00:47
22 lines
1707 bytes
"MCh" <NoMoreSpams@Please.gr> wrote in message
news:3f972310@newsgroups.borland.com...

> I created a DLL with a hook function for keyboard. In this way I can catch
> every key is pressed System wide.The problem is that, when the Window Key
is
> pressed , I  catch the key stroke, but I cannot avoid the appearance of
the
> Start Menu. How to absorb that key stroke so the Start Menu doesn't
appear.

According to the documentation for KeyboardProc():

    "To prevent Windows from passing the message to the rest of the hook
chain or to the target window procedure, the return value must be a nonzero
value. To allow Windows to pass the message to the target window procedure,
bypassing the remaining procedures in the chain, the return value must be
zero."


Gambit
Technical Details
Message-ID: <3f97247c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f972310@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,37b410dd788b01a2
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-22 18:09:09 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f972310@newsgroups.borland.com>
Subject: Re: About Windows keyboard Hook
Date: Wed, 22 Oct 2003 17:47:18 -0700
Lines: 24
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.75
Message-ID: <3f97247c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066869884 67.22.137.75 (22 Oct 2003 17:44:44 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail