delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/06/08:40:39

Date: Mon, 6 Aug 2001 14:42:56 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Andrew Cottrell <acottrel AT ihug DOT com DOT au>
cc: djgpp-workers AT delorie DOT com, sandmann AT clio DOT rice DOT edu
Subject: Re: Windows 2000 utime query
In-Reply-To: <00bf01c11e6a$f39e5090$0a02a8c0@acceleron>
Message-ID: <Pine.SUN.3.91.1010806144111.25573B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 6 Aug 2001, Andrew Cottrell wrote:

> > To wit: try invoking function 5701h via INT 21h in protected mode,
> > like this:
> >
> >      union REGS regs;
> >      regs.d.eax = 0x5701;
> >      regs.d.ebx = filedesc;
> >      regs.d.ecx = dostime;
> >      regs.d.edx = dosdate;
> >      _int86 (0x21, &regs, &regs);
> >
> > Note that I make a point of using the 32-bit registers, to avoid
> > leaving random garbage in the upper 16 bits.  Don't know if this
> > matters (it could even be wrong).
> Added this to the example program. Works if LFN=N, but does nothing if
> LFN=Y.

Thanks.  So Charles is right: real-mode is not the issue; LFN functions 
are.  I'm guessing that if a real-mode function calls 716Ch to open a 
file, then the resulting handle will also fail function 5701h.

- Raw text -


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