Date: Sun, 9 Apr 2000 08:33:54 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Wojciech Galazka cc: djgpp AT delorie DOT com Subject: Re: fstat works incorrectly under Windows NT In-Reply-To: <8cnhoc$8au$1@sunsite.icm.edu.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, 8 Apr 2000, Wojciech Galazka wrote: > The > newest version of LFN I'm working on completely bypasses int 21h AX=6Ch > call and creates/opens files using Win32 CreateFile() call. It turns out > that DOS file handles returned by the LFN driver under some circumstances > are not recognized by int 21h, AX=4400h used by get_dev_info() call. which > returns 0 instead. Is bypassing the DOS calls a good idea? How do you get a handle from CreateFile that can be used in various DOS calls, such as 214400? The handle you return must be a valid DOS handle, otherwise lots of things will subtly break. > I'm working on this right now and wonder if the SFT layout under Windows NT > is anywhere documented .... What SFT do you have in mind? If that's the SFT for the DOS box, I'm not even sure NTVDM creates it.