Mail Archives: djgpp-workers/2001/08/06/08:40:39
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.
- Raw text -