>>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