LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

OS types and numerals.

Good day.

 

Function GetWinOSVersion (&temp_int, &temp_int2, NULL, NULL); - get 2 numerals, and his text adding = OS type. Now i know that types.

/Windows 7.
 if (temp_int=6 && temp_int2==1) winver=61;
 //Windows 7 x64.
 if (temp_int=6 && temp_int2==2) winver=62;
 //Windows XP.
 if (temp_int=5 && temp_int2==1) winver=51;
 //Windows XP x64.
 if (temp_int=5 && temp_int2==2) winver=52;
 //Windows Vista.
 if (temp_int==6 && temp_int2==0) winver=60;
 //Windows 2000
 if (temp_int==5 && temp_int2==0) winver=50;

What numerals i missed (how to be win98, ME, NT, mac os, linux Os)?

0 Kudos
Message 1 of 3
(3,499 Views)

Recent versions of CVI don't run on anything earlier than Windows 2000 SP3, certainly not on Mac OS, and I doubt this function works on CVI for Linux.

 

However, if you are usng an old version of CVI then:

 

Win95: Major=4, Minor=0

Win98: Major=4, Minor=10, Build=1998

Win98SE: Major=4, Minor=10, Build=2222

WinMe: Major=4, Minor=90 (unless your executable is called setup.exe or launch.exe, when it pretends to be Win98)

NT 3.51: Major=3, Minor=51

NT 4: Major=4, Minor=0, Build=1381

 

--
Martin
Certified CVI Developer
Message 2 of 3
(3,490 Views)