home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l440 / 2.ddi / CHAP8 / LSTOFLST.SCR < prev    next >
Encoding:
Text File  |  1990-09-26  |  2.0 KB  |  75 lines

  1. ; LSTOFLST.SCR
  2. ; INTRSPY script to examine DOS List Of Lists (INT 21h Function 52h)
  3.  
  4. structure list_20 fields            ; DOS 2.x
  5.     share_retry_count (word)
  6.     retry_delay (word)
  7.     curr_disk_buff (dword, ptr)
  8.     unread_con (word)
  9.     mcb (word)
  10.     dpb (dword, ptr)
  11.     file_tbl (dword, ptr)
  12.     clock (dword, ptr)
  13.     con (dword, ptr)
  14.     num_drives (byte, hex)
  15.     max_bytes (word)
  16.     first_disk_buff (dword, ptr)
  17.     nul (byte,dump,18)
  18.     
  19. structure list_30 fields            ; DOS 3.0
  20.     share_retry_count (word)
  21.     retry_delay (word)
  22.     curr_disk_buff (dword, ptr)
  23.     unread_con (word)
  24.     mcb (word)
  25.     dpb (dword, ptr)
  26.     file_tbl (dword, ptr)
  27.     clock (dword, ptr)
  28.     con (dword, ptr)
  29.     num_blk_dev (byte,hex)
  30.     max_bytes (word)
  31.     first_disk_buff (dword, ptr)
  32.     curr_dir (dword, ptr)
  33.     lastdrive (byte,hex)
  34.     string_area (dword, ptr)
  35.     size_string_area (word)
  36.     fcb_tbl (dword, ptr)
  37.     fcb_y (word)
  38.     nul (byte,dump,18)
  39.  
  40. structure list_31 fields            ; DOS 3.1+
  41.     share_retry_count (word)
  42.     retry_delay (word)
  43.     curr_disk_buff (dword, ptr)
  44.     unread_con (word)
  45.     mcb (word)
  46.     dpb (dword, ptr)
  47.     file_tbl (dword, ptr)
  48.     clock (dword, ptr)
  49.     con (dword, ptr)
  50.     max_bytes (word)
  51.     disk_buff (dword, ptr)
  52.     curr_dir (dword, ptr)
  53.     fcb (dword, ptr)
  54.     num_prot_fcb (word)
  55.     num_blk_dev (byte,hex)
  56.     lastdrive (byte,hex)
  57.     nul (byte,dump,18)
  58.     num_join (word)
  59.  
  60. intercept 21h
  61.     function 52h
  62.         on_exit
  63.             if (OS_MAJOR == 2)
  64.                 output (es:bx[-12]->list_20)
  65.             if (OS_MAJOR == 3) and (OS_MINOR == 0)
  66.                 output (es:bx[-12]->list_30)
  67.             if (OS_MAJOR == 3) and (OS_MINOR != 0)
  68.                 output (es:bx[-12]->list_31)
  69.                 output (es:bx[-12]->list_31.con->byte,dump,18)
  70.                 output (es:bx[-12]->list_31.clock->byte,dump,18)
  71.             if (OS_MAJOR == 4) or (OS_MAJOR == 5)
  72.                 output (es:bx[-12]->list_31)
  73.         on_exit
  74.             output ""
  75.