PRB: GetVersion API Returns 3.10 When in Windows 3.11 (113998)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 3.0
This article was previously published under Q113998 SYMPTOMS
The GetVersion Windows API function returns version 3.10 when in Windows
version 3.11.
CAUSE
GetVersion still returns 3.10 while inside Windows for Workgroups version
3.11 because there were so many applications that were checking for the
version number and requiring that the application be run under version
3.10. Therefore, Microsoft decided to have the GetVersion function
continue to return version 3.10 in Windows version 3.11.
WORKAROUND
To look for Windows version 3.11 from within Windows, use the
GetFileVersionInfo Windows API function instead of GetVersion. This article
shows by example how to call GetFileVersionInfo from Visual Basic.
STATUS
This behavior is by design to help developers who have developed
applications that required and checked for Windows version 3.10.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbprb KB113998 |
---|
|