vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IVBSAXAttributes "{10DC0586-132B-4CAC-8BB3-DB00AC8B7EE0}"
#usecom global IVBSAXAttributes IID_IVBSAXAttributes "{}"
#comfunc global IVBSAXAttributes_get_length 7 var
#comfunc global IVBSAXAttributes_getURI 8 int,var
#comfunc global IVBSAXAttributes_getLocalName 9 int,var
#comfunc global IVBSAXAttributes_getQName 10 int,var
#comfunc global IVBSAXAttributes_getIndexFromName 11 wstr,wstr,var
#comfunc global IVBSAXAttributes_getIndexFromQName 12 wstr,var
#comfunc global IVBSAXAttributes_getType 13 int,var
#comfunc global IVBSAXAttributes_getTypeFromName 14 wstr,wstr,var
#comfunc global IVBSAXAttributes_getTypeFromQName 15 wstr,var
#comfunc global IVBSAXAttributes_getValue 16 int,var
#comfunc global IVBSAXAttributes_getValueFromName 17 wstr,wstr,var
#comfunc global IVBSAXAttributes_getValueFromQName 18 wstr,var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IVBSAXAttributes "{10DC0586-132B-4CAC-8BB3-DB00AC8B7EE0}"
#usecom global IVBSAXAttributes IID_IVBSAXAttributes "{}"
#comfunc global IVBSAXAttributes_get_length 7 sptr
#comfunc global IVBSAXAttributes_getURI 8 int,sptr
#comfunc global IVBSAXAttributes_getLocalName 9 int,sptr
#comfunc global IVBSAXAttributes_getQName 10 int,sptr
#comfunc global IVBSAXAttributes_getIndexFromName 11 wstr,wstr,sptr
#comfunc global IVBSAXAttributes_getIndexFromQName 12 wstr,sptr
#comfunc global IVBSAXAttributes_getType 13 int,sptr
#comfunc global IVBSAXAttributes_getTypeFromName 14 wstr,wstr,sptr
#comfunc global IVBSAXAttributes_getTypeFromQName 15 wstr,sptr
#comfunc global IVBSAXAttributes_getValue 16 int,sptr
#comfunc global IVBSAXAttributes_getValueFromName 17 wstr,wstr,sptr
#comfunc global IVBSAXAttributes_getValueFromQName 18 wstr,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。