#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDirectDrawClipper "{6C14DB85-A733-11CE-A521-0020AF0BE560}"
#usecom global IDirectDrawClipper IID_IDirectDrawClipper "{593817A0-7DB3-11CF-A2DE-00AA00B93356}"
#comfunc global IDirectDrawClipper_GetClipList 3 var,var,var
#comfunc global IDirectDrawClipper_GetHWnd 4 sptr
#comfunc global IDirectDrawClipper_Initialize 5 sptr,int
#comfunc global IDirectDrawClipper_IsClipListChanged 6 var
#comfunc global IDirectDrawClipper_SetClipList 7 var,int
#comfunc global IDirectDrawClipper_SetHWnd 8 int,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IDirectDrawClipper "{6C14DB85-A733-11CE-A521-0020AF0BE560}"
#usecom global IDirectDrawClipper IID_IDirectDrawClipper "{593817A0-7DB3-11CF-A2DE-00AA00B93356}"
#comfunc global IDirectDrawClipper_GetClipList 3 sptr,sptr,sptr
#comfunc global IDirectDrawClipper_GetHWnd 4 sptr
#comfunc global IDirectDrawClipper_Initialize 5 sptr,int
#comfunc global IDirectDrawClipper_IsClipListChanged 6 sptr
#comfunc global IDirectDrawClipper_SetClipList 7 sptr,int
#comfunc global IDirectDrawClipper_SetHWnd 8 int,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。