Gets the value of the instruction pointer and a bitwise combination value that describes how the value of the instruction pointer was obtained.
HRESULT GetIP ( [out] ULONG32 *pnOffset, [out] CorDebugMappingResult *pMappingResult );
[out] The value of the instruction pointer.
[out] A pointer to a bitwise combination of the CorDebugMappingResult enumeration values that describe how the value of the instruction pointer was obtained.
The value of the instruction pointer is the stack frame's offset into the function's Microsoft intermediate language (MSIL) code. If the stack frame is active, this address is the next instruction to execute. If the stack frame is not active, this address is the next instruction to execute when the stack frame is reactivated.
If this frame is a just-in-time (JIT) compiled frame, the value of the instruction pointer will be determined by mapping backwards from the actual native instruction pointer, so the value may be only approximate.
Platforms: See System Requirements.
Header: CorDebug.idl, CorDebug.h
.NET Framework Versions: Available since 1.0