Mail Archives: djgpp/2000/03/19/15:23:13
Eli Zaretskii wrote:
>
> On Sun, 19 Mar 2000, Michael Tippach wrote:
>
> > > > > One problem with NT that needs to be worked around is that NT ignores the
> > > > > hight 16 bits of the user procedure address that is installed as a
> > > > > real-mode callback (e.g., for handling mouse events).
> > > >
> > > > Does Win2K behave the same?
> > >
> > > No, it seems that this particular bug doesn't exist in W2K.
> >
> > So would you agree that the go32 stub could be modified to perform a
> > check?
>
> I'm not sure I follow. Are you suggesting that the stub loader be
> modified to install a real-mode callback?
Install- check -relase, yes. I may look ugly but it will work.
> If so, the only way to know if
> that works or not is to make the callback be called, and crash. Doesn't
> seem like a good way of identifying an OS...
It won't crash if you have a handler ready at both, CS:0x0000wxyz and,
say: CS:0x0001wxyz. This requires temporary allocation of some 64k of
DOS memory. But I don't think this would be a problem.
>
> Besides, the stub loader is heavily optimized for size (it's 2KB long),
> and the above test would bloat it quite a bit.
There's always a price to pay. OTOH, would it really matter if the stub
gets like 100-200 bytes bigger?
Regards,
Michael Tippach
- Raw text -