Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use OS() method to determine if OS is 64-bit?
Message
 
 
À
13/11/2009 16:23:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01434532
Message ID:
01434696
Vues:
62
>>Nothing in the article suggests using OS() function to determine 64 or 32 bit version.
>>
>>>I found this article: http://berezniker.com/content/pages/visual-foxpro/how-detect-64-bit-os
>>>
>>>It says you can "indirectly" determine if the OS is 64-bit by using the OS() method, but it does not says specifically how to do it. I looked at the help file about that method, but I do not see what parametrs to use.
>>>
>
>
>" The IsWow64Process function is only included in Windows OS that have 64-bit versions. We can check for it presence indirectly using VFP OS() function or ..."
>

Hi Matt,

I think I figured out what Sergey meant in his comment - if OS() >='6' then the OS would have the function, that checks for is it 64 or 32, otherwise this function is not present. You still need to use that Windows API, but you would not need to add extra checks.

BTW, Sergey updated his code and it now clearly shows what he meant by OS() check.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform