Link to home
Start Free TrialLog in
Avatar of Krazz
Krazz

asked on

64-bit or 32-bit os version

This should be an easy one, I hope! ;)

I'm creating an application in VB.NET and need to figure out if the operating system I'm running my app on is 64-bit or 32-bit. Does anyone know how to programatically figure this out?

I thought "System.Environment.OSVersion.Platform.ToString" would work but on my Vista 64-bit this returns "Win32NT". :(
SOLUTION
Avatar of lorelogic
lorelogic

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Krazz
Krazz

ASKER

Well, hmmmm. Are you sure? On my ssystem it returns AMD64 and I'm running Intel Core 2 Duo.

I'm also very sceptical due to the fact that it is called PROCESSOR_ARCHITECTURE which really has nothing to do with the operating system.

If I am wrong in my assuptions I apologize.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Krazz

ASKER

Thank you. Due to the fact that I have way too much in my head right now I thought two different users answered my question and I split the points up. Only after I realized you were the one posting both answers.

Either way, thank you very much for your help. This did solve my problem. :)