#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ITextStory "{C241F5F3-7206-11D8-A2C7-00A0D1D6C6B3}"
#usecom global ITextStory IID_ITextStory "{}"
#comfunc global ITextStory_GetActive 3 var
#comfunc global ITextStory_SetActive 4 int
#comfunc global ITextStory_GetDisplay 5 sptr
#comfunc global ITextStory_GetIndex 6 var
#comfunc global ITextStory_GetType 7 var
#comfunc global ITextStory_SetType 8 int
#comfunc global ITextStory_GetProperty 9 int,var
#comfunc global ITextStory_GetRange 10 int,int,sptr
#comfunc global ITextStory_GetText 11 int,var
#comfunc global ITextStory_SetFormattedText 12 sptr
#comfunc global ITextStory_SetProperty 13 int,int
#comfunc global ITextStory_SetText 14 int,wstr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ITextStory "{C241F5F3-7206-11D8-A2C7-00A0D1D6C6B3}"
#usecom global ITextStory IID_ITextStory "{}"
#comfunc global ITextStory_GetActive 3 sptr
#comfunc global ITextStory_SetActive 4 int
#comfunc global ITextStory_GetDisplay 5 sptr
#comfunc global ITextStory_GetIndex 6 sptr
#comfunc global ITextStory_GetType 7 sptr
#comfunc global ITextStory_SetType 8 int
#comfunc global ITextStory_GetProperty 9 int,sptr
#comfunc global ITextStory_GetRange 10 int,int,sptr
#comfunc global ITextStory_GetText 11 int,sptr
#comfunc global ITextStory_SetFormattedText 12 sptr
#comfunc global ITextStory_SetProperty 13 int,int
#comfunc global ITextStory_SetText 14 int,wstr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。