IRawCDImageCreator::AddSubcodeRWGenerator 方法 (imapi2.h)

允許新增 IStream所提供的自訂 R-W 子碼。 所提供物件的大小必須等於建立最終影像時,原始磁片映射 * 96 個位元組中的磁區數目。

語法

HRESULT AddSubcodeRWGenerator(
  [in, optional] IStream *subcode
);

參數

[in, optional] subcode

每個磁區) 96 個位元組的副程式代碼資料 (,其中 2 個最重要的位一律為零 (,因為它們是 P/Q 位) 。

傳回值

成功時會傳回S_OK,但可能會因為實作而傳回其他成功碼。

備註

可能會在呼叫 IRawCDImageCreator::CreateResultImage之前隨時新增。 如果 IRawCDImageCreator::p ut_ResultingImageType 設定為只傳回 PQ,則此呼叫將會失敗,因為產生的影像中不會使用 RW 副程式代碼。

Windows Server 2003 搭配 Service Pack 1 (SP1) 、Windows XP 搭配 Service Pack 2 (SP2) ,以及 Windows Vista 透過 Windows Feature Pack for Storage 支援此方法。 此更新套件所提供的所有功能在 Windows 7 和 Windows Server 2008 R2 中原生支援。

需求

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

另請參閱

IRawCDImageCreator

IRawCDImageCreator::CreateResultImage

IRawCDImageCreator::p ut_ResultingImageType