IDkmClrDecompiler177.Decompile 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.Clr.DkmClrModuleInstance clrModuleInstance, Microsoft.VisualStudio.Debugger.DkmDecompilerMode mode, out string? errorMessage, out int hR);
abstract member Decompile : Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance * Microsoft.VisualStudio.Debugger.DkmDecompilerMode * string * int -> unit
Public Sub Decompile (clrModuleInstance As DkmClrModuleInstance, mode As DkmDecompilerMode, ByRef errorMessage As String, ByRef hR As Integer)

Parameters

clrModuleInstance
DkmClrModuleInstance

[In] 'DkmClrModuleInstance' is used for modules which are loaded into the Common Language Runtime.

mode
DkmDecompilerMode

[In] Indicates whether the module should be decompiled immediately or on demand.

errorMessage
String

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

hR
Int32

[Out] HResult to return to the caller.

Applies to