Board index » delphi » Detecting OS/Windows
Markus Humm
![]() Delphi Developer |
Wed, 10 Mar 2004 14:46:50 GMT
|
Markus Humm
![]() Delphi Developer |
Wed, 10 Mar 2004 14:46:50 GMT
Detecting OS/Windows
Hello!
I'm looking for a reliable way to detect the following OS: - MS DOS 7.x I'm writing some DOS app. There I want to know, whether I run under pure Thanks in advance. Markus |
Peter B. Steig
![]() Delphi Developer |
Thu, 11 Mar 2004 01:50:38 GMT
Re:Detecting OS/WindowsOn Sat, 22 Sep 2001 08:46:50 +0200, Markus Humm sez: Quote>I'm writing some DOS app. There I want to know, whether I run under pure Windows lies - it says version 7.10 for both 95 and 98, and 5.0 for NT. There aren't any consistent environment variables to check, either. I'm sure one of the OS gurus will have a more elegant solution, but Of course, that won't tell you if they restarted in DOS-only mode Peter B. Steiger |
Ralf Quin
![]() Delphi Developer |
Sat, 13 Mar 2004 05:09:36 GMT
Re:Detecting OS/WindowsOn Sat, 22 Sep 2001 17:50:38 GMT, see....@for.email.address (Peter B. QuoteSteiger) wrote: what is to be expected, the version of the underlying or emulated (NT) DOS Version. This is 7.0 for Win95 and Win95A (FAT16 supprt only) and 7.1 for all FAT32 enabled version of Win95B, Win95C, Win98 and Win98SE. For all Windows NT Versions and W2K, it returns 5.50, which makes it distiguishable from a "real" DOS 5.0x Quote>either. only for Windows <=3.1x, as for Windows 95 and newer, you can disable the the detection through this call and i have not found a reliable method to cirumvent this either.... Ralf |
Marco van de Voo
![]() Delphi Developer |
Sat, 13 Mar 2004 05:17:28 GMT
Re:Detecting OS/WindowsQuoteIn article <jo7vqtk83gvdk7khbfgb1gh6d3c170e...@4ax.com>, Ralf Quint wrote: locked. This is only theory though. I don't know if you can mute the win32 critical handler from dos. And even then you'd have to face non standard locations (or try to peek in |
Charles D
![]() Delphi Developer |
Sat, 13 Mar 2004 05:40:44 GMT
Re:Detecting OS/WindowsQuoteRalf Quint <ralf_quint@hot_mail.com> wrote: INT 2Fh .AX=1700h. The "Prevent MS-DOS-based programs from detecting Windows" option has no effect on this call. -- |
Rudolf Polze
![]() Delphi Developer |
Sat, 13 Mar 2004 05:52:38 GMT
Re:Detecting OS/WindowsMarco van de Voort <mar...@toad.stack.nl> wrote: Quote> In article <jo7vqtk83gvdk7khbfgb1gh6d3c170e...@4ax.com>, Ralf Quint wrote: {$IFOPT I+} -- to pronounce. |
Ralf Quin
![]() Delphi Developer |
Sat, 13 Mar 2004 14:28:12 GMT
Re:Detecting OS/WindowsOn Mon, 24 Sep 2001 21:40:44 GMT, ras...@highfiber.com (Charles Dye) wrote: Quote>Ralf Quint <ralf_quint@hot_mail.com> wrote: either, i have tried proabably all of the more or less obvious things. It seems that the whole INT 2F interface is practically outdated on the newer Windows versions, as M$ might think it's not necessary to provide such way of DOS support anymore. The best option that i came across so far, but needs some more Ralf |
Markus Hum
![]() Delphi Developer |
Sat, 13 Mar 2004 21:29:09 GMT
Re:Detecting OS/WindowsMany thanks to all!!!! Yesterday I found some C source who seems to be able to reliable detect Okay, XP detection isn't in it yet, but Win2k Greetings Markus |
Marco van de Voo
![]() Delphi Developer |
Sat, 13 Mar 2004 21:39:20 GMT
Re:Detecting OS/WindowsQuoteIn article <slrn9qvap6.dtd.adsgoh...@www42.durchnull.de>, Rudolf Polzer wrote: it is being molested, while the iocheck mask only ignoring return codes from the dos subsystem. (afaik {$I-} don't even help against the critical handler from dos in many cases) |
Jim Wils
![]() Delphi Developer |
Mon, 15 Mar 2004 01:14:47 GMT
Re:Detecting OS/WindowsOn Tue, 25 Sep 2001 15:29:09 +0200, Markus Humm Quote<markus.h...@freenet.de> wrote: Regards, |