QASetWindowsJournalHook in c#

Joined
Feb 19, 2009
Messages
3
Reaction score
0
Hi All,

I am trying to make QASetWindowsJournalHook() work in c#, my code is done but it has problem.

I checked this thread before:
https://www.pcreview.co.uk/forums/thread-3378726-2.php

Now, I can receive the message type ( mouse move, click ...etc ) and also the x and y cursor, however, as long as I do something as below, the wince will hang down.

1. Run my c# about QASetWindowsJournalHook, working fine.
2. Click [Start]
3. Still working, message received well.
4. Click [Today] or [Setup] or [IE] ... whatever the next program is .... the while system will hang down....

I don't know why, I checked another win32 version it is working fine but can't figure out why c# version can't work as well.

p.s I ever try to return all message I received but result is the same.
ex:

public static int MouseHookProc(int nCode, IntPtr wParam, IntPtr lParam)
{
return CallNextHookEx(hHook, nCode, wParam, lParam);
}


Thanks!
Michael.
 
Joined
Feb 19, 2009
Messages
3
Reaction score
0
Is anyone could help ?

I will be appreciated!

Michael.

Flying Michael said:
Hi All,

I am trying to make QASetWindowsJournalHook() work in c#, my code is done but it has problem.

I checked this thread before:
https://www.pcreview.co.uk/forums/thread-3378726-2.php

Now, I can receive the message type ( mouse move, click ...etc ) and also the x and y cursor, however, as long as I do something as below, the wince will hang down.

1. Run my c# about QASetWindowsJournalHook, working fine.
2. Click [Start]
3. Still working, message received well.
4. Click [Today] or [Setup] or [IE] ... whatever the next program is .... the while system will hang down....

I don't know why, I checked another win32 version it is working fine but can't figure out why c# version can't work as well.

p.s I ever try to return all message I received but result is the same.
ex:

public static int MouseHookProc(int nCode, IntPtr wParam, IntPtr lParam)
{
return CallNextHookEx(hHook, nCode, wParam, lParam);
}


Thanks!
Michael.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top