Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <b>_dos_keep() install a tsr program</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _dos_keep()             Install a TSR program

 #include   <dos.h>

  void    _dos_keep(retcode, memsize);
  unsigned retcode; Exit status code
  unsigned memsize; Allocated resident memory (paragraphs)

    _dos_keep() uses MS-DOS function 31h to install a terminate-and-stay-
    resident (TSR) program in memory. It terminates the current program,
    but instead of releasing the program memory to MS-DOS it hides the
    memory and allows the program to stay resident. The size of memory
    actually reserved is defined by the programmer using 'memsize', and
    remaining memory is returned to the MS-DOS. 'Retcode' is a
    programmer-defined exit code that can be checked by other programs.

   Portability:     MS-DOS only, version 2.0 or higher


See Also: _dos_getvect() _dos_setvect()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson