vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IAzOperation "{5E56B24F-EA01-4D61-BE44-C49B5E4EAF74}"
#usecom global IAzOperation IID_IAzOperation "{}"
#comfunc global IAzOperation_get_Name 7 var
#comfunc global IAzOperation_put_Name 8 wstr
#comfunc global IAzOperation_get_Description 9 var
#comfunc global IAzOperation_put_Description 10 wstr
#comfunc global IAzOperation_get_ApplicationData 11 var
#comfunc global IAzOperation_put_ApplicationData 12 wstr
#comfunc global IAzOperation_get_OperationID 13 var
#comfunc global IAzOperation_put_OperationID 14 int
#comfunc global IAzOperation_get_Writable 15 var
#comfunc global IAzOperation_GetProperty 16 int,int,var
#comfunc global IAzOperation_SetProperty 17 int,int,int
#comfunc global IAzOperation_Submit 18 int,int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IAzOperation "{5E56B24F-EA01-4D61-BE44-C49B5E4EAF74}"
#usecom global IAzOperation IID_IAzOperation "{}"
#comfunc global IAzOperation_get_Name 7 sptr
#comfunc global IAzOperation_put_Name 8 wstr
#comfunc global IAzOperation_get_Description 9 sptr
#comfunc global IAzOperation_put_Description 10 wstr
#comfunc global IAzOperation_get_ApplicationData 11 sptr
#comfunc global IAzOperation_put_ApplicationData 12 wstr
#comfunc global IAzOperation_get_OperationID 13 sptr
#comfunc global IAzOperation_put_OperationID 14 int
#comfunc global IAzOperation_get_Writable 15 sptr
#comfunc global IAzOperation_GetProperty 16 int,int,sptr
#comfunc global IAzOperation_SetProperty 17 int,int,int
#comfunc global IAzOperation_Submit 18 int,int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。