home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / DESQVIEW / TECH / DVA_TCPP.ZIP / DVPAUSE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-06  |  1.4 KB  |  43 lines

  1. /***************************************************************************\
  2. *
  3. *
  4. *   PROCEDURE         - DESQview Pause.
  5. *
  6. *   PURPOSE           - From DESQview API Manual, PAUSE direct CALL:
  7. *                       The PAUSE call gives up control to the dispatcher so
  8. *                       that other tasks can be run.  The calling task will
  9. *                       regain control when its normal turn occurs.
  10. *                       Applications should make this call within all busy-
  11. *                       wait loops,  that is, loops that are doing nothing
  12. *                       useful but looking for something to do.
  13. *
  14. *
  15. *   GENERAL ALGORITHM - Call the DESQview PAUSE direct CALL.
  16. *
  17. *   INPUT             - none.
  18. *
  19. *   OUTPUT            - none.
  20. *
  21. *   SYSTEM            - Borland's Turbo C++ v1.0 on an EPSON EQUITY III+
  22. *                       running MS-DOS v4.01 & DESQview v2.26.  Should operate
  23. *                       under any MS/PC-DOS 2.x or greater & DESQview 2.x or
  24. *                       greater.
  25. *
  26. *   HISTORY:
  27. *      90-07-28       - Initiated Mark Potter
  28. *
  29. \***************************************************************************/
  30.  
  31. #include <dos.h>
  32. #include "dvaware.h"
  33.  
  34. void dv_pause(
  35.    void
  36. ) {
  37.    _AX = 0x1000;                        // PAUSE DV API Call
  38.    geninterrupt( 0x15 );                // DV API CALL
  39. }
  40.  
  41. // END DVPAUSE.CPP
  42. 
  43.