LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the bitness of Windows?

Solved!
Go to solution

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

0 Kudos
Message 1 of 7
(3,533 Views)
Solution
Accepted by topic author LVCoder

system variable "PROCESSOR_ARCHITECTURE" ?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 2 of 7
(3,511 Views)

@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!"  Smiley LOL

 

Sorry. I resisted the urge to post this for at least an hour!!  Smiley Tongue

Jeffrey Zola
Message 3 of 7
(3,500 Views)

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.

 

Message 4 of 7
(3,479 Views)

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.Smiley Happy

0 Kudos
Message 5 of 7
(3,459 Views)

@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.Smiley Happy


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?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 7
(3,456 Views)

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).

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 7
(3,451 Views)