Mail Archives: djgpp/1997/08/14/10:18:02
Salvador Eduardo Tropea (SET) <salvador AT inti DOT edu DOT ar> píše v článku
<m0wyWcb-000S1kC AT inti DOT edu DOT ar>...
> Eli wrote:
> > > Does anybody know how to detect if the current OS is NT?
> >
> > This has come up before. If memory serves, NT is the only platform
> > whose DOS box identifies itself as DOS version 5.50 when you call
> > function 3306h of interrupt 21h. So just callig the DJGPP library
> > function `_get_dos_version' with a non-zero argument should be enough.
>
Windows 3.x and 95 sets enviroment variable "windir" (lower case) this is
way to detect Windows.
Tomas
- Raw text -