vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ISpeechDataKey "{CE17C09B-4EFA-44D5-A4C9-59D9585AB0CD}"
#usecom global ISpeechDataKey IID_ISpeechDataKey "{}"
#comfunc global ISpeechDataKey_SetBinaryValue 7 wstr,int
#comfunc global ISpeechDataKey_GetBinaryValue 8 wstr,var
#comfunc global ISpeechDataKey_SetStringValue 9 wstr,wstr
#comfunc global ISpeechDataKey_GetStringValue 10 wstr,var
#comfunc global ISpeechDataKey_SetLongValue 11 wstr,int
#comfunc global ISpeechDataKey_GetLongValue 12 wstr,var
#comfunc global ISpeechDataKey_OpenKey 13 wstr,sptr
#comfunc global ISpeechDataKey_CreateKey 14 wstr,sptr
#comfunc global ISpeechDataKey_DeleteKey 15 wstr
#comfunc global ISpeechDataKey_DeleteValue 16 wstr
#comfunc global ISpeechDataKey_EnumKeys 17 int,var
#comfunc global ISpeechDataKey_EnumValues 18 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_ISpeechDataKey "{CE17C09B-4EFA-44D5-A4C9-59D9585AB0CD}"
#usecom global ISpeechDataKey IID_ISpeechDataKey "{}"
#comfunc global ISpeechDataKey_SetBinaryValue 7 wstr,int
#comfunc global ISpeechDataKey_GetBinaryValue 8 wstr,sptr
#comfunc global ISpeechDataKey_SetStringValue 9 wstr,wstr
#comfunc global ISpeechDataKey_GetStringValue 10 wstr,sptr
#comfunc global ISpeechDataKey_SetLongValue 11 wstr,int
#comfunc global ISpeechDataKey_GetLongValue 12 wstr,sptr
#comfunc global ISpeechDataKey_OpenKey 13 wstr,sptr
#comfunc global ISpeechDataKey_CreateKey 14 wstr,sptr
#comfunc global ISpeechDataKey_DeleteKey 15 wstr
#comfunc global ISpeechDataKey_DeleteValue 16 wstr
#comfunc global ISpeechDataKey_EnumKeys 17 int,sptr
#comfunc global ISpeechDataKey_EnumValues 18 int,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。