Get The Windows Vista Version and Edition

Category:
System/API
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
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.

Declarations:

Code: