#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ITfContextOwner "{AA80E80C-2021-11D2-93E0-0060B067B86E}"
#usecom global ITfContextOwner IID_ITfContextOwner "{}"
#comfunc global ITfContextOwner_GetACPFromPoint 3 var,int,var
#comfunc global ITfContextOwner_GetTextExt 4 int,int,var,var
#comfunc global ITfContextOwner_GetScreenExt 5 var
#comfunc global ITfContextOwner_GetStatus 6 var
#comfunc global ITfContextOwner_GetWnd 7 sptr
#comfunc global ITfContextOwner_GetAttribute 8 var,var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ITfContextOwner "{AA80E80C-2021-11D2-93E0-0060B067B86E}"
#usecom global ITfContextOwner IID_ITfContextOwner "{}"
#comfunc global ITfContextOwner_GetACPFromPoint 3 sptr,int,sptr
#comfunc global ITfContextOwner_GetTextExt 4 int,int,sptr,sptr
#comfunc global ITfContextOwner_GetScreenExt 5 sptr
#comfunc global ITfContextOwner_GetStatus 6 sptr
#comfunc global ITfContextOwner_GetWnd 7 sptr
#comfunc global ITfContextOwner_GetAttribute 8 sptr,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。