10-10-2012 10:00 AM
Hi all,
How can I get the bitness of Windows the LV application is running on?
Using Conditional disabled structure, I can get the bitness of the application(whether it's built in LV 32 or 64), but not the windows bitness.
Thanks
Solved! Go to Solution.
10-10-2012 11:36 AM
system variable "PROCESSOR_ARCHITECTURE" ?
10-10-2012 12:03 PM
@LVCoder wrote:
Hi all,
How can I get the bitness of Windows the LV application is running on?
Using Conditional disabled structure, I can get the bitness of the application(whether it's built in LV 32 or 64), but not the windows bitness.
Thanks
When I lived in Texas about 15 years ago, people would respond to a question like this by saying "None of your bitness!"
Sorry. I resisted the urge to post this for at least an hour!!
10-10-2012 02:31 PM - edited 10-10-2012 02:31 PM
According to this link, you can read the following registry key:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\BuildLabEx
You'll get a long string presumably containing the required information. I don't know how to parse it.
10-10-2012 02:56 PM
Hi altenbach,
Thanks for your response.
I used "PROCESSO_ARCHITECTURE" to retrieve the OS bitness.
HKEY_LOCAL_MACHINE SYSTEM\ControlSet001\Control\Session Manager\Environment PROCESSO_ARCHITECTURE=AMD64
AMD64 is much easie to parse.
10-10-2012 03:01 PM
@LVCoder wrote:
Hi altenbach,
Thanks for your response.
I used "PROCESSO_ARCHITECTURE" to retrieve the OS bitness.
HKEY_LOCAL_MACHINE SYSTEM\ControlSet001\Control\Session Manager\Environment PROCESSO_ARCHITECTURE=AMD64
AMD64 is much easie to parse.
I think you might want to mark my answer as NOT accepted. It seems I tripped you up and this only reports the arch. of the processor, not the arch. of Windows itself?
10-10-2012 03:07 PM
You might want to do something like look for a unique folder like "C:\Program Files (x86)." (I think that's what it's called, I'm not using Win7 right now, and I'm not even sure it's the same with earlier versions of Windows (x64).