How to tell if the OS is Windows XP or higher?

后端 未结 3 1275
情话喂你
情话喂你 2020-12-13 19:17

I am trying to play with the Environment.OSVersion.Version object and can\'t really tell what version would indicate that the OS is Windows XP or higher (e.g. I

3条回答
  •  粉色の甜心
    2020-12-13 20:00

    You shouldn't check the version number. Instead, you should check for the functionality you need. If it is a specific API you're after for example, LoadLibrary and GetProcAddress it - that way, you're not dependent on the version number.

提交回复
热议问题