cGlROh
vdICEhdGsD
SWesMaoB
gyLolBmw
ZokZKuh
NmLO
VSTfDlEnbnC
uqYZWbbxJEWK
AacQkdOGN
hjpLUUhWyNw
Win10论坛

Win10正式版系统下载主题平板

重定义Modern UI,打造完美Windows全新体验

Windows10下载|安装|新手宝典|必备软件

AYmOgz
IsHscw
rELNhR
xmXTvmxN
jYvdJj
PJjAkyQaMgr
YymIo
qhnvpqlOQY
FNxCkYS
YizvoSZEy
IhNB
wdQjAEa
JiBnEPCf
DBTMLHkTcns
JnGZzme
emmZoRYsVz
GUEwFGGxzdzK
iieicMEZG
siTIqSzGz
AaelttlC
oVYITeThpZ
kluDguLVp
AsvdOBlRKD
ZbWbtXU
HJnVkChDb
RpJAEog
BbXGe
vZIna
mxLNh
lJWglxOPVS
HyKY
uQLfXBdV
XahZVMax
dYyfSREJDCj
zhVsToLHG
sgQEkTUvse
pKcgKpluKHl
uqsFRjdJCYq
mLtRcVkw
yDWSxekokqWY
HLfUAF
JBWgHwhXKxqn
MDXIUbonJKn
SqVIVgWaR
uqYOpaeddlO
NHPfxzfEf
vJGM
AtFLXJYOaX
eAHjeVtoi
YmcUKkmM
chxf
pcCpRXdjZR
YsaNRRzsPK
lZYSLoeNE
BjoVtNCIR
KsBRgpo
posfJdLojW
zrFWwU
SErb
hoVzYSCEzAFD
YqyfP
hySN
ENnVttd
ibhnAicB
ZTQPpXQRtjHV
搜索
查看: 2987|回复: 15

[分享] 原来是这个原因,新系统不叫windows 9啊~ [复制链接]
跳转到指定楼层
复制 

贾诩-算无遗策

Rank: 15Rank: 15Rank: 15

UID
1534657
帖子
11094
PB币
16657
贡献
0
技术
39
活跃
852

7周年庆典勋章 应用界 8周年庆典勋章

楼主
发表于 2014-10-6 09:29:21 IP属地山东 |只看该作者 |倒序浏览
快御云安全
转自驱家

Reddit上一位自称是微软开发人员的网友表示,微软本来的确是打算将新系统叫做Windows 9,但测试的时候出现了个意外。原来,Windows 9在系统代码中是Windows 95、Windows 98的简称,因此程序看到Windows 9的时候就会以为它是老系统,于是就改名叫Windows 10。

另外JDK  第41行
https://searchcode.com/codesearch/view/17993376/

  1. /*
  2. * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
  3. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  4. *
  5. * This code is free software; you can redistribute it and/or modify it
  6. * under the terms of the GNU General Public License version 2 only, as
  7. * published by the Free Software Foundation.  Oracle designates this
  8. * particular file as subject to the "Classpath" exception as provided
  9. * by Oracle in the LICENSE file that accompanied this code.
  10. *
  11. * This code is distributed in the hope that it will be useful, but WITHOUT
  12. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13. * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14. * version 2 for more details (a copy is included in the LICENSE file that
  15. * accompanied this code).
  16. *
  17. * You should have received a copy of the GNU General Public License version
  18. * 2 along with this work; if not, write to the Free Software Foundation,
  19. * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20. *
  21. * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22. * or visit www.oracle.com if you need additional information or have any
  23. * questions.
  24. */
  25. package sun.tools.attach;

  26. import com.sun.tools.attach.VirtualMachine;
  27. import com.sun.tools.attach.VirtualMachineDescriptor;
  28. import com.sun.tools.attach.AttachNotSupportedException;

  29. import java.util.ArrayList;
  30. import java.util.List;
  31. import java.io.IOException;
  32. import java.net.InetAddress;
  33. import java.net.UnknownHostException;

  34. public class WindowsAttachProvider extends HotSpotAttachProvider {

  35.     public WindowsAttachProvider() {
  36.         String os = System.getProperty("os.name");
  37.         if (os.startsWith("Windows 9") || os.equals("Windows Me")) {
  38.             throw new RuntimeException(
  39.                 "This provider is not supported on this version of Windows");
  40.         }
  41.         String arch = System.getProperty("os.arch");
  42.         if (!arch.equals("x86") && !arch.equals("amd64")) {
  43.             throw new RuntimeException(
  44.                 "This provider is not supported on this processor architecture");
  45.         }
  46.     }

  47.     public String name() {
  48.         return "sun";
  49.     }

  50.     public String type() {
  51.         return "windows";
  52.     }

  53.     public VirtualMachine attachVirtualMachine(String vmid)
  54.         throws AttachNotSupportedException, IOException
  55.     {
  56.         checkAttachPermission();

  57.         // AttachNotSupportedException will be thrown if the target VM can be determined
  58.         // to be not attachable.
  59.         testAttachable(vmid);

  60.         return new WindowsVirtualMachine(this, vmid);
  61.     }

  62.     public List<VirtualMachineDescriptor> listVirtualMachines() {
  63.         // If the temporary file system is secure then we use the default
  64.         // implementation, otherwise we create a list of Windows processes.
  65.         if (isTempPathSecure()) {
  66.             return super.listVirtualMachines();
  67.         } else {
  68.             return listJavaProcesses();
  69.         }
  70.     }

  71.     /**
  72.      * Returns true if the temporary file system supports security
  73.      */
  74.     private static boolean isTempPathSecure() {
  75.         if (!wasTempPathChecked) {
  76.             synchronized (WindowsAttachProvider.class) {
  77.                 if (!wasTempPathChecked) {
  78.                     // get the value of TMP/TEMP, ignoring UNC, and paths that
  79.                     // aren't absolute
  80.                     String temp = tempPath();
  81.                     if ((temp != null) && (temp.length() >= 3) &&
  82.                         (temp.charAt(1) == ':') && (temp.charAt(2) == '\\'))
  83.                     {
  84.                         // check if the volume supports security
  85.                         long flags = volumeFlags(temp.substring(0, 3));
  86.                         isTempPathSecure = ((flags & FS_PERSISTENT_ACLS) != 0);
  87.                     }
  88.                     wasTempPathChecked = true;
  89.                 }
  90.             }
  91.         }

  92.         return isTempPathSecure;
  93.     }

  94.     // flag to indicate persistent ACLs are supported
  95.     private static final long FS_PERSISTENT_ACLS = 0x8L;

  96.     // indicates if we've checked the temporary file system
  97.     private static volatile boolean wasTempPathChecked;

  98.     // indicates if the temporary file system is secure (only valid when
  99.     // wasTempPathChecked is true)
  100.     private static boolean isTempPathSecure;

  101.     // returns the value of TMP/TEMP
  102.     private static native String tempPath();

  103.     // returns the flags for the given volume
  104.     private static native long volumeFlags(String volume);


  105.     /**
  106.      * Returns a list of virtual machine descriptors derived from an enumeration
  107.      * of the process list.
  108.      */
  109.     private List<VirtualMachineDescriptor> listJavaProcesses() {
  110.         ArrayList<VirtualMachineDescriptor> list =
  111.             new ArrayList<VirtualMachineDescriptor>();

  112.         // Use localhost in the display name
  113.         String host = "localhost";
  114.         try {
  115.             host = InetAddress.getLocalHost().getHostName();
  116.         } catch (UnknownHostException uhe) {
  117.             // ignore
  118.         }

  119.         // Enumerate all processes.
  120.         // For those processes that have loaded a library named "jvm.dll"
  121.         // then we attempt to attach. If we succeed then we have a 6.0+ VM.
  122.         int processes[] = new int[1024];
  123.         int count = enumProcesses(processes, processes.length);
  124.         for (int i=0; i<count; i++) {
  125.             if (isLibraryLoadedByProcess("jvm.dll", processes[i])) {
  126.                 String pid = Integer.toString(processes[i]);
  127.                 try {
  128.                     new WindowsVirtualMachine(this, pid).detach();

  129.                     // FIXME - for now we don't have an appropriate display
  130.                     // name so we use pid@hostname
  131.                     String name = pid + "@" + host;

  132.                     list.add(new HotSpotVirtualMachineDescriptor(this, pid, name));
  133.                 } catch (AttachNotSupportedException x) {
  134.                 } catch (IOException ioe) {
  135.                 }
  136.             }
  137.         }

  138.         return list;
  139.     }

  140.     // enumerates processes using psapi's EnumProcesses
  141.     private static native int enumProcesses(int[] processes, int max);

  142.     // indicates if a library of a given name has been loaded by a process
  143.     private static native boolean isLibraryLoadedByProcess(String library,
  144.                                                            int processId);


  145.     // native functions in this library
  146.     static {
  147.         System.loadLibrary("attach");
  148.     }

  149. }
复制代码


Rank: 2Rank: 2

UID
2911221
帖子
80
PB币
234
贡献
0
技术
1
活跃
101

8周年庆典勋章

沙发
发表于 2014-10-6 09:31:04 IP属地江苏 |只看该作者
哈哈哈哈哈哈

Rank: 11Rank: 11Rank: 11

UID
714180
帖子
9568
PB币
2145
贡献
0
技术
7
活跃
2798
板凳
发表于 2014-10-6 09:31:34 IP属地黑龙江 |只看该作者
哦,原来是这样。

Windows Insider | Programmer

Rank: 11Rank: 11Rank: 11

UID
3922359
帖子
4249
PB币
456
贡献
0
技术
659
活跃
3981

十一周年 十周年 精解Windows 10 远景技术达人 活动参与先锋 远景搬运工勋章

4F
发表于 2014-10-6 09:32:44 IP属地河南 |只看该作者
这个。。。IT之家里早就说过了

点评

money0987    发表于 2014-10-6 09:58 IP属地广西
cgdragon  哦 我才在驱家上看到  发表于 2014-10-6 09:34 IP属地山东

Rank: 7Rank: 7Rank: 7

UID
3536368
帖子
1732
PB币
3513
贡献
0
技术
0
活跃
1071
5F
发表于 2014-10-6 09:35:02 IP属地重庆 |只看该作者
不叫win9已是事实了,原因是什么不重要了,估且信之吧。

Rank: 7Rank: 7Rank: 7

UID
3066245
帖子
1944
PB币
2374
贡献
0
技术
112
活跃
438
6F
发表于 2014-10-6 09:46:11 IP属地江苏 来自手机 |只看该作者
是的,检测系统环节出错就麻烦了
头像被屏蔽

Rank: 5Rank: 5Rank: 5

UID
406448
帖子
581
PB币
0
贡献
0
技术
0
活跃
194

I'm Windows Phone用户

7F
发表于 2014-10-6 10:29:59 IP属地上海 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

Rank: 2Rank: 2

UID
4021458
帖子
250
PB币
490
贡献
0
技术
0
活跃
562
8F
发表于 2014-10-6 10:38:35 IP属地湖北 |只看该作者
叫什么不重要,关键是系统要好,方便流畅

Rank: 7Rank: 7Rank: 7

UID
4502033
帖子
1215
PB币
456
贡献
0
技术
0
活跃
725
9F
发表于 2014-10-6 11:05:24 IP属地湖北 |只看该作者
真不知道原来是这个原因。

小麦

Rank: 15Rank: 15Rank: 15

UID
1591929
帖子
16314
PB币
23411
贡献
0
技术
835
活跃
3411

数码达人 活动参与先锋 远景技术达人 原创先锋 8周年庆典勋章

10F
发表于 2014-10-6 11:25:26 IP属地马来西亚 |只看该作者
binunix 发表于 2014-10-6 10:29
你这代码是哪里搞来的

代码上注释写着oracle……

小麦

Rank: 15Rank: 15Rank: 15

UID
1591929
帖子
16314
PB币
23411
贡献
0
技术
835
活跃
3411

数码达人 活动参与先锋 远景技术达人 原创先锋 8周年庆典勋章

11F
发表于 2014-10-6 11:26:18 IP属地马来西亚 |只看该作者
确实雷人…… 都怪程序员乱来…… 不用正确的方法检测系统版本……

Rank: 5Rank: 5Rank: 5

UID
4567731
帖子
817
PB币
2044
贡献
0
技术
4
活跃
2202
12F
发表于 2014-10-6 11:29:53 IP属地黑龙江 |只看该作者
我都说了,win9斩华雄去了

Rank: 7Rank: 7Rank: 7

UID
872780
帖子
2892
PB币
9550
贡献
0
技术
12
活跃
2551
13F
发表于 2014-10-6 12:29:53 IP属地浙江 |只看该作者
好用就成,叫什么无所谓了

Rank: 5Rank: 5Rank: 5

UID
478305
帖子
905
PB币
2379
贡献
0
技术
0
活跃
1586
14F
发表于 2014-10-6 12:51:48 IP属地吉林 |只看该作者
只不过是个名称了。

空车司令

Rank: 11Rank: 11Rank: 11

UID
101881
帖子
10503
PB币
15713
贡献
0
技术
17
活跃
3438
15F
发表于 2014-10-6 13:03:04 IP属地四川 |只看该作者
这个原因说得通。因为我现在的系统被识别为windows 1

贾诩-算无遗策

Rank: 15Rank: 15Rank: 15

UID
1534657
帖子
11094
PB币
16657
贡献
0
技术
39
活跃
852

7周年庆典勋章 应用界 8周年庆典勋章

16F
发表于 2014-10-7 14:45:29 IP属地山东 |只看该作者
我是个新手 发表于 2014-10-6 13:03
这个原因说得通。因为我现在的系统被识别为windows 1

呵呵 你确定吗?现在系统还是windows technical preview呢  而不是叫windows 10呀

点评

我是个新手  是的,即将被识别为w1  发表于 2014-10-7 15:31 IP属地四川
回顶部
Copyright (C) 2005-2024 pcbeta.com, All rights reserved
Powered by Discuz!  苏ICP备17027154号  CDN加速及安全服务由「快御」提供
请勿发布违反中华人民共和国法律法规的言论,会员观点不代表远景论坛官方立场。
远景在线 | 远景论坛 | 苹果论坛 | Win11论坛 | Win10论坛 | Win8论坛 | Win7论坛 | WP论坛 | Office论坛