#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IWMDMLogger "{110A3200-5A79-11D3-8D78-444553540000}"
#usecom global IWMDMLogger IID_IWMDMLogger "{110A3202-5A79-11D3-8D78-444553540000}"
#comfunc global IWMDMLogger_IsEnabled 3 var
#comfunc global IWMDMLogger_Enable 4 int
#comfunc global IWMDMLogger_GetLogFileName 5 var,int
#comfunc global IWMDMLogger_SetLogFileName 6 str
#comfunc global IWMDMLogger_LogString 7 int,str,str
#comfunc global IWMDMLogger_LogDword 8 int,str,str,int
#comfunc global IWMDMLogger_Reset 9
#comfunc global IWMDMLogger_GetSizeParams 10 var,var
#comfunc global IWMDMLogger_SetSizeParams 11 int,int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IWMDMLogger "{110A3200-5A79-11D3-8D78-444553540000}"
#usecom global IWMDMLogger IID_IWMDMLogger "{110A3202-5A79-11D3-8D78-444553540000}"
#comfunc global IWMDMLogger_IsEnabled 3 sptr
#comfunc global IWMDMLogger_Enable 4 int
#comfunc global IWMDMLogger_GetLogFileName 5 sptr,int
#comfunc global IWMDMLogger_SetLogFileName 6 str
#comfunc global IWMDMLogger_LogString 7 int,str,str
#comfunc global IWMDMLogger_LogDword 8 int,str,str,int
#comfunc global IWMDMLogger_Reset 9
#comfunc global IWMDMLogger_GetSizeParams 10 sptr,sptr
#comfunc global IWMDMLogger_SetSizeParams 11 int,int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。