#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ISpSREngineSite "{3B414AEC-720C-4883-B9EF-178CD394FB3A}"
#usecom global ISpSREngineSite IID_ISpSREngineSite "{}"
#comfunc global ISpSREngineSite_Read 3 sptr,int,var
#comfunc global ISpSREngineSite_DataAvailable 4 var
#comfunc global ISpSREngineSite_SetBufferNotifySize 5 int
#comfunc global ISpSREngineSite_ParseFromTransitions 6 var,sptr
#comfunc global ISpSREngineSite_Recognition 7 var
#comfunc global ISpSREngineSite_AddEvent 8 var,sptr
#comfunc global ISpSREngineSite_Synchronize 9 int64
#comfunc global ISpSREngineSite_GetWordInfo 10 var,int
#comfunc global ISpSREngineSite_SetWordClientContext 11 sptr,sptr
#comfunc global ISpSREngineSite_GetRuleInfo 12 var,int
#comfunc global ISpSREngineSite_SetRuleClientContext 13 sptr,sptr
#comfunc global ISpSREngineSite_GetStateInfo 14 sptr,var
#comfunc global ISpSREngineSite_GetResource 15 sptr,wstr,var
#comfunc global ISpSREngineSite_GetTransitionProperty 16 sptr,var
#comfunc global ISpSREngineSite_IsAlternate 17 sptr,sptr
#comfunc global ISpSREngineSite_GetMaxAlternates 18 sptr,var
#comfunc global ISpSREngineSite_GetContextMaxAlternates 19 sptr,var
#comfunc global ISpSREngineSite_UpdateRecoPos 20 int64
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ISpSREngineSite "{3B414AEC-720C-4883-B9EF-178CD394FB3A}"
#usecom global ISpSREngineSite IID_ISpSREngineSite "{}"
#comfunc global ISpSREngineSite_Read 3 sptr,int,sptr
#comfunc global ISpSREngineSite_DataAvailable 4 sptr
#comfunc global ISpSREngineSite_SetBufferNotifySize 5 int
#comfunc global ISpSREngineSite_ParseFromTransitions 6 sptr,sptr
#comfunc global ISpSREngineSite_Recognition 7 sptr
#comfunc global ISpSREngineSite_AddEvent 8 sptr,sptr
#comfunc global ISpSREngineSite_Synchronize 9 int64
#comfunc global ISpSREngineSite_GetWordInfo 10 sptr,int
#comfunc global ISpSREngineSite_SetWordClientContext 11 sptr,sptr
#comfunc global ISpSREngineSite_GetRuleInfo 12 sptr,int
#comfunc global ISpSREngineSite_SetRuleClientContext 13 sptr,sptr
#comfunc global ISpSREngineSite_GetStateInfo 14 sptr,sptr
#comfunc global ISpSREngineSite_GetResource 15 sptr,wstr,sptr
#comfunc global ISpSREngineSite_GetTransitionProperty 16 sptr,sptr
#comfunc global ISpSREngineSite_IsAlternate 17 sptr,sptr
#comfunc global ISpSREngineSite_GetMaxAlternates 18 sptr,sptr
#comfunc global ISpSREngineSite_GetContextMaxAlternates 19 sptr,sptr
#comfunc global ISpSREngineSite_UpdateRecoPos 20 int64
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。