IDkmClrDecompiler173.Decompile(DkmModuleInstance, String, Int32) Method

Definition

Decompiles the code for a module into C# and creates a new portable PDB with this source embedded. All modules that share this symbol file will begin using these updated symbols. Implementations should return S_OK on failure and return the actual HRESULT and any additional error information via the 'HR' and 'ErrorMessage' parameters.

public void Decompile (Microsoft.VisualStudio.Debugger.DkmModuleInstance moduleInstance, out string? errorMessage, out int hR);
abstract member Decompile : Microsoft.VisualStudio.Debugger.DkmModuleInstance * string * int -> unit
Public Sub Decompile (moduleInstance As DkmModuleInstance, ByRef errorMessage As String, ByRef hR As Integer)

Parameters

moduleInstance
DkmModuleInstance

[In] The Module Instance class represent a code bundle (ex: dll or exe) which is loaded into a particular process at a particular location. Module Instance objects are 1:1 with the execution environment's notion of a code bundle. For example, in native code, Module Instance objects are 1:1 with base address.

errorMessage
String

[Out,Optional] Details on errors that occurred during decompilation, if available.

hR
Int32

[Out] HResult to return to the caller.

Applies to