Mail Archives: djgpp/1999/10/12/13:07:46
> is there a way to find out which DPMI server is actually serving a
> running DJGPP program? I think of a code fragment like
>
> i=_dpmi_whtsoever(); //or i=go32_whatsoever();
> switch( i){
> case A: CWSDPMI...
> case B: Win9x...
> case C: YA_DPMI
> default: DONT_KNOW....
> }
> or any other solution would be fine. thanks.
> --
> Gruss Waldemar Schultz.
You would need to write one. Since DPMI is supposed to be a "standard", you
have to dig a bit to tell the differences.
Things I can think of which would give hints:
Which DPMI calls are supported (Get page attributes is a good one to test)
What DPMI version is reported
The current IOPL, and the GDT information
Ideally you should check for features instead of a specific DPMI provider.
The only real use I know of looking for a specific DPMI is to bypass it's
protection and go to ring 0 or collect special information not normally
available (like the page tables, and thus physical memory info).
- Raw text -