VSS硬件提供程序 [英] VSS Hardware provider

查看:381
本文介绍了VSS硬件提供程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试按照说明安装Windows SDK附带的示例VSS硬件提供程序。不幸的是COM拒绝注册DLL,给出以下输出:

I've been trying to follow the instructions to install the example VSS hardware provider that comes with the Windows SDK. Unfortunately COM refuses to register the DLL, giving the following output:

取消注册现有应用程序...

- 创建目录对象

- 获取应用程序集合

- 填充...

- 搜索VssSampleProvider应用程序...

- 正在保存更改... < br>
完成。

创建新的COM +应用程序:

- 创建目录对象

- 获取应用程序集合

- 填充...

- 添加新的应用程序对象

- 设置应用程序名称= VssSampleProvider

- 设置应用程序描述= VSS HW示例提供程序

- 设置应用访问权限= true

- 设置加密的COM通信= true

- 设置安全引用= true

- 设置模拟= false

- 保存更改...

- 创建以本地系统运行的Windows服务

- 添加DLL组件



错误:

- 错误代码:-2146368511 [0x80110401]

- 退出代码:113

- 说明:

- 资源:

- 帮助文件:

- 帮助上下文:0

- COM +检测到错误:(2)

*(COM + ERROR 0)on C:\VssSampleProvider\VssSampleProvider.dll

ErrorCode:-2146368486 [0x8011041A]

MajorRef:C:\VssSampleProvider\VssSampleProvider.dll

MinorRef:无效于SampleProvider上的

*(COM +错误1)

错误代码:-2146368486 [0x8011041A]

MajorRef:{423BBC78 -9B20-4BBE-A967-B63EC43BC7F3}

MinorRef:无效

Unregistering the existing application...
- Create the catalog object
- Get the Applications collection
- Populate...
- Search for VssSampleProvider application...
- Saving changes...
Done.
Creating a new COM+ application:
- Creating the catalog object
- Get the Applications collection
- Populate...
- Add new application object
- Set app name = VssSampleProvider
- Set app description = VSS HW Sample Provider
- Set app access check = true
- Set encrypted COM communication = true
- Set secure references = true
- Set impersonation = false
- Save changes...
- Create Windows service running as Local System
- Add the DLL component

ERROR:
- Error code: -2146368511 [0x80110401]
- Exit code: 113
- Description:
- Source:
- Help file:
- Help context: 0
- COM+ Errors detected: (2)
* (COM+ ERROR 0) on C:\VssSampleProvider\VssSampleProvider.dll
ErrorCode: -2146368486 [0x8011041A]
MajorRef: C:\VssSampleProvider\VssSampleProvider.dll
MinorRef: invalid
* (COM+ ERROR 1) on SampleProvider
ErrorCode: -2146368486 [0x8011041A]
MajorRef: {423BBC78-9B20-4BBE-A967-B63EC43BC7F3}
MinorRef: invalid

这是同一个问题描述在此主题:

This is the same problem described in this thread:

http://www.osronline.com /showthread.cfm?link=185213

我试过使用x86和x64机器,但它没有什么区别。任何提示或建议是最受欢迎的。

I've tried using both x86 and x64 machines, but it makes no difference. Any hints or suggestions would be most welcome.

推荐答案

我设法解决这个问题。原因是你只能在Windows服务器发行版上安装硬件提供程序,我使用的是普通的Windows 7.请参阅MSDN页面进行API调用:

I managed to solve this issue in the end. It turns out you can only install hardware providers on windows server distributions, I was using ordinary Windows 7. See the MSDN page for the API call:

http://msdn.microsoft.com/en-us /library/windows/desktop/aa381923(v=vs.85).aspx

编译64位并使用SDK的64位工具一个Windows服务器2012年机器它似乎工作正常。

Compiling for 64 bit and using the 64 bit tools with the SDK on a windows server 2012 machine it seems to work correctly.

这篇关于VSS硬件提供程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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