Windows hooks on WM 5.0 for Smartphone

I am aware that SetWindowsHookEx is not meant to be used for smartphones on WM 5.0, though I notice the function is available in coredll.dll in both Smartphones and PocketPCs. I also notice that limited usage can be achieved on PocketPCs (yet, it's all undocumented), while I had no success while playing with it on a smartphone. What do we do in that case

I want my application to be able to receive press events (incl. the events coming from 0-9 keys) while homescreen is in foreground, and to be able to execute a code before any other application (for instance a dialer) handles the events.
What do we do for it when SetWindowsHookEx() is not available Btw, is SetWindowsHookEx() now considered to be a *privileged API*, or it is not available under any conditions on smartphones with WM 5.0



Answer this question

Windows hooks on WM 5.0 for Smartphone

  • DennisWCP

    OK, thanks and good luck! Either way, I hope the links I provided above were informative.
  • masom

    No solution from me, sorry, but I just *had* to add my 2¢ worth. I too have been looking for a solution to this problem for some time now, with no success :-(

    It is simply *essential* for system-level applications to be able to trap keystrokes, and there is *really* no reason why a signed application shouldn't be allowed to do this. The "secure computing" drive at Microsoft is all very well, but this is just going too far!

    People have posted proposed solutions here , here , here (same as previous, but on PPCDN), and here , but none of these seems to work reliably, if at all, on Smartphone.

    Please post a reply here, MannyNS, if you get this working to let everyone else know how!

  • Malmer

    Sure I will, though work to date shows no good approach to do this.
  • Windows hooks on WM 5.0 for Smartphone