Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!csource!david From: david@csource.OZ.AU (david nugent) Newsgroups: comp.sys.ibm.pc Subject: Re: Retrieving the value of FILES=??? Keywords: Global File Handle Table Message-ID: <534@csource.OZ.AU> Date: 18 Jun 90 05:22:59 GMT References: <605@digigw.digital.co.jp> <4057@jato.Jpl.Nasa.Gov> <1990Jun15.133128.17259@druid.uucp> Organization: Unique Computing Pty Ltd, Melb, Aust. Lines: 21 In <1990Jun15.133128.17259@druid.uucp> darcy@druid.uucp (D'Arcy J.M. Cain) writes: >Use int 67h to set up this value - this makes sure value is known. >It then sets up a hook to int 67h to check for special value in BX (say >-1) and returns current value if it is that special value. Otherwise >it calls the original int 67h and keeps track of the new value. Then >your programs can call int 67h with -1 to get the current value. Just a slight correction. That's not INT 67H; it's INT 21H function 67H. And -1 in BX is actually a valid value for this call. It will actually work provided there's enough memory available. >No wonder they call it Messy-DOS. :-) Yup. ;-) -- * Unique Computing Pty Ltd, Melbourne, Australia. * david@csource.oz.au 3:632/348@fidonet 28:4100/1@signet