Function 20 - Swap Interrupt Subroutines

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

SUMMARY

The following is a description of Function 20: - Swap Interrupt Subroutines (Mouse Version 6.0). Function 20 allows you to get the address and call mask for a Mouse Function 12 subroutine or to exchange the vector and mask.

   Inputs:

         AX = 20
         BX = segment of new subroutine
         CX = new call mask
         DX = offset of new subroutine

   Outputs:

         BX = segment of old subroutine
         CX = old call mask
         DX = offset of old subroutine

For more information on mouse function subroutines, refer to the entries on Function 12. A well-coded application returns the old subroutine address (vector) and mask via this function when it terminates. This function is also useful for swapping between a set of Function 12 subroutines within an application.


KBCategory: kbhw
KBSubcategory:
Additional reference words: 7.00 7.04 7.05 8.00 8.10 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.