0

目前对于 Windows XP 和 Windows 7 32 位,我使用 IJolierDiscMaster COM 接口来写入 CD。目前我正在将 Windows 应用程序迁移到 Windows 10。当我尝试在 Windows 10 中写入 CD 时,出现异常“ System.Runtime.InteropServices.COMException(Ox80010105):服务器在 IJolietDiscMaster 抛出异常(异常来自 HRESULT:Ox80010105 RPC_E_SERVERFAULT) .AddData

这是界面:

[ComImport]
  [Guid("E3BC42CE-4E5C-11D3-9144-00104BA11C5E")]
  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
  internal interface IJolietDiscMaster
  {
       void AddData(IStorage pStorage, int lFileOverwrite);
}

这是 CD 写入的代码

fDiscMaster.SetActiveDiscRecorder(fActiveRecorder);
CreateIStorage();
fDataDiscWriter.AddData(fRootStorage, 1);

它在 AddData 方法中失败,但有以下异常:

  :System.Runtime.InteropServices.COMException (0x80010105): The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
   at COM.IJolietDiscMaster.AddData(IStorage pStorage, Int64 lFileOverwrite)

4

0 回答 0