home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c070 / 4.ddi / TOOLS.4 / TCTSRC1.EXE / MOHARD.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-31  |  1021 b   |  42 lines

  1. /**
  2. *
  3. * Name        mohard - Set mouse hardware text-mode cursor
  4. *
  5. * Synopsis    ercode = mohard(high,low);
  6. *
  7. *        int ercode      Error return code:
  8. *                    MO_OK if successful;
  9. *                    MO_ABSENT if mouse not found.
  10. *        int high,low      High and low scan line values.
  11. *
  12. * Description    This function links the mouse's text mode cursor to the
  13. *        display adapter's blinking hardware cursor (but not to
  14. *        the BIOS's recorded cursor location).  It also turns the
  15. *        software cursor effects off.
  16. *
  17. *        Use MOSOFT to make the text-mode cursor be generated
  18. *        from software.
  19. *
  20. * Returns    ercode          Error return code:
  21. *                    MO_OK if successful;
  22. *                    MO_ABSENT if mouse driver not installed.
  23. *        b_mouse       Number of mouse buttons (0 if no driver).
  24. *
  25. * Version    6.00 (C)Copyright Blaise Computing Inc.  1989
  26. *
  27. **/
  28.  
  29. #include <bmouse.h>
  30.  
  31. int mohard(high,low)
  32. int high,low;
  33. {
  34.     DOSREG regs;
  35.  
  36.     regs.ax = 10;
  37.     regs.bx =  1;
  38.     regs.cx = high;
  39.     regs.dx = low;
  40.     return mogate(®s,®s);
  41. }
  42.