IFileSystemImage::CreateResultImage 方法 (imapi2fs.h)

建立包含檔案系統和檔案數據的結果物件。

語法

HRESULT CreateResultImage(
  [out] IFileSystemImageResult **resultStream
);

參數

[out] resultStream

影像結果的 IFileSystemImageResult 介面。

用戶端應用程式可以將映像串流至媒體或其他長期儲存裝置,例如磁碟驅動器。

傳回值

成功時會傳回S_OK,但可能會因為實作而傳回其他成功碼。 下列錯誤碼通常會在作業失敗時傳回,但不代表唯一可能的錯誤值:

傳回碼 Description
IMAPI_E_INVALID_PARAM
為參數 %1!ls! 指定的值無效。

值:0xC0AAB101

E_OUTOFMEMORY
無法配置所需的記憶體。

值:0x8007000E

備註

目前 ,IFileSystemImage::CreateResultImage 需要磁碟媒體存取,因為先前的 IFileSystemImage::IdentifyFileSystemsOnDisc 方法呼叫。 若要解決此問題,建議您特別針對IFileSystemImage::IdentifyFileSystemsOnDisc 作業建立另一個 IFileSystemImage 物件。

如果文件系統是在單一會話中產生,且起始位址為零,則產生的數據流可以儲存為 ISO 檔案。

規格需求

需求
最低支援的用戶端 Windows Vista、Windows XP 與 SP2 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2003 [僅限傳統型應用程式]
目標平台 Windows
標頭 imapi2fs.h

另請參閱

IFileSystemImage

IFileSystemImage::get_FileSystemsToCreate

IFileSystemImage::p ut_FileSystemsToCreate

IFilesystemImage::ChooseImageDefaults

IFilesystemImage::ChooseImageDefaultsForMediaType