Re: Detecting DPMI

Ralf Quint <[email protected]>
Newsgroups gmane.os.freedos.devel,gmane.spam.detected
Message-ID <[email protected]>
> Hi,
> 
> I am trying to detect DPMI from a realmode program, by calling int31h, 
> ah=0400h, checking Carry.
> But for some reason, this test locks MS-DOS with and without CWSDPMI,   
> (not being nor HIMEM neither EMM386 present), and also locks WinNT DOS 
> boxes. So I suppose checking DPMI is not so simple.
> 
> What can I do to detect it?
> 
Bad idea to use a DPMI call itself in this case, better check with  INT
2Fh/AX=1687h (DPMI Installation check) for the existence of the DPMI interface
first before using a DPMI function itself. See RBIL for more details about the
call...

take care,

Ralf

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.