How to determine which 32-bit Windows version is being used (189249)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic for Applications 5.0
This article was previously published under Q189249 SUMMARY
An application may need to perform tasks differently depending on which
operating system is running on the computer. This article shows, by example, how to differentiate between Microsoft Windows 95, Microsoft Windows 98, Microsoft Window NT 3.51, Microsoft Windows NT 4.0, Microsoft Windows 2000, and Microsoft Windows XP.
The Win32 GetVersionEx function returns information that a program can use
to identify the operating system. Among those values are the major and
minor revision numbers and a platform identifier. With the introduction of
Windows 98, it now takes a more involved logical evaluation to determine
which version of Windows is in use. The listing below provides the data
needed to evaluate the OSVERSIONINFO structure populated by the GetVersionEx function:
|
PlatformID | 1 | 1 | 1 | 2 | 2 | 2 | Major Version | 4 | 4 | 4 | 4 | 5 | 5 | Minor Version | 0 | 10 | 90 | 0 | 0 | 1 |
REFERENCES
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
92936
How to get Windows 3.1 version number in VB with GetVersion
Modification Type: | Major | Last Reviewed: | 9/3/2004 |
---|
Keywords: | kbhowto KB189249 |
---|
|