vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IOCSPAdmin "{322E830D-67DB-4FE9-9577-4596D9F09294}"
#usecom global IOCSPAdmin IID_IOCSPAdmin "{D3F73511-92C9-47CB-8FF2-8D891A7C4DE4}"
#comfunc global IOCSPAdmin_get_OCSPServiceProperties 7 sptr
#comfunc global IOCSPAdmin_get_OCSPCAConfigurationCollection 8 sptr
#comfunc global IOCSPAdmin_GetConfiguration 9 wstr,int
#comfunc global IOCSPAdmin_SetConfiguration 10 wstr,int
#comfunc global IOCSPAdmin_GetMyRoles 11 wstr,var
#comfunc global IOCSPAdmin_Ping 12 wstr
#comfunc global IOCSPAdmin_SetSecurity 13 wstr,wstr
#comfunc global IOCSPAdmin_GetSecurity 14 wstr,var
#comfunc global IOCSPAdmin_GetSigningCertificates 15 wstr,var,var
#comfunc global IOCSPAdmin_GetHashAlgorithms 16 wstr,wstr,var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IOCSPAdmin "{322E830D-67DB-4FE9-9577-4596D9F09294}"
#usecom global IOCSPAdmin IID_IOCSPAdmin "{D3F73511-92C9-47CB-8FF2-8D891A7C4DE4}"
#comfunc global IOCSPAdmin_get_OCSPServiceProperties 7 sptr
#comfunc global IOCSPAdmin_get_OCSPCAConfigurationCollection 8 sptr
#comfunc global IOCSPAdmin_GetConfiguration 9 wstr,int
#comfunc global IOCSPAdmin_SetConfiguration 10 wstr,int
#comfunc global IOCSPAdmin_GetMyRoles 11 wstr,sptr
#comfunc global IOCSPAdmin_Ping 12 wstr
#comfunc global IOCSPAdmin_SetSecurity 13 wstr,wstr
#comfunc global IOCSPAdmin_GetSecurity 14 wstr,sptr
#comfunc global IOCSPAdmin_GetSigningCertificates 15 wstr,sptr,sptr
#comfunc global IOCSPAdmin_GetHashAlgorithms 16 wstr,wstr,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。