www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/09/02:36:06

Date: Sun, 9 Apr 2000 08:33:54 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Wojciech Galazka <wojciech DOT galazka AT polkomtel DOT com DOT pl>
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: <Pine.SUN.3.91.1000409083336.7469K-100000@is>
MIME-Version: 1.0
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

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019