Function 24: Set Alternate Subroutine Call Mask and Address

Last reviewed: September 16, 1996
Article ID: Q35365
The information in this article applies to:
  • Microsoft Mouse Driver for MS-DOS, versions 6.x, 7.x, 8.x, and 9.0

SUMMARY

Function 24 sets the interrupt call mask and user subroutine address for mouse hardware interrupts. Subroutine calls using Function 24 allow the called routine to be reentrant; that is, the subroutine called can itself make interrupt calls.

Input                             Output

AX = 24                           AX = error status (-1 if error
                                       occurred)
CX = user interrupt call mask ES:DX = user subroutine address

Mask Bit                          Condition

0                                 Cursor position changes
1                                 Left button pressed
2                                 Left button released
3                                 Right button pressed
4                                 Right button released
5                                 SHIFT key pressed with button
6                                 CTRL key pressed with button
7                                 ALT key pressed with button
8-15                              Not used

Note: One of at least bits 5,6,7 must be set in order for this function to work properly.


KBCategory: kbhw
KBSubcategory:
Additional reference words: 7.00 7.04 7.05 8.00 8.10 1.00 8.20 9.00


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 16, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.