平台编号 [英] Platform ID

查看:85
本文介绍了平台编号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我的操作系统是Windows XP,我想知道Windows 7和Vista的平台ID是什么.您可以在Windows XP上获取它

Hi Every body,

My OS is windows XP and i want to know what is the platform ID for windows 7 and Vista You can get it for windows XP

<pre lang="vb">MessageBox.Show(Environment.OSVersion.Platform)<br />
        MessageBox.Show(PlatformID.Win32NT)</pre><br />



我找到这个
[ ] ^ ]

但没有关于7或Vista的任何东西

在此先感谢

从答案中复制:

我的朋友们我已经失去了主意,你们当中没有人拥有Windows 7或Vista系统,我问的是平台而不是OS版本
任何人都可以提供帮助..如果您有OS 7或Vista..仅创建一个新项目,并在load事件中编写以下内容:
msg(my.computer.info.osplatform)然后将其键入..
之后,返回到加载事件并编写另一个
msg(platformID.您输入的内容"),答案就是拖车按摩中显示的内容
不要说我很懒,我想要简单的方法..只是我没有操作系统
我知道怎么办,但是我的操作系统是win XP,我看不到win 7或vista的平台
希望您能帮忙



i find this
[]http://support.microsoft.com/kb/304289/en-us[^]

but there is no thing about seven or vista

thanks in advance

Copied from answer:

My friends I have lost my mind no one of you have a Windows system 7 or Vista i am asking about platform not OS versions
any one can help .. if u have os 7 or vista ..only make a new project and in the load event write this:
msg(my.computer.info.osplatform) then type it out..
after that return to the load event and write another
msg(platformID."what you type out") then the answer is what show in the tow massages
don''t say i am lazy and i want the easy way.. just i do not have the os
i know how but my os is win XP i can not see the platform for win 7 or vista
i hope you help

推荐答案

您已经做对了.

Vista应该具有相同的PlatformID.为什么应该与众不同?查看System.Environment.OSVersion并从主要版本和次要版本中推断出您想要的内容.

Google提供Microsoft Windows的版本号列表-我不想为您做-必须很简单.这就是您所需要的.
You already do right thing.

Vista should have the same PlatformID. Why it should be different? Look at System.Environment.OSVersion and infer what you want from major and minor version.

Google for the list of version numbers for Microsoft Windows -- I don''t want to do it for you -- must be easy. This is all you need.




这是一个可供参考的快速表格...

Windows XP 5.1
Windows XP64 5.2
Windows Vista 6.0
Windows 7 6.1

Windows 2003 5.2
Windows 2008 6.0

有数百种可能性来检查您是否真的要确定...

Valery.
Hi,

Here is a quick table for reference...

Windows XP 5.1
Windows XP64 5.2
Windows Vista 6.0
Windows 7 6.1

Windows 2003 5.2
Windows 2008 6.0

There are hundreds of possibilities to check if you want to be really sure...

Valery.


[
I googled[^] and found this[^].

They use similar code to yours to find if it''s Vista:
Public Function IsVista() As Boolean
  If Environment.OSVersion.Version.Major = 6 Then
    Return True
  Else
    Return False
  End If
End Function



我假设Windows 7的主要版本为7.至少这可以帮助您入门或成为另一种研究思路.

编辑-猜猜您也需要检查次要版本,而Win 7是6.1.



I''m assuming that the major version would be 7 for windows 7. At least this might help get you started or be another train of thought to research.

EDIT - Guess you need to check minor version too, and Win 7 is 6.1.


这篇关于平台编号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆