#define global IID_IDiscRecorder2 "{27354133-7F64-5B0F-8F00-5D77AFBE261E}"
#usecom global IDiscRecorder2 IID_IDiscRecorder2 "{}"
#comfunc global IDiscRecorder2_EjectMedia 7
#comfunc global IDiscRecorder2_CloseTray 8
#comfunc global IDiscRecorder2_AcquireExclusiveAccess 9 int,wstr
#comfunc global IDiscRecorder2_ReleaseExclusiveAccess 10
#comfunc global IDiscRecorder2_DisableMcn 11
#comfunc global IDiscRecorder2_EnableMcn 12
#comfunc global IDiscRecorder2_InitializeDiscRecorder 13 wstr
#comfunc global IDiscRecorder2_get_ActiveDiscRecorder 14 var
#comfunc global IDiscRecorder2_get_VendorId 15 var
#comfunc global IDiscRecorder2_get_ProductId 16 var
#comfunc global IDiscRecorder2_get_ProductRevision 17 var
#comfunc global IDiscRecorder2_get_VolumeName 18 var
#comfunc global IDiscRecorder2_get_VolumePathNames 19 var
#comfunc global IDiscRecorder2_get_DeviceCanLoadMedia 20 var
#comfunc global IDiscRecorder2_get_LegacyDeviceNumber 21 var
#comfunc global IDiscRecorder2_get_SupportedFeaturePages 22 var
#comfunc global IDiscRecorder2_get_CurrentFeaturePages 23 var
#comfunc global IDiscRecorder2_get_SupportedProfiles 24 var
#comfunc global IDiscRecorder2_get_CurrentProfiles 25 var
#comfunc global IDiscRecorder2_get_SupportedModePages 26 var
#comfunc global IDiscRecorder2_get_ExclusiveAccessOwner 27 var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IDiscRecorder2 "{27354133-7F64-5B0F-8F00-5D77AFBE261E}"
#usecom global IDiscRecorder2 IID_IDiscRecorder2 "{}"
#comfunc global IDiscRecorder2_EjectMedia 7
#comfunc global IDiscRecorder2_CloseTray 8
#comfunc global IDiscRecorder2_AcquireExclusiveAccess 9 int,wstr
#comfunc global IDiscRecorder2_ReleaseExclusiveAccess 10
#comfunc global IDiscRecorder2_DisableMcn 11
#comfunc global IDiscRecorder2_EnableMcn 12
#comfunc global IDiscRecorder2_InitializeDiscRecorder 13 wstr
#comfunc global IDiscRecorder2_get_ActiveDiscRecorder 14 sptr
#comfunc global IDiscRecorder2_get_VendorId 15 sptr
#comfunc global IDiscRecorder2_get_ProductId 16 sptr
#comfunc global IDiscRecorder2_get_ProductRevision 17 sptr
#comfunc global IDiscRecorder2_get_VolumeName 18 sptr
#comfunc global IDiscRecorder2_get_VolumePathNames 19 sptr
#comfunc global IDiscRecorder2_get_DeviceCanLoadMedia 20 sptr
#comfunc global IDiscRecorder2_get_LegacyDeviceNumber 21 sptr
#comfunc global IDiscRecorder2_get_SupportedFeaturePages 22 sptr
#comfunc global IDiscRecorder2_get_CurrentFeaturePages 23 sptr
#comfunc global IDiscRecorder2_get_SupportedProfiles 24 sptr
#comfunc global IDiscRecorder2_get_CurrentProfiles 25 sptr
#comfunc global IDiscRecorder2_get_SupportedModePages 26 sptr
#comfunc global IDiscRecorder2_get_ExclusiveAccessOwner 27 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。