Accessing Mouse Sensitivity
-
I am trying to programmatically change the mouse horizontal/vertical sensitivity within MSVC++ 5.0. I am using inline assembly to invoke mouse interrupts (INT 33) to Get and then Set the sensitivities. (Microsoft took the Int86() function out of this version.) My problem is I lose my mouse buttons when forcing this interrupt and I have to reboot to get them back. I have disassembled some current mouse drivers and am confident(not really) that I am using the correct assembly code. I suspect that because I am invoking the INT 33 as a result of a button push on a dialog box that the message queue or interrupt handler is going recursive. But I am not sure. I can set the mouse acceleration factors just fine by using the SystemParametersInfo() function. Can anyone give me a hint or a different technique on setting the mouse sensitivities. Below is the inline asm listing. It is in the OnHScroll event for a slider bar. __asm{ push ebx push ecx push edx mov ax,0x001b INT 0x33 //MOUSE_INT mov [h], bx mov [v], cx mov [s], dx pop edx pop ecx pop ebx xor ax, ax } Thanks in advance. . . -- C. Ehmke ehmkec@uswest.net