Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to detect Vista 32 or 64 bit with OS() ?
Message
 
 
To
05/11/2007 12:01:45
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01266757
Message ID:
01266771
Views:
12
This message has been marked as the solution to the initial question of the thread.
>How to detect Vista 32 or 64 bit with OS() ?


Denis,

First make sure that you're running under WInXP or later, or WIn2k3 server or later. The IsWow64Process on MSDN http://msdn2.microsoft.com/en-us/library/ms684139.aspx
DECLARE Long GetCurrentProcess IN WIN32API 
DECLARE Long IsWow64Process IN WIN32API Long hProcess, Long @ Wow64Process
lnIsWow64Process = 0
llIs64BitOS = .F.
IF IsWow64Process( GetCurrentProcess(), @lnIsWow64Process) <> 0
	llIs64BitOS = (lnIsWow64Process <> 0)
ENDIF	
? llIs64BitOS 
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform