getrunmd.pas 685 B

12345678910111213141516171819
  1. { example program for
  2. get_run_mode() + constants
  3. }
  4. { Simply write a message according to the current environment }
  5. uses go32;
  6. begin
  7. { depending on the detected environment we simply write another message
  8. }
  9. case (get_run_mode) of
  10. rm_unknown : Writeln('Unknown environment found');
  11. rm_raw : Writeln('You are currently running in raw mode (without HIMEM)');
  12. rm_xms : Writeln('You are currently using HIMEM.SYS only');
  13. rm_vcpi : Writeln('VCPI server detected. You''re using HIMEM and EMM386');
  14. rm_dpmi : Writeln('DPMI detected. You''re using a DPMI host like a windows DOS box or CWSDPMI');
  15. end;
  16. end.