From: RichK on 9 Apr 2010 10:51 A call to IsWow64Process(GetCurrentProcess(),&bIsWow64); should return success and set bIsWow64 to a non-zero value when it is called from a 32-bit process that is running on an x64 edition of Windows. "Dee Earley" <dee.earley(a)icode.co.uk> wrote in message news:4bbf21b3$0$344$7b0f0fd3(a)reader.news.newnet.co.uk... > On 08/04/2010 11:09, cg wrote: >> Hello, >> >> I developp a win32 application and i want this application runs under >> Windows Server 2008 x64 / x32 - Vista x64 / x32 - Seven x64 / x32, and i >> need to make some modification for my application to be x64 perfectly >> compliant. > > If your app is a 32bit app then it should work exactly as it did before. > >> My problem is : how to know if my application runs under an Os 64bits or >> 32bits. >> >> I try the GetSystemInfo with the wProcessorArchitecture entry which >> curiously return 0. >> >> Curiously GetVersionEx can't be used. > > I think it lies to your app if it's 32-bit. (It doesn't say in MSDN so I > can't say this definitively.) > If you compile a 64bit version you will get the correct answer. > > -- > Dee Earley (dee.earley(a)icode.co.uk) > i-Catcher Development Team > > iCode Systems > > (Replies direct to my email address will be ignored. > Please reply to the group.) |