#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ITfFnLMProcessor "{7AFBF8E7-AC4B-4082-B058-890899D3A010}"
#usecom global ITfFnLMProcessor IID_ITfFnLMProcessor "{}"
#comfunc global ITfFnLMProcessor_QueryRange 4 sptr,sptr,var
#comfunc global ITfFnLMProcessor_QueryLangID 5 int,var
#comfunc global ITfFnLMProcessor_GetReconversion 6 sptr,sptr
#comfunc global ITfFnLMProcessor_Reconvert 7 sptr
#comfunc global ITfFnLMProcessor_QueryKey 8 int,sptr,sptr,var
#comfunc global ITfFnLMProcessor_InvokeKey 9 int,sptr,sptr
#comfunc global ITfFnLMProcessor_InvokeFunc 10 sptr,var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ITfFnLMProcessor "{7AFBF8E7-AC4B-4082-B058-890899D3A010}"
#usecom global ITfFnLMProcessor IID_ITfFnLMProcessor "{}"
#comfunc global ITfFnLMProcessor_QueryRange 4 sptr,sptr,sptr
#comfunc global ITfFnLMProcessor_QueryLangID 5 int,sptr
#comfunc global ITfFnLMProcessor_GetReconversion 6 sptr,sptr
#comfunc global ITfFnLMProcessor_Reconvert 7 sptr
#comfunc global ITfFnLMProcessor_QueryKey 8 int,sptr,sptr,sptr
#comfunc global ITfFnLMProcessor_InvokeKey 9 int,sptr,sptr
#comfunc global ITfFnLMProcessor_InvokeFunc 10 sptr,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。