The GetCallingFrame method of the IRemoteStackFrame interface returns an IRemoteStackFrame interface representing the stack frame of the caller of this method.
HRESULT GetCallingFrame(IRemoteStackFrame **ppCallingFrame)
[out] **ppCallingFrame | Returns the stack frame of the caller of this method. |
S_OK Success.
E_NOLONGERVALID The underlying stack frame is no longer valid.
E_OUTOFMEMORY Insufficient memory.
GetCallingFrame will return S_OK and a NULL *ppCallingFrame when called on the topmost stack frame on a thread.