Board index » delphi » Windows 95/98 Version Information

Windows 95/98 Version Information

Hello All,

        I am trying to identify the windows version number from within
a TP7 app.   I am using assembly, and checking for the windows version
(2Fh 1600h) and if it reports the major version as 4, it's either Win95/98.
 This
is where the problem arises.  The best guess I can come up with is then to
check the dos version (21h 3306h), and if dos reports 7.0 it's Win95, but
if it reports 7.1 it's either Win95b (OSR2) or Win98.  I know if I could
somehow
get the windows build number, I could tell the difference, but I have
searched
Ralf Brown's init list to no avail.  And I have looked all over MS's site
and
found nothing as well.

Can anyone give some insite into this problem?  Ideas?  Suggestions?

 

Re:Windows 95/98 Version Information


Check the minor version number as well as the major. Windows 95 is 4.0,
Windows 98 is 4.1.

I haven't yet found out how to tell Win95 from Win95b. If the DOS version
has changed like you say then that would do it.
--
Tim Borman
tbor...@nospam.prophase.com
please reply to this newsgroup
-----------------------------------------------------

Quote
KattManDo wrote in message <01bdc98d$49dc7bc0$e015ecd0@seti-1>...
>Hello All,

> I am trying to identify the windows version number from within
>a TP7 app.   I am using assembly, and checking for the windows version
>(2Fh 1600h) and if it reports the major version as 4, it's either Win95/98.
> This
>is where the problem arises.  The best guess I can come up with is then to
>check the dos version (21h 3306h), and if dos reports 7.0 it's Win95, but
>if it reports 7.1 it's either Win95b (OSR2) or Win98.  I know if I could
>somehow
>get the windows build number, I could tell the difference, but I have
>searched
>Ralf Brown's init list to no avail.  And I have looked all over MS's site
>and
>found nothing as well.

>Can anyone give some insite into this problem?  Ideas?  Suggestions?

Other Threads