IDiscFormat2Data :: Write返回E_FAIL未指定的失败.值:0x80004005 [英] IDiscFormat2Data::Write returns E_FAIL Unspecified failure. Value: 0x80004005

查看:496
本文介绍了IDiscFormat2Data :: Write返回E_FAIL未指定的失败.值:0x80004005的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当请求将大数据(约4GB)写入DVD时,IDiscFormat2Data :: Write失败,错误代码为E_FAIL未指定失败.值:0x80004005

When it is requested to write with a large data (around4GB) to DVD, IDiscFormat2Data::Write gets failed with error code E_FAIL Unspecified failure.  Value: 0x80004005

操作系统是XP SP3,使用的IMAPI修补程序是 WindowsXP-KB932716-v2-x86-ENU IMAPI_XP_SRV2003_x86.exe

OS is XP SP3 and IMAPI patches used are WindowsXP-KB932716-v2-x86-ENU and IMAPI_XP_SRV2003_x86.exe

代码段如下所示


CComPtr< IFileSystemImage > pIFileSystemImge;
hrResult = ::CoCreateInstance( __uuidof( MsftFileSystemImage ), 0, CLSCTX_INPROC_SERVER,__uuidof( IFileSystemImage ), ( void** )&pIFileSystemImge );
hrResult = pIFileSystemImge->ChooseImageDefaultsForMediaType( eMediaType );
CComPtr< IFsiDirectoryItem > pIRootDirectory;
hrResult = pIFileSystemImge->get_Root( &pIRootDirectory );
_bstr_t bsSourceDir = stRecordInfo_i.lpctszTempFilePath;
hrResult = pIRootDirectory->AddTree( bsSourceDir, false );
FsiFileSystems eFileSystems = GetFileSystems( stRecordInfo_i.dwFormatType );
hrResult = pIFileSystemImge->put_FileSystemsToCreate( eFileSystems );
hrResult = pIFileSystemImge->put_VolumeName( bsVolumeName );
CComPtr< IFileSystemImageResult > pIImageResult;
hrResult = pIFileSystemImge->CreateResultImage( &pIImageResult );
hrResult = pIImageResult->get_ImageStream( pIStream_o );
CComPtr< IBurnVerification > pIBurnVerification;
hrResult = pIDiscformat2Data_i->QueryInterface( __uuidof( IBurnVerification ), ( void** )&pIBurnVerification );
hrResult = pIBurnVerification->put_BurnVerificationLevel( IMAPI_BURN_VERIFICATION_FULL );
hrResult = pIDiscformat2Data_i->SetWriteSpeed( lSpeedinSectors, VARIANT_FALSE );
pIDiscformat2Data_i->put_ForceMediaToBeClosed( VARIANT_TRUE );

hrResult = pIDiscformat2Data_i->Write( pIStream_i ); // Returns E_FAIL

推荐答案

在Windows 7中不会发生此问题.

This issue does not occur in windows 7.

 


这篇关于IDiscFormat2Data :: Write返回E_FAIL未指定的失败.值:0x80004005的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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