Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining the operating system
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00307402
Message ID:
00307890
Vues:
20
>>>Ed,
>>>
>>>Could GetVersionEx() be of any use here?
>>
>>Distinguishing between NT versions, no, since the code base is identical, and the extended OSVERSIONINFOEX structure is only implemented in Win2K. Take a look at the MSDN doc for the lpVersionInfo parameter to see what has to be done differently.
>
>I was thinking about the szCSDVersion member of OSVERSIONINFO structure. I hadn't looked at that member yet and thought you might have.

From the MSDN:

szCSDVersion
Windows NT/2000: Contains a null-terminated string, such as "Service Pack 3", that indicates the latest Service Pack installed on the system. If no Service Pack has been installed, the string is empty.
Windows 95/98: Contains a null-terminated string that provides arbitrary additional information about the operating system.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform