Re: Keyboard Hooks SetWindowsHookExW by Paul
Paul
Wed Oct 29 11:25:44 CST 2003
You *can* use keyboard hooks, at least on Windows CE.NET devices (PPC2003).
You can try it on the earlier devices quickly and verify that it works
there, too. The standard desktop documentation is probably the best
reference. You'll be calling SetWindowsHookEx(), as you noted, and passing
WH_KEYBOARD_LL as the hook type. Your hook function would be declared like
this:
LRESULT CALLBACK KHook( int code, WPARAM wParam, LPARAM lParam )
and would use CallNextHookEx() to pass the message on, when it's done with
it.
You might also look at RegisterHotKey().
Paul T.
"Paul" <xpstrong@hotmail.com> wrote in message
news:bnodja$7s4$2@news8.svr.pol.co.uk...
> Hi,
>
> I've heard that u can unofficially use keyboard hooks on the pocket pc.
Has
> anyone sucessfully used this? I need to capture d-pad/joypad events in my
> application while it runs in the back ground and stop the foreground
> application receiving the event. This is done in "windows media player" in
> the mapping buttons options so i know it can be done. If u can't use
> keyboard hooks how can i do this in my application?
>
> Thanks,
> Paul
>
>