The GetRealPC method of the IRemoteStackFrameEx interface returns the bytecode offset of the next instruction to be executed, beginning from the method executing in this stack frame. In non-topmost stack frames, GetPC returns the bytecode offset of the return location, not the bytecode offset of the invoke instruction that is being executed.
HRESULT GetRealPC(ULONG *offPC)
[out] *offPC | Returns the instruction’s bytecode offset. |
S_OK Success.
E_FAIL Failure.
E_NOLONGERVALID The underlying stack frame is no longer valid.