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