Microsoft KB Archive/46462

= Writing Interrupts (ISRs) That Call Mouse Functions =

Article ID: 46462

Article Last Modified on 9/23/2003

-

APPLIES TO


 * Microsoft Mouse Driver 9.1 Standard Edition
 * Microsoft Mouse Driver 7.04 Standard Edition
 * Microsoft Mouse Driver 8.2 Standard Edition
 * Microsoft Mouse Driver 9.0 Standard Edition

-



This article was previously published under Q46462



SUMMARY
The mouse driver protects itself from reentrancy from other mouse function calls but not from interrupt service routines (ISRs) with higher priority.

It is recommended that you do not write an ISR with a higher priority than the mouse hardware interrupt (for example, for the timer interrupt) that calls mouse functions. The result may be undesirable and erroneous. If your ISR is performing a mouse function call, your interrupt may occur during the execution of the mouse function call and start running your ISR again, that is, the original mouse function call may never be finished.

The appropriate routine is to use the mouse function 12/20 to set the mouse user-defined subroutine.

Additional query words: 7.00 7.04 7.05 8.00 8.10 1.00 8.20 9.00

Keywords: KB46462

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.