public static SymbolHandler CreateFromHandle(IntPtr handle, SymbolOptions options = SymbolOptions.None, string searchPath = null) { if (searchPath == null) { searchPath = GetDefaultSearchPath(); } Win32.SymSetOptions(options); Win32.SymInitialize(handle, searchPath, true).ThrowIfWin32Failed(); return(new SymbolHandler(handle, false)); }
public static SymbolHandler Create(SymbolOptions options = SymbolOptions.CaseInsensitive | SymbolOptions.UndecorateNames, string searchPath = null) { if (Debugger.IsAttached) { options |= SymbolOptions.Debug; } if (searchPath == null) { searchPath = GetDefaultSearchPath(); } Win32.SymSetOptions(options); var handle = new IntPtr(++_instances); Win32.SymInitialize(handle, searchPath, false).ThrowIfWin32Failed(); return(new SymbolHandler(handle, false)); }