How to programmatically tell the difference between XP 64 bit and Server 2003 64 Bit

后端 未结 2 1675
醉话见心
醉话见心 2020-12-11 22:59

I have a program where I need to display a different link to a different download based on what version of windows a user is running.

Using this answer I am able to

2条回答
  •  一向
    一向 (楼主)
    2020-12-11 23:07

    Assuming you're programming in .Net:

    • http://msdn.microsoft.com/en-us/library/b3022k9x.aspx

    System.Environment properties include:

    • Is64BitOperatingSystem

    • Is64BitProcess

    • OSVersion

    • ProcessorCount

    • Etc etc

提交回复
热议问题