且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用HCK API时运行可签名性测试时出错

更新时间:2023-10-18 12:29:34

我在使用PackageWriter.AddDriver方法之前遇到过这个错误。我发现这个异常有一个InnerException属性,暗示这个方法需要读取一个名为"WindowsProtectedFiles.xml"的文件。它应该包含在你的HCK Studio文件夹中的
,例如"C:\Program Files(x86)\Windows Kits \8.1 \ Hardware Certification Kit \ Studio"。 

I had met this error before while using the PackageWriter.AddDriver method. And I found that this exception has an InnerException property that imply this method need to read a file named "WindowsProtectedFiles.xml" which supposed to be include in your HCK Studio folder like "C:\Program Files (x86)\Windows Kits\8.1\Hardware Certification Kit\Studio". 

因此解决方案是将此"WindowsProtectedFiles.xml"文件复制到您的exe所在的文件夹中。

So the solution is copy this "WindowsProtectedFiles.xml" file to the folder that your exe located.