Welcome! Log In Create A New Profile

Advanced

WinDev 12: How to identify Windows 64-bit / 32-bit ?

Posted by Jimbo 
Jimbo
WinDev 12: How to identify Windows 64-bit / 32-bit ?
January 01, 2009 12:05PM
Hi,

the upcoming Windows 7 will require applications to find out whether they are going to be installed on a 64-bit or on a 32-bit system.

For myself, I want to offer the same application in 64/32-bit versions for download. How is it possible to stop the user from downloading a 64-bit version and installing it on a 32-bit Windows?

1 - How can I identify the 32/64 versions of Windows (XP, Vista, 7, 2008 ..) from a running WinDev-application ?

2 - How can the application know whether it was compiled for 32-bit or 64-bit?

Kind regards,
Guenter
Erik Schwarz
Re: WinDev 12: How to identify Windows 64-bit / 32-bit ?
January 01, 2009 01:57PM
Hi Guenter,

is exeinfo() what you are searching for ?

Greetings and a happy new year

Erik
Erik Schwarz
Re: WinDev 12: How to identify Windows 64-bit / 32-bit ?
January 01, 2009 02:04PM
Hi again,

for question 1:

does syswindowsversion(sysversioninfo) give different results?
I cannot test it because lack of a 64 Bit System.

Erik
Jimbo
Re: WinDev 12: How to identify Windows 64-bit / 32-bit ?
January 01, 2009 02:25PM
Quote
Erik Schwarz
Hi Guenter,

is exeinfo() what you are searching for ?

Greetings and a happy new year

Erik

Hi Erik,

yes, thank you! Indeed, ExeInfo() tells the mode of the exe file - 32/64 bits !

However, SysWindowsVersion() does not tell the difference between a 32-bit / 64-bit Windows. It just says: Vista, XP .. but as I've seen, there is a system integer data type and that is 4 bytes in length for Windows 32-bit and 8 bytes in length for all Windows 64-bit OS. I just have to find out the length of a system integer ..

Ok, that's solved, thank you!

All the Best to You and Your Familiy !
Happy New Year!

Guenter
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: