Date: Mon, 6 Aug 2001 14:42:56 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Andrew Cottrell 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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, ®s, ®s); > > > > 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.