The GetMethodLocationForPC method of the IRemoteMethodFieldEx interface returns the IMethodLocation interface representing a given interpreted bytecode offset in this method.
HRESULT GetMethodLocationForPC(ULONG ulPC, IMethodLocation **ppiml)
[in] ulPC | The interpreted bytecode offset for which the method location is requested. |
[out] ppiml | Returns the method location for the given interpreted bytecode offset in this method. |
S_OK Success.
E_OUTOFMEMORY Insufficient memory.
The Microsoft VM will not validate that the given offset corresponds to the beginning of a bytecode instruction. A method location can be obtained for any offset within the method’s bytecodes.