ICorProfilerInfo::SetEnterLeaveFunctionHooks メソッド
マネージ関数の "enter"、"leave"、および "tailcall" の各フックで呼び出される、プロファイラーによって実装される関数を指定します。
HRESULT SetEnterLeaveFunctionHooks(
[in] FunctionEnter *pFuncEnter,
[in] FunctionLeave *pFuncLeave,
[in] FunctionTailcall *pFuncTailcall);
パラメーター
pFuncEnter
[入力] FunctionEnter コールバックとして使用される実装へのポインター。pFuncLeave
[入力] FunctionLeave コールバックとして使用される実装へのポインター。pFuncTailcall
[入力] FunctionTailcall コールバックとして使用される実装へのポインター。
解説
.NET Framework Version 1.0 では、その対応するコールバックを無効にするために各関数ポインターを null にすることができます。
一度にアクティブにすることができるコールバックは 1 セットだけです。 したがって、プロファイラーが SetEnterLeaveFunctionHooks と ICorProfilerInfo2::SetEnterLeaveFunctionHooks2 の両方を呼び出す場合は、SetEnterLeaveFunctionHooks2 が使用されます。
SetEnterLeaveFunctionHooks メソッドを呼び出すことができるのは、プロファイラーの ICorProfilerCallback::Initialize コールバックだけです。
必要条件
プラットフォーム: 「.NET Framework システム要件」を参照
ヘッダー: CorProf.idl、CorProf.h
ライブラリ: CorGuids.lib
.NET Framework のバージョン: 4、3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1