#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IWMWriterPostView "{81E20CE4-75EF-491A-8004-FC53C45BDC3E}"
#usecom global IWMWriterPostView IID_IWMWriterPostView "{}"
#comfunc global IWMWriterPostView_SetPostViewCallback 3 sptr,sptr
#comfunc global IWMWriterPostView_SetReceivePostViewSamples 4 int,int
#comfunc global IWMWriterPostView_GetReceivePostViewSamples 5 int,var
#comfunc global IWMWriterPostView_GetPostViewProps 6 int,sptr
#comfunc global IWMWriterPostView_SetPostViewProps 7 int,sptr
#comfunc global IWMWriterPostView_GetPostViewFormatCount 8 int,var
#comfunc global IWMWriterPostView_GetPostViewFormat 9 int,int,sptr
#comfunc global IWMWriterPostView_SetAllocateForPostView 10 int,int
#comfunc global IWMWriterPostView_GetAllocateForPostView 11 int,var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IWMWriterPostView "{81E20CE4-75EF-491A-8004-FC53C45BDC3E}"
#usecom global IWMWriterPostView IID_IWMWriterPostView "{}"
#comfunc global IWMWriterPostView_SetPostViewCallback 3 sptr,sptr
#comfunc global IWMWriterPostView_SetReceivePostViewSamples 4 int,int
#comfunc global IWMWriterPostView_GetReceivePostViewSamples 5 int,sptr
#comfunc global IWMWriterPostView_GetPostViewProps 6 int,sptr
#comfunc global IWMWriterPostView_SetPostViewProps 7 int,sptr
#comfunc global IWMWriterPostView_GetPostViewFormatCount 8 int,sptr
#comfunc global IWMWriterPostView_GetPostViewFormat 9 int,int,sptr
#comfunc global IWMWriterPostView_SetAllocateForPostView 10 int,int
#comfunc global IWMWriterPostView_GetAllocateForPostView 11 int,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。