Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Windows 64bit > x86 Proc WH_MOUSE Mouse Data Incorrect After First To CallNextHook

Reply
Thread Tools

x86 Proc WH_MOUSE Mouse Data Incorrect After First To CallNextHook

 
 
Ryan H. Kawicki
Guest
Posts: n/a
 
      05-05-2010
We have a 32 bit process that uses several thread only WH_MOUSE callbacks.
We are in the process of testing the application under 64 bit versions of
Windows. The issue we are seeing has to do with the mouse data value not
being correct after the first call to CallNextHookEx.

Let me start from the beginning.
There are three thread only WH_MOUSE callbacks installed by the application.
When the first callback is notified of mouse activity, I check the lParam
value in memory and notice that either 0x0078 (120) or 0xFF88 (-120) is at
the end of the structure defined for WH_MOUSE callbacks. No modification is
made to the structure of data, so CallNextHookEx is called, which in turn
calls the next installed hook. The lParam is different but the data is the
same, except for the last four bytes of data. It does not contain the wheel
delta value. Same situation happens again when passing this value on through
CallNextHookEx.

I stepped through our application on a 32 bit version of Windows and noticed
that the lParam is changing there as well, so I expect this behavior to
correct, but I expect that the problem lies in what seems to be a copying of
data between calls to CallNextHookEx.

I'm not quite sure where the disconnect is at. So the first time
CallNextHookEx is called in our application, the value is correct, but
subsequent calls are incorrect. This doesn't seem to be the designed
behavior for 32 bit application on 64 bit versions of Windows. Is there
anything in the works to correct this issue? Is there something that we are
doing wrong in our application? Thanks for any help provided.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
x64 vs x86.. surprising results in performance (x86 better)? markm75 Windows 64bit 7 01-09-2008 06:41 PM
Why is there an x86 emu if a processor is x86-64? =?Utf-8?B?RWxsaW90IEh1ZGdpbnM=?= Windows 64bit 4 07-23-2006 11:52 PM
x86 Mac Laptop and x86 iMac now available Daniel NZ Computing 11 01-17-2006 12:11 PM
Convert VB.NET to TSQL PROC & Reference a Proc from another Proc David Lozzi ASP .Net 3 06-01-2005 06:35 PM
What is the diff btwn 'sho proc' and 'sho proc cpu' William J King Cisco 1 12-18-2003 11:50 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57