Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/281.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 阿什维德故障?_C# - Fatal编程技术网

C# 阿什维德故障?

C# 阿什维德故障?,c#,C#,在两台机器上,我发现ASHWID出现了一个奇怪的问题 此代码用于返回包含当前ASHWID的字符串: public static string GetDeviceId() { HardwareToken token = HardwareIdentification.GetPackageSpecificToken(null); IBuffer hardwareId = token.Id; DataReader dataReader = DataReader.FromBuffer(hard

在两台机器上,我发现ASHWID出现了一个奇怪的问题

此代码用于返回包含当前ASHWID的字符串:

public static string GetDeviceId()
{
  HardwareToken token = HardwareIdentification.GetPackageSpecificToken(null);
  IBuffer hardwareId = token.Id;
  DataReader dataReader = DataReader.FromBuffer(hardwareId);
 var bytes = new byte[Convert.ToInt32(hardwareId.Length)];
 dataReader.ReadBytes(bytes);
 return BitConverter.ToString(bytes);
}
我使用WinStore应用程序中的代码获取ASHWID

  • 一个客户得到一个ASHWID,没有任何磁盘部件(第3部分)他的机器安装了4个磁盘,Windows 10正在运行

  • 另一位客户拥有运行Windows 10的“Microsoft Surface Pro 3”。但bios部分(第9部分)每隔1或2天就会发生更改

    2015年12月14日ASHWID:03-00-4C-41-08-00-FC-76-05-00-DA-1B-06-00-01-00-04-00-88-92-04-00-74-A8-04-00-B2-B2-01-00-F4-77-02-00-BA-9F-09-00-A4-5F

    2015年12月15日阿什维德:03-00-4C-41-08-00-FC-76-05-00-DA-1B-06-00-01-00-04-00-88-92-04-00-74-A8-04-00-B2-B2-01-00-F4-77-02-00-BA-9F-09-00-E4-86

  • 我被这种奇怪的行为弄糊涂了

    这是Windows10中的一个bug吗?还是有什么想法

    ;-)

    致意 托马斯