Article View: borland.public.cppbuilder.nativeapi
Article #2248Re: Still struggling with a DLL for keyboard hooking
From: Bob Gonder
Date: Thu, 15 Mar 2007 22:20
Date: Thu, 15 Mar 2007 22:20
10 lines
1332 bytes
1332 bytes
> // Send key information to the App window > ::SendMessage(pHookInfo->hAppWnd, >uiKeyHookMsg, 0, lParam); Shouldn't that be a PostMessage instead? I'm thinking 3 things: 1) We are already processing a message (possable reentrancy) 2) We really don't care about the outcome 3) It is slower (will block on ShowMessage)
Technical Details
Message-ID:
<m0hjv2tasuebhpb1pnijh503t0qatdbknv@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<45f9a429$1@newsgroups.borland.com> <45f9c0a3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2dee6d400474aadb X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Still struggling with a DLL for keyboard hooking Date: Thu, 15 Mar 2007 15:20:40 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <m0hjv2tasuebhpb1pnijh503t0qatdbknv@4ax.com> References: <45f9a429$1@newsgroups.borland.com> <45f9c0a3@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.145.18 X-Trace: newsgroups.borland.com 1173997235 67.77.145.18 (15 Mar 2007 15:20:35 -0800) Lines: 12 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail