Article View: borland.public.cppbuilder.nativeapi
Article #14000Re: SetWindowsHookEx
From: Boguslaw Fries
Date: Tue, 02 Sep 2003 10:22
Date: Tue, 02 Sep 2003 10:22
23 lines
1572 bytes
1572 bytes
> You need to cast your function pointer being passed as the second parameter: > > KeyboardHandle = SetWindowsHookEx( WH_KEYBOARD_LL, > (HOOKPROC)KeyboardProc, NULL, 0 ); > Thank you! Now more complicated question. I want to use this mechanism to make the following task: I want to send keyboard input to TWO separate tasks ( one is active window another one is minimized application ). Both have to obtain identical stream of keys. Now I can send obtain this stream only in ACTIVE ( focused ) application Maybe anybody knows some tips? Best regards Boguslaw Fries
Technical Details
Message-ID:
<3f546f78$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f544e99$1@newsgroups.borland.com> <3f5450f8$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,765ef9c6fca8b990 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-02 03:32:36 PST From: "Boguslaw Fries" <B.Fries@luca-online.de> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f544e99$1@newsgroups.borland.com> <3f5450f8$1@newsgroups.borland.com> Subject: Re: SetWindowsHookEx Date: Tue, 2 Sep 2003 12:22:45 +0200 Lines: 25 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: 217.225.26.224 Message-ID: <3f546f78$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1062498168 217.225.26.224 (2 Sep 2003 03:22:48 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail