Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to detect Vista 32 or 64 bit with OS() ?
Message
 
 
À
05/11/2007 12:01:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01266757
Message ID:
01266771
Vues:
13
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform