PRB: GetVersion API Returns 3.10 When in Windows 3.11Last reviewed: June 21, 1995Article ID: Q113998 |
The information in this article applies to:
- Microsoft Visual Basic programming system for Windows, version 3.0
SYMPTOMSThe GetVersion Windows API function returns version 3.10 when in Windows version 3.11.
CAUSEGetVersion 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.
WORKAROUNDTo 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.
STATUSThis behavior is by design to help developers who have developed applications that required and checked for Windows version 3.10.
MORE INFORMATION
Step-by-Step Example
|
Additional reference words: 3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |