The GetMethodExitReturnValue method of the IJavaEventMonitorIDInfo3 interface can be used to retrieve the return value from the method call that was just completed.
The profiler can only call GetMethodExitReturnValue during a MethodExit or MethodExit2 callback notification.
The GetMethodExitReturnValue method is implemented only by the IJavaEventMonitorIDInfo3 interface.
HRESULT GetMethodExitReturnValue(MethodID *preturning_method_id, __int64 **pret_value);
The MethodID of the method that is exiting and its return value.
[out] *preturning_method_id | The MethodID of the method that was just completed. |
[out] **pret_value | The method return value for the method that was just completed. |
To properly interpret the return value (its type and value), a profiler would need to parse the signature for this method. This parameter signature can be retrieved by calling the MethodInformation method.