Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Graphic Vision File Manager 2.63 (Announce)

posted by jaybur Homepage E-mail, UK, 19.12.2007, 03:46

> But this behavior of HDPMI is NOT regarded as a (criminal/critical) bug at all.

By whom? I would think that unless HDPMI (or any other DOS extender) emulates Windows completely, then HDPMI clients have a need to know whether they are actually running under Windows (version whatever) or not?

> More likely it's a bug in your windows detection code.

I don't think so because PQMagic 4 also thinks it's running under Windows when HDPMI32.EXE is running. (It just crashes if only HDPMI16 is running). Anyway, here is my Windows detection code:

    ClearRealRegs(Regs);            { Are we running in a Windows DOS box?  }
    Regs.AX := $160A;               { DOS Multiplex - Get Windows Version   }
    if Intr($2F, Regs) = 0 then
      WinVersion := Regs.BX;        { Win95 = $0395                         }

Notes:

1. The return value of the Intr function is the value of the AX register as set by the callee.
2. Intr calls real-mode interrupt 2Fh via 31h/0300h, not protected mode int2F.
3. I'm sure you can easily work the rest out.

 

Complete thread:

Back to the forum
Board view  Mix view
22632 Postings in 2109 Threads, 402 registered users, 391 users online (0 registered, 391 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum