home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / t / tst0831.zip / TSTID.C < prev   
Text File  |  1990-08-31  |  3KB  |  73 lines

  1. /********************************************************************
  2.         POP'TEST  (c) Copyright 1989 by MSI
  3.              Author - Ratko V. Tomic
  4. *********************************************************************/
  5.  
  6. #include "cr.h"
  7.  
  8. /** These disposable messages go thru dspf **/
  9.  
  10. char loaded_msg[]=" Program is already loaded. `e";
  11. char unloading[]=" Program was unloaded. `e";
  12. char not_loaded[]=" Cannot unload - it wasn't loaded. `e";
  13. char no_unl[]=" Cannot unload safely (other TSRs loaded after it). `e";
  14.  
  15. char hello_atr[]={0x1B,0x1e,0x1f,0x19};
  16. char hello_atr1[]={0x70,0x70,0x70,0x70};
  17.  
  18. char hello_msg[]="`2\
  19.  `\xB7`m\
  20. `\x05POP-Spawn  Ver 1.04   Copyright (C) 1990 by MSI `w\
  21. `\x05           ShareWARE ($10 to Register) `w\
  22. `3─`w\
  23.   `1F11`0 or`1 Alt-, `0: Run any program `w\
  24.   `1F12`0 or`1 Alt-. `0: Shell into COMMAND.COM `w\
  25. `3─`w\
  26.                  `2COMMAND LINE `w\
  27.  `w\
  28.    `1 /M`2xxx`0     Set spawn memory size to `2xxx`0 K. `w\
  29.    `1 /P`2name`0    Set default program `2name.ext`0 . `w\
  30.    `1 /G `0       Go: Run default prog. without prompts. `w\
  31.    `1 /Q `0       Quick: Same as /G, without wait on exit. `w\
  32.    `1 /C`2cmdln`0   Set default command line to `2cmdln`0. `w\
  33.    `1 /U `0       Unload TSR (if loaded last). `w\
  34. `3─`w\
  35. `0  Call Microsystems Software, Inc. at `2(508) 626-8511 `w\
  36. `0  or for more great TSRs call our BBS `2(508) 875-8009 `w\
  37. `0 `r";
  38.  
  39. char _tsr_name[]="POP & Go (C) 1989 by MSI";
  40.  
  41. #define EXE_K1 (0x57)            /* F11 */
  42. #define EXE_K2 (M_LA|0x33)        /* Alt-Comma */
  43. #define CMD_K1 (0x58)            /* F12 */
  44. #define CMD_K2 (M_LA|0x34)        /* Alt-Period */
  45. #define UNL_KEY (M_LC|M_LS|0x16)    /* Ctl-Shift-U */
  46.  
  47. word hk_list[]={CMD_K1,EXE_K1,CMD_K2,EXE_K2,UNL_KEY,0};
  48.  
  49. struct cfg_rec config_block = {    /* This record stays in only one module */
  50.     sizeof(config_block),    /* Configuration block size */
  51.     'P','&','G','o',    /* Program ID string */
  52.     104            /* Version 1.04 */
  53.     };
  54.  
  55. char img_file[]="MEM_IMG.$$$";    /* File to store memory image */
  56. char cmd_pref[]="COMSPEC=";    /* To search for COMMAND.COM */
  57. char dflt_shell[]="C:\COMMAND.COM";
  58.  
  59. /***************************************************************************
  60.    THIS FOLLOWS IMMEDIATELY AFTER THE LAST DISPOSABLE DATA ITEM 
  61. ****************************************************************************/
  62.  
  63. /****  1. Store all "install_" type function pointers into install_list ****/
  64.  
  65. fp install_list[]={install_hk};
  66.  
  67. /****  2. Put Marker for the end-of-init-data (must be = NZ) ****/
  68.  
  69. word init_data_end=1;
  70.  
  71. /************************************************************************/
  72.  
  73.