ホーム › System.Diagnostics.Debug.Extensions › IDataModelScriptDebugStackFrame
IDataModelScriptDebugStackFrame
COMメソッド 7
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
| name | LPWSTR* | out | このスタックフレームの名前(関数名等)を受け取る出力ポインタである。割り当てられた文字列は呼び出し側が解放する。 |
vtbl 4 HRESULT GetPosition(ScriptDebugPosition* position, ScriptDebugPosition* positionSpanEnd, LPWSTR* lineText)
| position | ScriptDebugPosition* | out | このフレームに対応するスクリプト内の位置(開始)を表す ScriptDebugPosition を受け取る出力ポインタである。 |
| positionSpanEnd | ScriptDebugPosition* | outoptional | 位置範囲の終端を表す ScriptDebugPosition を受け取る出力ポインタである。不要なら NULL を指定できる。 |
| lineText | LPWSTR* | outoptional | 該当行のソーステキストを受け取る出力ポインタである。不要なら NULL を指定できる。 |
| isTransitionPoint | BOOLEAN* | out | このフレームが別スクリプトへの遷移点であるか否かを受け取る出力ブール値ポインタである。 |
vtbl 6 HRESULT GetTransition(IDataModelScript** transitionScript, BOOLEAN* isTransitionContiguous)
| transitionScript | IDataModelScript** | out | 遷移先のスクリプトを表す IDataModelScript を受け取る出力ポインタである。 |
| isTransitionContiguous | BOOLEAN* | out | 遷移が連続的(コンテキストが途切れない)か否かを受け取る出力ブール値ポインタである。 |
vtbl 7 HRESULT Evaluate(LPWSTR pwszExpression, IModelObject** ppResult)
| pwszExpression | LPWSTR | in | このスタックフレームのコンテキストで評価する式の文字列を指定する。 |
| ppResult | IModelObject** | out | 評価結果を表すモデルオブジェクトを受け取る出力ポインタである。 |
vtbl 8 HRESULT EnumerateLocals(IDataModelScriptDebugVariableSetEnumerator** variablesEnum)
| variablesEnum | IDataModelScriptDebugVariableSetEnumerator** | out | このフレームのローカル変数群を列挙する列挙子を受け取る出力ポインタである。 |
vtbl 9 HRESULT EnumerateArguments(IDataModelScriptDebugVariableSetEnumerator** variablesEnum)
| variablesEnum | IDataModelScriptDebugVariableSetEnumerator** | out | このフレームの引数群を列挙する列挙子を受け取る出力ポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDataModelScriptDebugStackFrame "{DEC6ED5E-6360-4941-AB4C-A26409DE4F82}" #usecom global IDataModelScriptDebugStackFrame IID_IDataModelScriptDebugStackFrame "{}" #comfunc global IDataModelScriptDebugStackFrame_GetName 3 var #comfunc global IDataModelScriptDebugStackFrame_GetPosition 4 var,var,var #comfunc global IDataModelScriptDebugStackFrame_IsTransitionPoint 5 var #comfunc global IDataModelScriptDebugStackFrame_GetTransition 6 sptr,var #comfunc global IDataModelScriptDebugStackFrame_Evaluate 7 wstr,sptr #comfunc global IDataModelScriptDebugStackFrame_EnumerateLocals 8 sptr #comfunc global IDataModelScriptDebugStackFrame_EnumerateArguments 9 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IDataModelScriptDebugStackFrame "{DEC6ED5E-6360-4941-AB4C-A26409DE4F82}" #usecom global IDataModelScriptDebugStackFrame IID_IDataModelScriptDebugStackFrame "{}" #comfunc global IDataModelScriptDebugStackFrame_GetName 3 sptr #comfunc global IDataModelScriptDebugStackFrame_GetPosition 4 sptr,sptr,sptr #comfunc global IDataModelScriptDebugStackFrame_IsTransitionPoint 5 sptr #comfunc global IDataModelScriptDebugStackFrame_GetTransition 6 sptr,sptr #comfunc global IDataModelScriptDebugStackFrame_Evaluate 7 wstr,sptr #comfunc global IDataModelScriptDebugStackFrame_EnumerateLocals 8 sptr #comfunc global IDataModelScriptDebugStackFrame_EnumerateArguments 9 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。