home *** CD-ROM | disk | FTP | other *** search
/ Mega CD-ROM 1 / megacd_rom_1.zip / megacd_rom_1 / DESQVIEW / DVGLU101.ZIP / TVJFREE.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  1KB  |  35 lines

  1. /*=======================================================*/
  2. /*  TVJFREE.C                                            */
  3. /*                                                       */
  4. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  5. /*  May be freely copied for noncommercial use, so long  */
  6. /*  as this copyright notice remains intact, and any     */
  7. /*  changes are marked in the comment blocks preceding   */
  8. /*  functions.                                           */
  9. /*=======================================================*/
  10.  
  11. #include "tvapi.h"
  12.  
  13. /*======================================================*/
  14. /*======================================================*/
  15.  
  16. static void far kill_task(void)
  17. {
  18.    _AX = 0x4CFF ;        /* return error level 255 to indicate that task */
  19.    geninterrupt(0x21) ;  /* was killed */
  20. }
  21.  
  22. /*======================================================*/
  23. /* TVapp_free  free an application and its window       */
  24. /*   Ralf Brown 4/20/88                                 */
  25. /*======================================================*/
  26.  
  27. void pascal TVapp_free(OBJECT app)
  28. {
  29.    TVinterrupt(app,kill_task) ;
  30.    TVpause() ;
  31.    TVtask_free(app) ;
  32. }
  33.  
  34. /* End of TVJFREE.C */
  35.