Mail Archives: djgpp/2000/01/04/09:25:21
Eli Zaretskii writes:
> Call the library function _get_dos_version with a non-zero argument.
> If it returns version 5.50 (0532 in hex), you are on NT.
Allegro also checks for the environment variable "OS" containing
the string "Windows_NT" (in addition to what you describe, and
decides it is running under NT if either check succeeds). I don't
remember exactly why the environment method was added (originally
it only used the DOS version number), but presumably there was
some situation where the version wasn't being reported correctly...
Shawn Hargreaves.
- Raw text -