home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 20.ddi / SOURCE / STARTUP / WIN / WFILE.AS_ / WFILE.AS
Encoding:
Text File  |  1993-02-08  |  1.6 KB  |  93 lines

  1.     page    ,132
  2.     title     wfile - windows stream i/o tables
  3. ;***
  4. ;wfile.asm - windows stream i/o tables
  5. ;
  6. ;    Copyright (c) 1990-1992, Microsoft Corporation.  All rights reserved.
  7. ;
  8. ;Purpose:
  9. ;    Windows stream I/O data tables.
  10. ;
  11. ;    The _iob[] and _iob2[] tables are each in their own segments
  12. ;    so that additions can appended on easily and predictably (e.g.,
  13. ;    windows).  Also, note that _lastiob is also defined in its own
  14. ;    segment so it always points to the last _iob[] entry regardless
  15. ;    of what is added to the table.
  16. ;
  17. ;    The data defined in this file is inserted in the _iob/_iob2 tables
  18. ;    and, thus, those tables MUST be in the EXE.
  19. ;
  20. ;*******************************************************************************
  21.  
  22. ?DF    =    1        ; define segments
  23.  
  24. include version.inc
  25. .xlist
  26. include cmacros.inc
  27. include defsegs.inc
  28. include stdio.inc
  29. .list
  30.  
  31. ;
  32. ; Segment declarations
  33.  
  34. CrtDefSegs  <code,data>
  35. CrtDefSegs  <iobsegs>
  36.  
  37. dataOFFSET equ    offset DGROUP:
  38.  
  39. ;
  40. ; This file is for QWIN only!
  41. ;
  42.  
  43. ifndef _WINDOWS
  44.      .err
  45.      %out *** ERROR: For use with _WINDOWS only!
  46. endif
  47.  
  48. ifndef _QWIN
  49.      .err
  50.      %out *** ERROR: For use with _QWIN only!
  51. endif
  52.  
  53. ;
  54. ; Number of files
  55. ;
  56.  
  57.     _WFILE_  equ 20
  58.  
  59. ;
  60. ; Make sure _iob[]/_iob2[] tables are pulled into the EXE.
  61. ;
  62.  
  63. public    __wiobused
  64.     __wiobused = 1
  65.  
  66. ;
  67. ; _iob[] table additions for Windows
  68. ;
  69.  
  70. sBegin    iobxseg
  71.  
  72.     ;    ptr,    cnt,    base,    flag,    file
  73.  
  74.     _iobuf    _WFILE_ dup (<?>)
  75.  
  76. sEnd
  77.  
  78.  
  79. ;
  80. ; _iob2[] table additions for Windows
  81. ;
  82.  
  83. sBegin    iob2xseg
  84.  
  85.     ;    flag2, charbuf, bufsiz, tmpnum, padding
  86.  
  87.     _iobuf2 _WFILE_ dup (<?>)
  88.  
  89. sEnd
  90.  
  91.  
  92.     end
  93.