Article View: borland.public.cppbuilder.nativeapi
Article #3983Re: Disable keyboard only
From: Remy Lebeau (TeamB)
Date: Mon, 10 Apr 2006 21:19
Date: Mon, 10 Apr 2006 21:19
13 lines
1317 bytes
1317 bytes
"Tom" <tom@net.com> wrote in message news:443ab295$1@newsgroups.borland.com... > I need to disable keyboard (including ctr+alt+del, ctrl+shift+esc,...), > but I need to leave the mouse enabled. Is there anything similar to > BlockInput(True), but for keyboard only. You will have to install a global keyboard hook via the SetWindowsHookEx() function in a DLL, and have your callback function discard all key strokes. Gambit
Technical Details
Message-ID:
<443acbd9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.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>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f3e4bc5a377be414 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <443ab295$1@newsgroups.borland.com> Subject: Re: Disable keyboard only Date: Mon, 10 Apr 2006 14:19:22 -0700 Lines: 15 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <443acbd9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1144703961 68.69.17.41 (10 Apr 2006 14:19:21 -0700) Path: arc1-ca.pugleaf.net!g2news1.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