Baron-von-Riedesel / HX

Home of the HX DOS Extender and its included DPMI-host HDPMI.
192 stars 14 forks source link

How HX DOS Extender can be detected? #25

Closed jmalak closed 2 years ago

jmalak commented 2 years ago

How I can detect if application is running with HX DOS Extender?

Baron-von-Riedesel commented 2 years ago

In hdpmi.txt, Int 31h, ax=401h is mentioned as the preferred method to detect hdpmi - and that's virtually also the method to detect hx-dos extender.

Since v3.20 of hdpmi, there's also an API - the entry point is received via int 2Fh, ax=168Ah ( protected-mode only ).

jmalak commented 2 years ago

Yes, it is detection of HDPMI. I suppose that HX DOS Extender can run with other DPMI servers or is it limited to use only HDPMI?

Baron-von-Riedesel commented 2 years ago

I suppose that HX DOS Extender can run with other DPMI servers or is it limited to use only HDPMI?

It needs a host with DOS API translation - hdpmi, dosemu, Windows DOS boxes...

For a Win32 program, there's the possibility to detect the HX Win32 emulation dll dkrnl32.dll: GetProcAddress( hKernel32, "GetDKrnl32Version" ). It's described in dkrnl32.txt.

jmalak commented 2 years ago

OK, Thanks.