home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / SHSUCD11.ZIP / UNDOC.INC < prev   
Encoding:
Text File  |  1994-03-01  |  3.7 KB  |  127 lines

  1. ;begin undoc.inc
  2. ;
  3. ; revised March 1, 1994
  4.  
  5. ;
  6. ;   various useful DOS structures
  7.  
  8. DOS_LOL        struct
  9.                fptr  ?
  10.      CurSFT    fptr  ?
  11.                fptr  ?
  12.                fptr  ?
  13.                word  ?
  14.                fptr  ?
  15.         CDS    fptr  ?
  16.                fptr  ?
  17.                word  ?
  18.                byte  ?
  19.    LastDrive   byte  ?
  20. DOS_LOL        ends
  21.  
  22. CDS            struct
  23.    CurrPath    byte  67 dup (?)
  24.    Flags       word  ?
  25.                fptr  ?
  26.                fptr  ?
  27.                word  ?
  28.    RootOff     word  ?
  29. CDS            ends
  30.  
  31. SFT         struct
  32.    RefCnt      word   ?           ; Reference count
  33.    Mode        word   ?           ; Open Mode
  34.    DirAttrib   byte   ?
  35.    Flags       word   ?
  36.    DCB         dword  ?           ; Device control block
  37.    Cluster     word   ?           ; Initial cluster
  38.    HHMMSS      word   ?           ; Hour, Min, Sec/2
  39.    YYMMDD      word   ?           ; Year, Month, Day
  40.    FilSiz      dword  ?           ; file size/EOF location
  41.    FilPos      dword  ?           ; Current file position
  42.    RelClstr    word   ?           ; clusters from beginning
  43.    CurClstr    word   ?           ; current cluster
  44.    LBN         word   ?           ; block number
  45.    DirIndex    byte   ?           ; directory index
  46.    Name        byte 11 dup (?)    ; file name
  47.    Unknown     byte  4 dup (?)
  48.    OwnerMach   word   ?           ; machine number of owner
  49.    OwnerPSP    word   ?           ; psp of owner task
  50.    Status      word   ?
  51. SFT         ends
  52.  
  53. ;; These are really documented.  They are here for convenience.
  54.  
  55. frame       struc
  56.    fr_OldBP        nptr   ?
  57.    fr_RetAddr      fptr   ?
  58.    fr_Flags        word   ?
  59.    fr_Parm1        word   ?
  60. frame       ends
  61.  
  62. DirEnt      struct
  63.    FName           byte    11 DUP (?)
  64.    Fattr           byte      ?
  65.    FTime           word      ?
  66.    FDate           word      ?
  67.    BlkNo           dword     ?
  68.    FSize           dword     ?
  69.    ParentBlk       dword     ?
  70.    Forw            nptr      ?
  71.    Back            nptr      ?
  72. DirEnt      ends
  73.  
  74. DrvEnt      struct
  75.    No             byte     ?
  76.    Letter         byte     ?
  77.    Unit           byte     ?
  78.    FlagsOff       byte     ?
  79.    Type           word     ?
  80.    LastAccess     word     ?
  81.    DevHdrp        fptr     ?
  82.    DriverName     byte     8 dup (?)
  83.    Strategyp      fptr     ?
  84.    Interruptp     fptr     ?
  85.    VolSize        dword    ?
  86.    BlkSize        word     ?
  87.    RootEnt        DirEnt      <>
  88.    BufBlkNo       dword    ?
  89.    Bufp           nptr     ?
  90.    CopyRightID    byte    13 dup (?)
  91.    AbstractID     byte    13 dup (?)
  92.    VLabel         byte    12 dup (?)
  93. DrvEnt      ends
  94.  
  95. rh    struc
  96.    Length            byte  ?              ; header size in bytes
  97.    SubUnit           byte  ?              ; MSCDEX fills in cd drive unit
  98.    Command           byte  ?              ; device command code
  99.    Status            word  ?              ; device command status
  100.    Reserved          byte  8 dup(?)
  101. rh    ends
  102.  
  103. rhIOCTL   struc
  104.                      byte size rh dup(?) ;rh common
  105.    MediaDesc         byte  ?
  106.    CBPtr             fptr  ?
  107.    BytesToTransfer   word  ?              ; Control Block length
  108.    StartSector       word  ?
  109.    VolIdPtr          fptr  ?
  110. rhIOCTL   ends
  111.  
  112. rhReadLong   struc
  113.                      byte size rh dup(?) ;rh common
  114.    AddrMode          byte  ?
  115.    Bufp              fptr  ?
  116.    Count             word  ?
  117.    StartBlk          dword ?
  118.    ReadMode          byte  ?
  119.    ISize             byte  ?
  120.    ISkip             byte  ?
  121. rhReadLong   ends
  122.  
  123. rhcmdIOCTL_In      equ 3
  124. rhcmdIOCTL_Out     equ 12
  125. rhcmdReadLong      equ 128
  126.  
  127. ; end undoc.inc