Category : C++ Source Code
Archive   : VCCRT2.ZIP
Filename : WFILE.ASM

 
Output of file : WFILE.ASM contained in archive : VCCRT2.ZIP
page ,132
title wfile - windows stream i/o tables
;***
;wfile.asm - windows stream i/o tables
;
; Copyright (c) 1990-1992, Microsoft Corporation. All rights reserved.
;
;Purpose:
; Windows stream I/O data tables.
;
; The _iob[] and _iob2[] tables are each in their own segments
; so that additions can appended on easily and predictably (e.g.,
; windows). Also, note that _lastiob is also defined in its own
; segment so it always points to the last _iob[] entry regardless
; of what is added to the table.
;
; The data defined in this file is inserted in the _iob/_iob2 tables
; and, thus, those tables MUST be in the EXE.
;
;*******************************************************************************

?DF = 1 ; define segments

include version.inc
.xlist
include cmacros.inc
include defsegs.inc
include stdio.inc
.list

;
; Segment declarations

CrtDefSegs
CrtDefSegs

dataOFFSET equ offset DGROUP:

;
; This file is for QWIN only!
;

ifndef _WINDOWS
.err
%out *** ERROR: For use with _WINDOWS only!
endif

ifndef _QWIN
.err
%out *** ERROR: For use with _QWIN only!
endif

;
; Number of files
;

_WFILE_ equ 20

;
; Make sure _iob[]/_iob2[] tables are pulled into the EXE.
;

public __wiobused
__wiobused = 1

;
; _iob[] table additions for Windows
;

sBegin iobxseg

; ptr, cnt, base, flag, file

_iobuf _WFILE_ dup ()

sEnd


;
; _iob2[] table additions for Windows
;

sBegin iob2xseg

; flag2, charbuf, bufsiz, tmpnum, padding

_iobuf2 _WFILE_ dup ()

sEnd


end


  3 Responses to “Category : C++ Source Code
Archive   : VCCRT2.ZIP
Filename : WFILE.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/