Added PeHeaderReader class, which is used to check whether an application is CUI. This fixes the issue introduced in e0eb8c8.

This commit is contained in:
kerams
2014-04-12 13:01:29 +02:00
parent c36b5c77fc
commit bdf57b5203
4 changed files with 598 additions and 10 deletions

View File

@@ -12,9 +12,9 @@ namespace Wox.Helper
{
var window = Application.Current.Windows.OfType<Window>().FirstOrDefault(x => x.GetType() == typeof(T))
?? (T)Activator.CreateInstance(typeof(T), args);
Application.Current.MainWindow.Hide();
window.Show();
window.Focus();
Application.Current.MainWindow.Hide();
return (T)window;
}