PRB: OS() Function May Not Return "NT" Under Windows 2000 (250512)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 6.0, when used with:
- Microsoft Visual Studio 6.0 SP3
This article was previously published under Q250512 SYMPTOMS
Code that tests the return value for the string "NT" of the OS() function in Microsoft Visual FoxPro 6.0 Build 8492 or later operates incorrectly under Microsoft Windows 2000.
CAUSE
Because Windows 2000 is not designated as "Windows NT," but is referred to as "built on NT Technology," the OS() function should no longer refer to it as "Windows NT 5.0."
RESOLUTION
There are two workarounds for this issue:
STATUS
This behavior is by design.
REFERENCESFor additional information about the GetVersionEx API call, click the article number below
to view the article in the Microsoft Knowledge Base:
188987 HOWTO: Determine the Operating System Build Number
For additional information about calling the GetProcAddress function, click the article number below
to view the article in the Microsoft Knowledge Base:
193573 HOWTO: Determine the Version of a DLL
Modification Type: | Major | Last Reviewed: | 10/15/2003 |
---|
Keywords: | kbBug kbprb kbXBase KB250512 kbAudDeveloper |
---|
|