IFileSystemImage::CreateResultImage 方法 (imapi2fs.h)

建立包含檔案系統和檔案資料的結果物件。

語法

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

參數

[out] resultStream

影像結果的 IFileSystemImageResult 介面。

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

傳回值

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

傳回碼 描述
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