check OS and processor is 32 bit or 64 bit?

后端 未结 5 1900
谎友^
谎友^ 2021-01-19 10:09

I want vb6 code to check OS is 32 bit or 64 bit and also processor is 32 bit or 64 bit.So please help me to get these codes. In vb.net i can use Environment.Is64BitOperating

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-19 10:49

    You can try the DataWidth or AddressWidth properties of the Win32_Processor WMI class, On a 32-bit processor, the value is 32 and on a 64-bit processor it is 64.

提交回复
热议问题