Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determining Windows OS version 1

Status
Not open for further replies.

Stretchwickster

Programmer
Apr 30, 2001
1,746
0
0
GB
I've just put a new FAQ up on determining the Windows OS version. It would be nice to have feedback as to whether it correctly recognises Windows 98, ME and .NET server as these are the only platforms I haven't yet tried it on. Check it out: faq102-3232 Clive [infinity]
 
Windows 98 is correctly detected.
 
Thanks PascalKlaus! Just ME and .NET Server to check! Clive [infinity]
 
hey clive
it was a very nice (and working) tip.

elad
 
Clive,

You wrote:
Code:
        if Win32MajorVersion = 5 then
          case Win32MinorVersion of
            0: PlatformId := '2000';
            1: PlatformId := 'XP';
            2: PlatformId := 'Server 2003';
          end
        else
          PlatformId := 'Future Windows version (unknown)';
But with current pace of MS to release 'new' versions of OS's i'd add:
Code:
        if Win32MajorVersion = 5 then
          case Win32MinorVersion of
            0: PlatformId := '2000';
            1: PlatformId := 'XP';
            2: PlatformId := 'Server 2003';
          else
            PlatformId := 'Future Windows version (unknown)';
          end
        else
          PlatformId := 'Future Windows version (unknown)';

Thnx, ;-)
TonHu
 
TonHu,

Your suggested change has now been made. Thank you for your input. :)

Clive

Clive [infinity]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top