Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OS(1)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: OS(1)
Divers
Thread ID:
00380189
Message ID:
00380342
Vues:
19
>>Yep, yep! Didn't even think about using it, Garrett. This is inspite of the
>>fact that I've used the function before to determine if GetDiskFreeSpaceEx()
>>is available.
>
>Speaking of picky ( :-) ), checking the OS version to find out if an API is installed is not the best way to do it. Use GetProcAddress instead.
>
>http://support.microsoft.com/support/kb/articles/q193/5/73.asp

Umm, would you believe that's the way the Platform SDK (at the time) said to do it? Here's the quote:

"The GetDiskFreeSpaceEx function is available on Windows 95 systems beginning with OEM Service Release 2 (OSR 2).

Use the GetVersionEx function to determine that a system is running OSR 2 or a later release of the Windows 95 operating system. The GetVersionEx function fills in the members of an OSVERSIONINFO data structure. If the dwPlatformId member of that structure is VER_PLATFORM_WIN32_WINDOWS, and the low word of the dwBuildNumber member is greater than 1000, the system is running OSR 2 or a later release."

Now, I'll admit that the current MSDN library shows another method, but I'm not sure that the current Platform SDK does.:-)
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform