Path: utzoo!attcan!uunet!lll-winken!ames!dftsrv!mimsy!mojo!lbruck From: lbruck@eng.umd.edu (Lewis Bruck) Newsgroups: comp.os.os2 Subject: Re: Using >20 files in OS/2 Message-ID: <1989Nov21.023331.4438@eng.umd.edu> Date: 21 Nov 89 02:33:31 GMT References: <14570001@otter.hpl.hp.com> Sender: news@eng.umd.edu (The News System) Reply-To: lbruck@eng.umd.edu (Lewis Bruck) Organization: Merriversity of Uniland, College Purgatory Lines: 12 The way I was able to get around this problem was to dig through the microsoft startup code (ughh...) until I found a variable called _nfile. To increase the number of file handles, call DosSetMaxFH and assign a higher number to _nfile (remember to declare it as extern to keep the linker happy). It important to remember that simply calling DosSetMaxFH() does not give you all the requested file handles (i.e. if the rest of the system is using 100 filehandles, then you would only be able to use about 155 filehandles in the process). Compare the 255 file handle maximum in 1.1 to the 100,000 in Netware 386... Lewis Bruck not officially representing anyone...