[comp.sys.ibm.pc] File OPEN mode in DOS drivers

misha@bud.UUCP (Michael Umansky) (01/18/89)

Hello DOS experts!

In a discussion here, it came up that DOS drivers (loaded by config.sys)
do not know the OPEN mode when they are opened.  It would be nice to
know in the driver whether it was opened for read, write or append or
create mode.  The only reasonable way now seems to scan DOS's internal
file table to find the open mode.  We are talking both block and character
drivers under DOS 3.x.  Has the driver structure in DOS 4.x changed alot?
If anyone knows how to do this or has any sample code (C or asm) or has
better ideas I really would appreciate getting the info!
misha
-- 
NAME:	Michael Umansky (sun!aeras!foxy!misha)
WORK:	Arix Corp.;  821 Fox Lane;  San Jose, CA  95131
HOME:	4331 Lincoln Way; San Francisco, CA  94122
PHONE:	(408) 922-1751 (work); (415) 564-3921 (home)