Get The Windows Vista Version and Edition
Version Compatibility: Visual Basic 6, Visual Basic 5
Get the Windows Vista version. The test itself is only valid on Windows Vista and a test is first done on the Major Version to confirm it is running on Windows Vista. The return is ("You are running Windows Vista") Home Basic, Home Premium, Business, Enterprise or Ultimate.
Instructions: Copy the declarations and code below and paste directly into your VB project.