Article View: borland.public.cppbuilder.nativeapi
Article #3886Re: Disable keyboard only
From: Tom
Date: Tue, 11 Apr 2006 07:51
Date: Tue, 11 Apr 2006 07:51
47 lines
2302 bytes
2302 bytes
sorry, I'll read the documentation before I continue with this issue. Thanks on your help. "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:443b5cbb$2@newsgroups.borland.com... > > "Tom" <tom@net.com> wrote in message news:443b501d@newsgroups.borland.com... > > > My Form code: > > You should call SetWindowsHookEx() from inside the DLL's code, not the EXE's > code. Have the DLL export two extra functions that the EXE can call to > set/remove the hook. > > > MY Dll code: > > You did not show your export statements. Are you exporting the hook > function at all? > > > Is this SetWindowsHookEx() ok > > It does absolutely nothing to accomplish what you were originally asking > for. You are not doing anything with the keystrokes, and you are not > discarding them. > > > should I simply remove return 0 instead of > > CallNextHookEx(NULL, code, wParam, lParam) from dll? > > Did you read the documentation yet? > > "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." > > Please go to http://www.deja.com and do a search through the newsgroup > archives. Sample code for using global hooks has been posted many times > before. > > > Gambit > >
Technical Details
Message-ID:
<443b6003@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<443ab295$1@newsgroups.borland.com> <443acbd9$1@newsgroups.borland.com> <443b501d@newsgroups.borland.com> <443b5cbb$2@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f3e4bc5a377be414 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Tom" <tom@net.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <443ab295$1@newsgroups.borland.com> <443acbd9$1@newsgroups.borland.com> <443b501d@newsgroups.borland.com> <443b5cbb$2@newsgroups.borland.com> Subject: Re: Disable keyboard only Date: Tue, 11 Apr 2006 09:51:29 +0200 Lines: 49 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 NNTP-Posting-Host: 213.202.126.18 Message-ID: <443b6003@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1144741891 213.202.126.18 (11 Apr 2006 00:51:31 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail