Notifies the profiler that a function is about to return to the caller.
FunctionLeave function is deprecated in the .NET Framework 2.0. It will continue to work, but will incur a performance penalty. Use the FunctionLeave2 function instead.
void __stdcall FunctionLeave ( [in] FunctionID funcID );
[in] The identifier of the function that is returning.
FunctionLeave function is a callback; you must implement it. The implementation must use the
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.
The implementation of
FunctionLeave should not block because it will delay garbage collection. The implementation should not attempt a garbage collection because the stack may not be in a garbage collection-friendly state. If a garbage collection is attempted, the runtime will block until
FunctionLeave function must not call into managed code or in any way cause a managed memory allocation.
Platforms: See System Requirements.
.NET Framework Versions: 1.1, 1.0