From: Robert Burdick on
Would you be able to email me the entire solution / project that you got to
work? I must be doing somethinig wrong then. For example, does the hook
procedure code need to be in a DLL, etc.? If I could get the complete
application you are testing, I'd appreciate it.

rburdick at sbcglobal dot net.

Thanks, Robert


"Scott Seligman" wrote:

> =?Utf-8?B?Um9iZXJ0IEJ1cmRpY2s=?= <RobertBurdick(a)discussions.microsoft.com> wrote:
> >
> >Thanks for the code. But just like the code I wrote, this sets the hook, but
> >the hook callback never gets called. I'm trying to run this on a Windows
> >Mobile 6 device. Perhaps the undocumented journal hook support is different
> >on WinMob6.
>
> The one device I tested on was a WM6 device.
>
> As it is, it is undocumented, so it's probably fragile, and IIRC, it
> doesn't play well with some things like Transcriber.
>
> --
> --------- Scott Seligman <scott at <firstname> and michelle dot net> ---------
> They who would give up an essential liberty for temporary security,
> deserve neither liberty or security.
> -- Ben Franklin
>
From: Michael Salamone on
It does work as described.

And your callback is getting called - put a messagebox in there and you
should see it.

The VS debugger can't debug it, but you could debug it in PB. The VS
debugger can't debug it because it's debugging *your* process, but the
callback is made in the context of some other process (IIRC it's gwes). So
it can't break and you won't see any output from OutputDebugString.

--
Michael Salamone, eMVP
Entrek Software, Inc.
www.entrek.com


"Robert Burdick" <RobertBurdick(a)discussions.microsoft.com> wrote in message
news:98964646-30BD-4336-8572-C91C84D3E5F5(a)microsoft.com...
> Would you be able to email me the entire solution / project that you got
> to
> work? I must be doing somethinig wrong then. For example, does the hook
> procedure code need to be in a DLL, etc.? If I could get the complete
> application you are testing, I'd appreciate it.
>
> rburdick at sbcglobal dot net.
>
> Thanks, Robert
>
>
> "Scott Seligman" wrote:
>
>> =?Utf-8?B?Um9iZXJ0IEJ1cmRpY2s=?=
>> <RobertBurdick(a)discussions.microsoft.com> wrote:
>> >
>> >Thanks for the code. But just like the code I wrote, this sets the
>> >hook, but
>> >the hook callback never gets called. I'm trying to run this on a
>> >Windows
>> >Mobile 6 device. Perhaps the undocumented journal hook support is
>> >different
>> >on WinMob6.
>>
>> The one device I tested on was a WM6 device.
>>
>> As it is, it is undocumented, so it's probably fragile, and IIRC, it
>> doesn't play well with some things like Transcriber.
>>
>> --
>> --------- Scott Seligman <scott at <firstname> and michelle dot
>> net> ---------
>> They who would give up an essential liberty for temporary security,
>> deserve neither liberty or security.
>> -- Ben Franklin
>>

From: slaks on
The original question is still unanswered: which types of hooks do we
have in windows mobile besides mentioned here in the post?
Specifically, Are there WH_MOUSE hook or WH_CALLWNDPROC for example?
WH_JOURNALRECORD is not useful for me because i need hooking on global
level and Journaling works in the context of the calling thread
Thanks.
Slava.
From: Michael Salamone on
Sorry - as mentioned by Scott Seligman's post:

You might have been using QASetWindowsJournalHook and
QAUnhookWindowsJournalHook. But these functions aren't perfect, but
I
suppose they might work for some uses.

--
Michael Salamone, eMVP
Entrek Software, Inc.
www.entrek.com


"slaks" <slaks2005(a)gmail.com> wrote in message
news:b099ab8e-2978-43a1-811e-9e942c896ab6(a)l42g2000hsc.googlegroups.com...
> The original question is still unanswered: which types of hooks do we
> have in windows mobile besides mentioned here in the post?
> Specifically, Are there WH_MOUSE hook or WH_CALLWNDPROC for example?
> WH_JOURNALRECORD is not useful for me because i need hooking on global
> level and Journaling works in the context of the calling thread
> Thanks.
> Slava.

From: Chris Tacke, eMVP on
There are no other hooks implemented (and the ones that are there are still
considered unsupported).


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com


"slaks" <slaks2005(a)gmail.com> wrote in message
news:b099ab8e-2978-43a1-811e-9e942c896ab6(a)l42g2000hsc.googlegroups.com...
> The original question is still unanswered: which types of hooks do we
> have in windows mobile besides mentioned here in the post?
> Specifically, Are there WH_MOUSE hook or WH_CALLWNDPROC for example?
> WH_JOURNALRECORD is not useful for me because i need hooking on global
> level and Journaling works in the context of the calling thread
> Thanks.
> Slava.