by Nick Campbeln (7 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (8 Votes)
Determine the operating system your code is currently running under via the GetVersionEx() API. This module contains a number of useful functions to streamline the OS determination: isWin95(), isWin98(), isWinME(), isWinNT4(), isWin2k(), isWinXP(), isNT(), is9x() which all return true/false and Win32Ver() which returns an eNum integer that refers to the Win32 version currently running. The code is well commented and has been thoroughly tested (though your mileage may vary). Thanks and enjoy!
Download Determine the Win32 Operating System Version via API (Updated) (2 KB)