在执行Sample VSS Hardware provider设置时获取错误代码:-2146368511 [0x80110401]

时间:2015-09-01 17:12:34

标签: c++ windows com com+ volume-shadow-service

" VSS Hardware provider"中提及的解决方案没用。

我执行了以下说明来安装VssSampleProvider安装程序(参考https://code.msdn.microsoft.com/windowsdesktop/VSS-Sample-Provider-3096be2a/sourcecode?fileId=58709&pathId=1834493409)。

(1)按如下方式安装虚拟存储驱动程序:

app.directive('nxToggle', function() {

    return {
      restrict: 'A',
      require: 'ngModel',
      link: function($scope, elem, attrs, ngModel) {
        $scope.$watch(function() {
          return ngModel.$modelValue
        }, function(val) {
          if (val == true)
            elem.addClass('btn-primary')
          else
            elem.removeClass('btn-primary')
        })

        elem.bind('click', function() {
          $scope.$apply(function() {
            if (ngModel.$modelValue == true)
              ngModel.$setViewValue(false)

            else
              ngModel.$setViewValue(true)
          })
        }) 
      }
    }
  })

(2)按如下方式安装VSS示例提供程序:

a.  Navigate to the Program Files (x86)\Windows Kits\8.0\bin\x86 directory in the Windows SDK. This directory contains virtualstoragevss.sys and vstorcontrol.exe.

执行" install-sampleprovider.cmd"后出现以下错误从命令提示符:

ERROR:

a.  Copy the following files from the Program Files (x86)\Windows Kits\8.0\bin\x86 directory into the VssSampleProvider directory in the downloaded sample.

    -   VssSampleProvider.dll
    -   VstorInterface.dll
    -   install-sampleprovider.cmd
    -   uninstall-sampleprovider.cmd
    -   register_app.vbs
b.  In the VssSampleProvider directory, type "install-sampleprovider.cmd" at the command prompt.

命令提示控制台日志:

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

0 个答案:

没有答案