The GetPC method of the IRemoteStackFrame interface returns the bytecode offset from the start of the method executing in this stack frame of the next instruction to be executed. In non-topmost stack frames, GetPC returns the bytecode offset of the invoke instruction that is being executed, not the bytecode offset of the return location.
HRESULT GetPC(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.