ホーム › System.Diagnostics.Debug.Extensions › IDataModelScriptDebugBreakpoint
IDataModelScriptDebugBreakpoint
COMメソッド 6
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 ULONGLONG GetId()
vtbl 4 BOOLEAN IsEnabled()
vtbl 5 void Enable()
vtbl 6 void Disable()
vtbl 7 void Remove()
vtbl 8 HRESULT GetPosition(ScriptDebugPosition* position, ScriptDebugPosition* positionSpanEnd, LPWSTR* lineText)
| position | ScriptDebugPosition* | out | このブレークポイントの位置(開始)を表す ScriptDebugPosition を受け取る出力ポインタである。 |
| positionSpanEnd | ScriptDebugPosition* | outoptional | 位置範囲の終端を表す ScriptDebugPosition を受け取る出力ポインタである。不要なら NULL を指定できる。 |
| lineText | LPWSTR* | outoptional | ブレークポイントが設定された行のソーステキストを受け取る出力ポインタである。不要なら NULL を指定できる。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDataModelScriptDebugBreakpoint "{6BB27B35-02E6-47CB-90A0-5371244032DE}" #usecom global IDataModelScriptDebugBreakpoint IID_IDataModelScriptDebugBreakpoint "{}" #comfunc global IDataModelScriptDebugBreakpoint_GetId 3 #comfunc global IDataModelScriptDebugBreakpoint_IsEnabled 4 #comfunc global IDataModelScriptDebugBreakpoint_Enable 5 #comfunc global IDataModelScriptDebugBreakpoint_Disable 6 #comfunc global IDataModelScriptDebugBreakpoint_Remove 7 #comfunc global IDataModelScriptDebugBreakpoint_GetPosition 8 var,var,var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IDataModelScriptDebugBreakpoint "{6BB27B35-02E6-47CB-90A0-5371244032DE}" #usecom global IDataModelScriptDebugBreakpoint IID_IDataModelScriptDebugBreakpoint "{}" #comfunc global IDataModelScriptDebugBreakpoint_GetId 3 #comfunc global IDataModelScriptDebugBreakpoint_IsEnabled 4 #comfunc global IDataModelScriptDebugBreakpoint_Enable 5 #comfunc global IDataModelScriptDebugBreakpoint_Disable 6 #comfunc global IDataModelScriptDebugBreakpoint_Remove 7 #comfunc global IDataModelScriptDebugBreakpoint_GetPosition 8 sptr,sptr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。