LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I programmatically detect a 64-bit operating system?

I have an application that calls an external .exe.  I need to call a different .exe depending on whether Windows is a 32-bit or 64-bit version.  Is there a way to detect whether the operating system is 32-bit or 64-bit programmatically from LabWindows?

0 Kudos
Message 1 of 3
(3,013 Views)

Hello Michelle,

 

This post will answer your questions: http://forums.ni.com/t5/LabWindows-CVI/detect-32-64-bit-OS/td-p/1154491

 

Have a nice day,

Nelu F. || National Instruments

0 Kudos
Message 2 of 3
(3,001 Views)

According to this page, you can use getenv ("PROCESSOR_ARCHITECTURE"); and getenv ("PROCESSOR_ARCHITEW6432");



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 3
(2,994 Views)