ホーム › System.Diagnostics.Debug.ActiveScript › IDebugStackFrame
IDebugStackFrame
COMメソッド 5
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT GetCodeContext(IDebugCodeContext** ppcc)
| ppcc | IDebugCodeContext** | out | このスタックフレームの現在の実行位置を示す IDebugCodeContext を受け取る出力ポインタである。 |
| fLong | BOOL | in | 詳細な説明(TRUE)か簡潔な説明(FALSE)かを指定する。 |
| pbstrDescription | LPWSTR* | out | スタックフレームの説明文字列を受け取る出力ポインタである。 |
| fLong | BOOL | in | 詳細な言語名(TRUE)か短い言語名(FALSE)かを指定する。 |
| pbstrLanguage | LPWSTR* | out | このフレームの実装言語名を表す文字列を受け取る出力ポインタである。 |
vtbl 6 HRESULT GetThread(IDebugApplicationThread** ppat)
| ppat | IDebugApplicationThread** | out | このスタックフレームが属する IDebugApplicationThread を受け取る出力ポインタである。 |
vtbl 7 HRESULT GetDebugProperty(IDebugProperty** ppDebugProp)
| ppDebugProp | IDebugProperty** | out | このフレームのローカル変数などを公開する IDebugProperty を受け取る出力ポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDebugStackFrame "{51973C17-CB0C-11D0-B5C9-00A0244A0E7A}" #usecom global IDebugStackFrame IID_IDebugStackFrame "{}" #comfunc global IDebugStackFrame_GetCodeContext 3 sptr #comfunc global IDebugStackFrame_GetDescriptionString 4 int,var #comfunc global IDebugStackFrame_GetLanguageString 5 int,var #comfunc global IDebugStackFrame_GetThread 6 sptr #comfunc global IDebugStackFrame_GetDebugProperty 7 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IDebugStackFrame "{51973C17-CB0C-11D0-B5C9-00A0244A0E7A}" #usecom global IDebugStackFrame IID_IDebugStackFrame "{}" #comfunc global IDebugStackFrame_GetCodeContext 3 sptr #comfunc global IDebugStackFrame_GetDescriptionString 4 int,sptr #comfunc global IDebugStackFrame_GetLanguageString 5 int,sptr #comfunc global IDebugStackFrame_GetThread 6 sptr #comfunc global IDebugStackFrame_GetDebugProperty 7 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。