|
|
@ -20,6 +20,7 @@ using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.IO; |
|
|
|
using System.IO; |
|
|
|
using System.Text; |
|
|
|
using System.Text; |
|
|
|
|
|
|
|
using System.Windows; |
|
|
|
using ICSharpCode.Decompiler.Metadata; |
|
|
|
using ICSharpCode.Decompiler.Metadata; |
|
|
|
|
|
|
|
|
|
|
|
namespace ICSharpCode.ILSpy |
|
|
|
namespace ICSharpCode.ILSpy |
|
|
@ -38,7 +39,11 @@ namespace ICSharpCode.ILSpy |
|
|
|
IAssemblyEnum assemblyEnum = null; |
|
|
|
IAssemblyEnum assemblyEnum = null; |
|
|
|
IAssemblyName assemblyName = null; |
|
|
|
IAssemblyName assemblyName = null; |
|
|
|
|
|
|
|
|
|
|
|
Fusion.CreateAssemblyEnum(out assemblyEnum, null, null, 2, 0); |
|
|
|
uint result = unchecked((uint)Fusion.CreateAssemblyEnum(out assemblyEnum, null, null, 2, 0)); |
|
|
|
|
|
|
|
if (result == 0x80070005) { |
|
|
|
|
|
|
|
MessageBox.Show($"Cannot access GAC, please restart with elevated privileges! (HRESULT 0x{result:X})", "ILSpy", MessageBoxButton.OK, MessageBoxImage.Error); |
|
|
|
|
|
|
|
yield break; |
|
|
|
|
|
|
|
} |
|
|
|
while (assemblyEnum.GetNextAssembly(out applicationContext, out assemblyName, 0) == 0) { |
|
|
|
while (assemblyEnum.GetNextAssembly(out applicationContext, out assemblyName, 0) == 0) { |
|
|
|
if (assemblyName == null) continue; |
|
|
|
if (assemblyName == null) continue; |
|
|
|
uint nChars = 0; |
|
|
|
uint nChars = 0; |
|
|
|