#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IVdsVolume "{88306BB2-E71F-478C-86A2-79DA200A0F11}"
#usecom global IVdsVolume IID_IVdsVolume "{}"
#comfunc global IVdsVolume_GetProperties 3 var
#comfunc global IVdsVolume_GetPack 4 sptr
#comfunc global IVdsVolume_QueryPlexes 5 sptr
#comfunc global IVdsVolume_Extend 6 var,int,sptr
#comfunc global IVdsVolume_Shrink 7 int64,sptr
#comfunc global IVdsVolume_AddPlex 8 int,sptr
#comfunc global IVdsVolume_BreakPlex 9 int,sptr
#comfunc global IVdsVolume_RemovePlex 10 int,sptr
#comfunc global IVdsVolume_Delete 11 int
#comfunc global IVdsVolume_SetFlags 12 int,int
#comfunc global IVdsVolume_ClearFlags 13 int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IVdsVolume "{88306BB2-E71F-478C-86A2-79DA200A0F11}"
#usecom global IVdsVolume IID_IVdsVolume "{}"
#comfunc global IVdsVolume_GetProperties 3 sptr
#comfunc global IVdsVolume_GetPack 4 sptr
#comfunc global IVdsVolume_QueryPlexes 5 sptr
#comfunc global IVdsVolume_Extend 6 sptr,int,sptr
#comfunc global IVdsVolume_Shrink 7 int64,sptr
#comfunc global IVdsVolume_AddPlex 8 int,sptr
#comfunc global IVdsVolume_BreakPlex 9 int,sptr
#comfunc global IVdsVolume_RemovePlex 10 int,sptr
#comfunc global IVdsVolume_Delete 11 int
#comfunc global IVdsVolume_SetFlags 12 int,int
#comfunc global IVdsVolume_ClearFlags 13 int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。