ホーム › Storage.Imapi › IDiscFormat2Erase
IDiscFormat2Erase
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 8
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
vtbl 12 HRESULT put_Recorder(IDiscRecorder2* value)
| value | IDiscRecorder2* | in | 消去に使用する記録デバイスを表す IDiscRecorder2 へのポインタを指定する。 |
vtbl 13 HRESULT get_Recorder(IDiscRecorder2** value)
| value | IDiscRecorder2** | out | 現在設定されている記録デバイスを表す IDiscRecorder2 ポインタを受け取る変数へのポインタである。 |
vtbl 14 HRESULT put_FullErase(VARIANT_BOOL value)
| value | VARIANT_BOOL | in | 完全消去(TRUE)か簡易消去(FALSE)かを指定する VARIANT_BOOL 値である。 |
vtbl 15 HRESULT get_FullErase(VARIANT_BOOL* value)
| value | VARIANT_BOOL* | out | 完全消去が設定されているかどうかを受け取る VARIANT_BOOL へのポインタである。 |
vtbl 16 HRESULT get_CurrentPhysicalMediaType(IMAPI_MEDIA_PHYSICAL_TYPE* value)
| value | IMAPI_MEDIA_PHYSICAL_TYPE* | out | 現在装填されているメディアの物理種別を受け取る列挙値へのポインタである。 |
| value | LPWSTR | in | デバイスへの排他アクセス取得時に使用するクライアント名を指す文字列へのポインタである。 |
| value | LPWSTR* | out | 設定されているクライアント名を受け取る変数へのポインタである。 |
vtbl 19 HRESULT EraseMedia()
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDiscFormat2Erase "{27354156-8F64-5B0F-8F00-5D77AFBE261E}" #usecom global IDiscFormat2Erase IID_IDiscFormat2Erase "{}" #comfunc global IDiscFormat2Erase_put_Recorder 12 sptr #comfunc global IDiscFormat2Erase_get_Recorder 13 sptr #comfunc global IDiscFormat2Erase_put_FullErase 14 int #comfunc global IDiscFormat2Erase_get_FullErase 15 var #comfunc global IDiscFormat2Erase_get_CurrentPhysicalMediaType 16 var #comfunc global IDiscFormat2Erase_put_ClientName 17 wstr #comfunc global IDiscFormat2Erase_get_ClientName 18 var #comfunc global IDiscFormat2Erase_EraseMedia 19 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IDiscFormat2Erase "{27354156-8F64-5B0F-8F00-5D77AFBE261E}" #usecom global IDiscFormat2Erase IID_IDiscFormat2Erase "{}" #comfunc global IDiscFormat2Erase_put_Recorder 12 sptr #comfunc global IDiscFormat2Erase_get_Recorder 13 sptr #comfunc global IDiscFormat2Erase_put_FullErase 14 int #comfunc global IDiscFormat2Erase_get_FullErase 15 sptr #comfunc global IDiscFormat2Erase_get_CurrentPhysicalMediaType 16 sptr #comfunc global IDiscFormat2Erase_put_ClientName 17 wstr #comfunc global IDiscFormat2Erase_get_ClientName 18 sptr #comfunc global IDiscFormat2Erase_EraseMedia 19 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。