by Riaan Aspeling (14 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (10 Votes)
This code illistrates how to use GetVersionEx in all OS's from Windows 95 and up. This class can detect all current OS's including Windows 95/98/ME/2000/XP and .NET (Professional / Home / Server / Enterprise / Domain Controller/ DataCenter/ Web/ Advanced) etc. It will also detect service pack's and suites installed on the machine. Addition by Ryan9999 now checks for Tablet PC 2005.
Inputs
Nothing
Code Returns
Class.OS_Name, Class.OS_Version, Class.OS_Build, Class.OS_Additional, Class.OS_ServicePack, Class.OS_Suite
Side Effects
You get less info on a machine less than Windows NT 4 SP6
Download FULL OS Version (4 KB)