Method GetThreadContext
GetThreadContext()
Safe way to get a thread's context
public INativeContext GetThreadContext()
Returns
- INativeContext
a native context object representing the thread context
GetThreadContext(IntPtr, int)
Get the raw thread context as a buffer or bytes. This is dangerous.
public void GetThreadContext(IntPtr buffer, int sizeBufferBytes)
Parameters
buffer
IntPtrpointer to buffer to get the context
sizeBufferBytes
intsize of the buffer in bytes. Must be large enough to hold the context. For variable-size contexts, caller may need to check context flags afterwards to determine how large the context really is.
Remarks
Context may not be available in the dump.