#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ISpDataKey "{14056581-E16C-11D2-BB90-00C04F8EE6C0}"
#usecom global ISpDataKey IID_ISpDataKey "{D9F6EE60-58C9-458B-88E1-2F908FD7F87C}"
#comfunc global ISpDataKey_SetData 3 wstr,int,var
#comfunc global ISpDataKey_GetData 4 wstr,var,var
#comfunc global ISpDataKey_SetStringValue 5 wstr,wstr
#comfunc global ISpDataKey_GetStringValue 6 wstr,var
#comfunc global ISpDataKey_SetDWORD 7 wstr,int
#comfunc global ISpDataKey_GetDWORD 8 wstr,var
#comfunc global ISpDataKey_OpenKey 9 wstr,sptr
#comfunc global ISpDataKey_CreateKey 10 wstr,sptr
#comfunc global ISpDataKey_DeleteKey 11 wstr
#comfunc global ISpDataKey_DeleteValue 12 wstr
#comfunc global ISpDataKey_EnumKeys 13 int,var
#comfunc global ISpDataKey_EnumValues 14 int,var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ISpDataKey "{14056581-E16C-11D2-BB90-00C04F8EE6C0}"
#usecom global ISpDataKey IID_ISpDataKey "{D9F6EE60-58C9-458B-88E1-2F908FD7F87C}"
#comfunc global ISpDataKey_SetData 3 wstr,int,sptr
#comfunc global ISpDataKey_GetData 4 wstr,sptr,sptr
#comfunc global ISpDataKey_SetStringValue 5 wstr,wstr
#comfunc global ISpDataKey_GetStringValue 6 wstr,sptr
#comfunc global ISpDataKey_SetDWORD 7 wstr,int
#comfunc global ISpDataKey_GetDWORD 8 wstr,sptr
#comfunc global ISpDataKey_OpenKey 9 wstr,sptr
#comfunc global ISpDataKey_CreateKey 10 wstr,sptr
#comfunc global ISpDataKey_DeleteKey 11 wstr
#comfunc global ISpDataKey_DeleteValue 12 wstr
#comfunc global ISpDataKey_EnumKeys 13 int,sptr
#comfunc global ISpDataKey_EnumValues 14 int,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。