#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ISpSREngine2 "{7BA627D8-33F9-4375-90C5-9985AEE5EDE5}"
#usecom global ISpSREngine2 IID_ISpSREngine2 "{}"
#comfunc global ISpSREngine2_PrivateCallImmediate 32 sptr,sptr,int,sptr,var
#comfunc global ISpSREngine2_SetAdaptationData2 33 sptr,wstr,int,wstr,int,int
#comfunc global ISpSREngine2_SetGrammarPrefix 34 sptr,wstr,int
#comfunc global ISpSREngine2_SetRulePriority 35 sptr,sptr,int
#comfunc global ISpSREngine2_EmulateRecognition 36 sptr,int
#comfunc global ISpSREngine2_SetSLMWeight 37 sptr,float
#comfunc global ISpSREngine2_SetRuleWeight 38 sptr,sptr,float
#comfunc global ISpSREngine2_SetTrainingState 39 int,int
#comfunc global ISpSREngine2_ResetAcousticModelAdaptation 40
#comfunc global ISpSREngine2_OnLoadCFG 41 sptr,var,int
#comfunc global ISpSREngine2_OnUnloadCFG 42 sptr,int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ISpSREngine2 "{7BA627D8-33F9-4375-90C5-9985AEE5EDE5}"
#usecom global ISpSREngine2 IID_ISpSREngine2 "{}"
#comfunc global ISpSREngine2_PrivateCallImmediate 32 sptr,sptr,int,sptr,sptr
#comfunc global ISpSREngine2_SetAdaptationData2 33 sptr,wstr,int,wstr,int,int
#comfunc global ISpSREngine2_SetGrammarPrefix 34 sptr,wstr,int
#comfunc global ISpSREngine2_SetRulePriority 35 sptr,sptr,int
#comfunc global ISpSREngine2_EmulateRecognition 36 sptr,int
#comfunc global ISpSREngine2_SetSLMWeight 37 sptr,float
#comfunc global ISpSREngine2_SetRuleWeight 38 sptr,sptr,float
#comfunc global ISpSREngine2_SetTrainingState 39 int,int
#comfunc global ISpSREngine2_ResetAcousticModelAdaptation 40
#comfunc global ISpSREngine2_OnLoadCFG 41 sptr,sptr,int
#comfunc global ISpSREngine2_OnUnloadCFG 42 sptr,int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。