Table of Contents

Class ContextAllocator

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

Serves as the global method for creating a platform-specific context

public static class ContextAllocator
Inheritance
ContextAllocator

Methods

GenerateContext()

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

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.

GetArchitectureFromPid(int)

Determines the platform architecture the OS is running a process in. Wow mode processes will report INTEL (32bit) otherwise all processes run in the native system architecture