#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDebugRegisters "{CE289126-9E84-45A7-937E-67BB18691493}"
#usecom global IDebugRegisters IID_IDebugRegisters "{}"
#comfunc global IDebugRegisters_GetNumberRegisters 3 var
#comfunc global IDebugRegisters_GetDescription 4 int,var,int,var,var
#comfunc global IDebugRegisters_GetIndexByName 5 str,var
#comfunc global IDebugRegisters_GetValue 6 int,var
#comfunc global IDebugRegisters_SetValue 7 int,var
#comfunc global IDebugRegisters_GetValues 8 int,var,int,var
#comfunc global IDebugRegisters_SetValues 9 int,var,int,var
#comfunc global IDebugRegisters_OutputRegisters 10 int,int
#comfunc global IDebugRegisters_GetInstructionOffset 11 var
#comfunc global IDebugRegisters_GetStackOffset 12 var
#comfunc global IDebugRegisters_GetFrameOffset 13 var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IDebugRegisters "{CE289126-9E84-45A7-937E-67BB18691493}"
#usecom global IDebugRegisters IID_IDebugRegisters "{}"
#comfunc global IDebugRegisters_GetNumberRegisters 3 sptr
#comfunc global IDebugRegisters_GetDescription 4 int,sptr,int,sptr,sptr
#comfunc global IDebugRegisters_GetIndexByName 5 str,sptr
#comfunc global IDebugRegisters_GetValue 6 int,sptr
#comfunc global IDebugRegisters_SetValue 7 int,sptr
#comfunc global IDebugRegisters_GetValues 8 int,sptr,int,sptr
#comfunc global IDebugRegisters_SetValues 9 int,sptr,int,sptr
#comfunc global IDebugRegisters_OutputRegisters 10 int,int
#comfunc global IDebugRegisters_GetInstructionOffset 11 sptr
#comfunc global IDebugRegisters_GetStackOffset 12 sptr
#comfunc global IDebugRegisters_GetFrameOffset 13 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。