Table of Contents

Method GetThreadContext

Namespace
Microsoft.Samples.Debugging.Native
Assembly
NativeDebugWrappers.dll

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 IntPtr

pointer to buffer to get the context

sizeBufferBytes int

size 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.