Table of Contents

Method GenerateContext

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

GenerateContext()

Generates a new context object for the platform in which Mdbg is running.

public static INativeContext GenerateContext()

Returns

INativeContext

Newly allocated platform specific context

Exceptions

InvalidOperationException

Throws if running on an unsupported platform

GenerateContext(ProcessorArchitecture)

Generates a new context object for the current platform. This does NOT account for Wow mode processes. This method should be primarily used for dump debugging.

public static INativeContext GenerateContext(ProcessorArchitecture architecture)

Parameters

architecture ProcessorArchitecture

The architecture for which to create the context

Returns

INativeContext

Newly allocated platform specific context.

Exceptions

InvalidOperationException

Throws if running on an unsupported platform