#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IHostMemoryManager "{7BC698D1-F9E3-4460-9CDE-D04248E9FA25}"
#usecom global IHostMemoryManager IID_IHostMemoryManager "{}"
#comfunc global IHostMemoryManager_CreateMalloc 3 int,sptr
#comfunc global IHostMemoryManager_VirtualAlloc 4 sptr,sptr,int,int,int,sptr
#comfunc global IHostMemoryManager_VirtualFree 5 sptr,sptr,int
#comfunc global IHostMemoryManager_VirtualQuery 6 sptr,sptr,sptr,var
#comfunc global IHostMemoryManager_VirtualProtect 7 sptr,sptr,int,var
#comfunc global IHostMemoryManager_GetMemoryLoad 8 var,var
#comfunc global IHostMemoryManager_RegisterMemoryNotificationCallback 9 sptr
#comfunc global IHostMemoryManager_NeedsVirtualAddressSpace 10 sptr,sptr
#comfunc global IHostMemoryManager_AcquiredVirtualAddressSpace 11 sptr,sptr
#comfunc global IHostMemoryManager_ReleasedVirtualAddressSpace 12 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IHostMemoryManager "{7BC698D1-F9E3-4460-9CDE-D04248E9FA25}"
#usecom global IHostMemoryManager IID_IHostMemoryManager "{}"
#comfunc global IHostMemoryManager_CreateMalloc 3 int,sptr
#comfunc global IHostMemoryManager_VirtualAlloc 4 sptr,sptr,int,int,int,sptr
#comfunc global IHostMemoryManager_VirtualFree 5 sptr,sptr,int
#comfunc global IHostMemoryManager_VirtualQuery 6 sptr,sptr,sptr,sptr
#comfunc global IHostMemoryManager_VirtualProtect 7 sptr,sptr,int,sptr
#comfunc global IHostMemoryManager_GetMemoryLoad 8 sptr,sptr
#comfunc global IHostMemoryManager_RegisterMemoryNotificationCallback 9 sptr
#comfunc global IHostMemoryManager_NeedsVirtualAddressSpace 10 sptr,sptr
#comfunc global IHostMemoryManager_AcquiredVirtualAddressSpace 11 sptr,sptr
#comfunc global IHostMemoryManager_ReleasedVirtualAddressSpace 12 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。