IDiscRecorder2 介面 (imapi2.h)

此介面代表實體裝置。 您可以使用這個介面來擷取電腦上安裝的 CD 和 DVD 裝置相關資訊,並執行像是關閉匣或退出媒體等作業。

若要建立此介面的實例,請呼叫 CoCreateInstance 函式 。 Use__uuidof (類別識別碼的 MsftDiscRecorder2) ,以及介面識別碼的 __uuidof (IDiscRecorder2) 。

繼承

IDiscRecorder2介面繼承自IDispatch介面。 IDiscRecorder2 也有下列類型的成員:

方法

IDiscRecorder2介面具有這些方法。

 
IDiscRecorder2::AcquireExclusiveAccess

取得裝置的獨佔存取權。
IDiscRecorder2::CloseTray

關閉媒體匣。
IDiscRecorder2::D isableMcn

停用裝置的媒體變更通知 (MCN) 。
IDiscRecorder2::退出媒體

從裝置退出媒體。
IDiscRecorder2::EnableMcn

啟用裝置的媒體變更通知 (MCN) 。
IDiscRecorder2::get_ActiveDiscRecorder

擷取用來初始化光碟裝置的唯一識別碼。
IDiscRecorder2::get_CurrentFeaturePages

擷取標示為目前之裝置的功能頁面清單。
IDiscRecorder2::get_CurrentProfiles

擷取標示為目前之裝置的所有 MMC 設定檔。
IDiscRecorder2::get_DeviceCanLoadMedia

判斷裝置是否可以退出並後續重載媒體。
IDiscRecorder2::get_ExclusiveAccessOwner

擷取具有裝置獨佔存取權的用戶端應用程式名稱。
IDiscRecorder2::get_LegacyDeviceNumber

擷取 CD 或 DVD 裝置的舊版裝置號碼。
IDiscRecorder2::get_ProductId

擷取裝置的產品識別碼。
IDiscRecorder2::get_ProductRevision

擷取裝置的產品修訂碼。
IDiscRecorder2::get_SupportedFeaturePages

擷取裝置支援的功能清單。
IDiscRecorder2::get_SupportedModePages

擷取裝置支援的 MMC 模式頁面清單。
IDiscRecorder2::get_SupportedProfiles

擷取裝置支援的 MMC 配置檔案清單。
IDiscRecorder2::get_VendorId

擷取裝置的廠商識別碼。
IDiscRecorder2::get_VolumeName

擷取與裝置相關聯的唯一磁片區名稱。
IDiscRecorder2::get_VolumePathNames

擷取裝置的磁碟機號和 NTFS 掛接點清單。
IDiscRecorder2::InitializeDiscRecorder

將 物件與指定的光碟裝置產生關聯。
IDiscRecorder2::ReleaseExclusiveAccess

釋放裝置的獨佔存取權。

備註

若要在腳本中建立 MsftDiscRecorder2 物件,請使用 IMAPI2。呼叫 CreateObject時,MsftDiscRecorder2 做為程式識別碼。

若要將資料寫入媒體,您需要將錄製器附加至格式寫入器,例如,若要將錄製器附加至資料寫入器,請呼叫 IDiscFormat2Data::p ut_Recorder 方法。

這個介面的數個屬性會傳回多媒體命令 (MMC) 所定義的封包資料。 如需封包資料格式的資訊,請參閱 ftp://ftp.t10.org/t10/drafts/mmc5的最新 MMC 規格修訂。

需求

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

另請參閱

IDiscRecorder2Ex