vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ISpeechPhraseInfo "{961559CF-4E67-4662-8BF0-D93F1FCD61B3}"
#usecom global ISpeechPhraseInfo IID_ISpeechPhraseInfo "{}"
#comfunc global ISpeechPhraseInfo_get_LanguageId 7 var
#comfunc global ISpeechPhraseInfo_get_GrammarId 8 var
#comfunc global ISpeechPhraseInfo_get_StartTime 9 var
#comfunc global ISpeechPhraseInfo_get_AudioStreamPosition 10 var
#comfunc global ISpeechPhraseInfo_get_AudioSizeBytes 11 var
#comfunc global ISpeechPhraseInfo_get_RetainedSizeBytes 12 var
#comfunc global ISpeechPhraseInfo_get_AudioSizeTime 13 var
#comfunc global ISpeechPhraseInfo_get_Rule 14 sptr
#comfunc global ISpeechPhraseInfo_get_Properties 15 sptr
#comfunc global ISpeechPhraseInfo_get_Elements 16 sptr
#comfunc global ISpeechPhraseInfo_get_Replacements 17 sptr
#comfunc global ISpeechPhraseInfo_get_EngineId 18 var
#comfunc global ISpeechPhraseInfo_get_EnginePrivateData 19 var
#comfunc global ISpeechPhraseInfo_SaveToMemory 20 var
#comfunc global ISpeechPhraseInfo_GetText 21 int,int,int,var
#comfunc global ISpeechPhraseInfo_GetDisplayAttributes 22 int,int,int,var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_ISpeechPhraseInfo "{961559CF-4E67-4662-8BF0-D93F1FCD61B3}"
#usecom global ISpeechPhraseInfo IID_ISpeechPhraseInfo "{}"
#comfunc global ISpeechPhraseInfo_get_LanguageId 7 sptr
#comfunc global ISpeechPhraseInfo_get_GrammarId 8 sptr
#comfunc global ISpeechPhraseInfo_get_StartTime 9 sptr
#comfunc global ISpeechPhraseInfo_get_AudioStreamPosition 10 sptr
#comfunc global ISpeechPhraseInfo_get_AudioSizeBytes 11 sptr
#comfunc global ISpeechPhraseInfo_get_RetainedSizeBytes 12 sptr
#comfunc global ISpeechPhraseInfo_get_AudioSizeTime 13 sptr
#comfunc global ISpeechPhraseInfo_get_Rule 14 sptr
#comfunc global ISpeechPhraseInfo_get_Properties 15 sptr
#comfunc global ISpeechPhraseInfo_get_Elements 16 sptr
#comfunc global ISpeechPhraseInfo_get_Replacements 17 sptr
#comfunc global ISpeechPhraseInfo_get_EngineId 18 sptr
#comfunc global ISpeechPhraseInfo_get_EnginePrivateData 19 sptr
#comfunc global ISpeechPhraseInfo_SaveToMemory 20 sptr
#comfunc global ISpeechPhraseInfo_GetText 21 int,int,int,sptr
#comfunc global ISpeechPhraseInfo_GetDisplayAttributes 22 int,int,int,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。