แก้ไข

แชร์ผ่าน


FunctionEnter3 Function

Notifies the profiler that control is being passed to a function.

Syntax

void __stdcall FunctionEnter3(FunctionOrRemappedID functionOrRemappedID);  

Parameters

functionOrRemappedID [in] The identifier of the function to which control is passed.

Remarks

The FunctionEnter3 callback function notifies the profiler as functions are being called, but does not support argument inspection. Use the ICorProfilerInfo3::SetEnterLeaveFunctionHooks3 method to register your implementation of this function.

The FunctionEnter3 function is a callback; you must implement it. The implementation must use the __declspec(naked) storage-class attribute.

The execution engine does not save any registers before calling this function.

  • On entry, you must save all registers that you use, including those in the floating-point unit (FPU).

  • On exit, you must restore the stack by popping off all the parameters that were pushed by its caller.

Requirements

Platforms: See System Requirements.

Header: CorProf.idl

Library: CorGuids.lib

.NET Framework Versions: Available since 4

See also