Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use OS() method to determine if OS is 64-bit?
Message
 
 
To
13/11/2009 16:23:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01434532
Message ID:
01434696
Views:
63
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform