home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / dos_util / v12n19.zip / DRVASM.ZIP / DRVDATA.INC < prev    next >
Text File  |  1993-10-11  |  4KB  |  77 lines

  1. ;---------------------------------------------------------------    
  2. ;drvdata.inc data for DRVLOAD Utility                          |
  3. ;--------------------------------------------------------------|
  4. ;DRVLOAD Copyright (c) 1993                                    |
  5. ;                                                              |
  6. ;Rick Knoblaugh All rights reserved.                           |
  7. ;First Appeared in PC MAGAZINE, US Edition,                    |
  8. ;November 9, 1993                                              |
  9. ;--------------------------------------------------------------|
  10. ; 7/4/93                       Rick Knoblaugh                  |
  11. ;--------------------------------------------------------------|
  12.  
  13. dos_ver         dw      0               
  14. psp_seg         dw      ?
  15. driver_size     dw      0       ;hold size of driver
  16. cds_ptr         dd      ?       ;ptr to CDS
  17. dpb_ptr         dd      ?       ;ptr to DPB
  18. nul_dev_ptr     dd      ?       ;pointer to NUL device
  19. cds_size        dw      ?       ;sizes of these data areas
  20. dpb_size        dw      ?       ;based on DOS version
  21. dpb_para        dw      ?       ;DPB size in paragraphs
  22. prev_dpb_ptr    dd      ?       ;hold ptr to DPB
  23. drv_head_offset dw      ?       ;hold offset of device driver header        
  24. last_drive      db      ?       ;LASTDRIVE value
  25. max_avail_units db      ?       ;maximum drive letters left
  26. num_blk_devices db      ?       ;number of devices before install
  27.  
  28. dpb_drv_off     dw      ?       ;DOS ver specific offset for device driver
  29.                                 ;header entry in DPB 
  30.  
  31. dpb_link_off    dw      ?       ;DOS ver specific offset for link to next
  32.                                 ;DPB 
  33.  
  34. num_blk_off     dw      ?       ;DOS ver specific offset for number of
  35.                                 ;block devices in list of lists
  36.  
  37. mem_to_keep     dw      ?       ;# paragraphs of memory requested by driver
  38. over_args       over_lay <>
  39. init_cmd_blk    init_req <>
  40.  
  41. driver_file     db      (MAX_PATHLEN  + MAX_NAMELEN + 1) dup(0)
  42. driver_parms    db      (MAX_CMD_LINE + 2) dup(0)   ;max plus cr, lf
  43. driver_p_off    dw      offset ?
  44.  
  45.  
  46.  
  47.  
  48. dos30_ver_off   ver_spec_off <cds_ptr30,dpb_ptr30,nul_dev30,last_drv30>
  49. dos31_ver_off   ver_spec_off <cds_ptr31,dpb_ptr31,nul_dev31,last_drv31>
  50.  
  51.  
  52. nodriver_msg    db      "Device driver must be specified", CR, LF, BEEP, DOS_STR_TERM
  53. invalid_dos_msg db      "DRVLOAD requires DOS 3.0 or later", CR, LF, BEEP, DOS_STR_TERM
  54. no_win_msg      db      "DRVLOAD can't be used under Windows", CR, LF, BEEP, DOS_STR_TERM
  55. cant_open_msg   db      "Device driver not found", CR, LF, BEEP, DOS_STR_TERM
  56. too_big_msg     db      "Driver too large to load", CR, LF, BEEP, DOS_STR_TERM
  57. no_drives_msg   db      "No drive letter available for block driver.  Use the LASTDRIVE", CR, LF, \
  58.                         "statement in CONFIG.SYS (e.g. LASTDRIVE=G).", CR, LF, BEEP, DOS_STR_TERM
  59. corrupt_msg     db      "DOS internal data bad.", CR, LF, BEEP, DOS_STR_TERM
  60. warning_msg     db      "Fatal error finishing processing", CR, LF, "Reboot you computer immediately!", \
  61.                         CR, LF, DOS_STR_TERM
  62. err_load_msg    db      "Error loading driver", CR, LF, BEEP, DOS_STR_TERM
  63. init_fail_msg   db      "Driver initialization failed.", CR, LF, BEEP, DOS_STR_TERM
  64. bad_drv_msg     db      "Not a valid driver", CR, LF, BEEP, DOS_STR_TERM
  65. tsr_ok_msg      db      "Driver successfully installed.", CR, LF, DOS_STR_TERM
  66.  
  67. units_msg       db      "Not enough drive letters available to accommodate", CR, LF,  \
  68.                         "number of units supported by device driver.  Use the", CR, LF,  \
  69.                         "LASTDRIVE statement in CONFIG.SYS (e.g. LASTDRIVE=G).", CR, LF, BEEP, DOS_STR_TERM
  70.  
  71. sign_on_msg     db      CR, LF,"DRVLOAD Version 1.0  Copyright (c) 1993", CR, LF, \
  72.                         "Rick Knoblaugh  All rights reserved.", CR, LF, \
  73.                         "First Appeared in PC MAGAZINE, US Edition,", CR, LF, \                  
  74.                         "November 9, 1993", CR, LF, CR, LF, DOS_STR_TERM
  75.  
  76. ;------end of drvdata.inc
  77.