I thought that it would only tell if the the app is running 32 or 64 bit not the OS.
I thought you asked if the OS is either 32 or 64.
This will tell you info on the OS if that helps.
dim s1 as string = My.Computer.Info.OSFullName
dim s2 as string = My.Computer.Info.OSPlatform
dim s3 as string = My.Computer.Info.OSVersion
As far as i know the first post will tell you if the os is 32 or 64. I use the first post code to determine that. In certain situations I need some chunks of code to run differently on a 64 bit machine as opposed to a 32 bit machine. Thats how I do it.
If IntPtr.Size = 8 Then
theDevDetailData.cbsize = 8
theDevDetailData.cbsize = 5
And another thing, that code comes straight from my GarminDeviceLibrary. The application that runs it is built for Any Platform. If I hard code the cbsize to 5 and installed the app on Windows 7: It will not work. Vice Verca it would work on Windows XP.