home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / pascal / 4951 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.7 KB

  1. Path: sparky!uunet!dtix!mimsy!afterlife!adm!news
  2. From: muellerm@aix520.informatik.uni-leipzig.de (Michael Mueller)
  3. Newsgroups: comp.lang.pascal
  4. Subject: RE: Help with TSR programs
  5. Message-ID: <32142@adm.brl.mil>
  6. Date: 21 Aug 92 13:16:20 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 26
  9.  
  10. Don Bontembs ask: 
  11.  
  12.  
  13. > Hello fellow pascal programmers.  I am attempting to write a TSR             
  14. > program using TP 6.0.  I understand how to use the KEEP command           
  15. > to install the TSR program but how can you tell if your TSR is               
  16. > currently running so as not to execute it twice?  Also, once your            
  17. > TSR is installed, how do you get it to unload itself from memory?
  18.  
  19. You can use the keep-command with keep(0), it makes your program resident 
  20. in memory, but you must change some interrupts early, for instance the 
  21. int 13h (disk) or the keyboard int.
  22. A TSR you can unload with a second call from DOS, you need a procedure,
  23. which looks if your program is in memory. You can do that with a personal string, then you look in all allocatet DOS-segments, if this string is in same
  24. position how in the actual program-segment. If you find one, this is your
  25. old TSR and you can end it.
  26.  
  27. *******************************************************************************
  28. *    Michael Mueller                                                          *
  29. *    University of Leipzig, Germany                                           *
  30. *                                                                             *
  31. *    muellerm@aix520.informatik.uni-leipzig.de                                *
  32. *******************************************************************************
  33.  
  34.  
  35. PS: Sorry for bad (or funny) english !  :-)
  36.