diff --git a/DerpingDrivers/MainWindow.xaml b/DerpingDrivers/MainWindow.xaml
index 6a65c5c..872c484 100644
--- a/DerpingDrivers/MainWindow.xaml
+++ b/DerpingDrivers/MainWindow.xaml
@@ -60,9 +60,9 @@
-
-
+
+
@@ -74,7 +74,20 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/DerpingDrivers/MainWindow.xaml.cs b/DerpingDrivers/MainWindow.xaml.cs
index 60ed4c7..815fe3e 100644
--- a/DerpingDrivers/MainWindow.xaml.cs
+++ b/DerpingDrivers/MainWindow.xaml.cs
@@ -1,7 +1,9 @@
-using System.IO;
+using System.Diagnostics;
+using System.IO;
using System.Reflection;
using System.Text;
using System.Windows.Documents;
+using System.Windows.Navigation;
using System.Xaml;
using DerpingDrivers.Util;
using MahApps.Metro.Controls;
@@ -56,7 +58,7 @@ namespace DerpingDrivers
public string OsUpgradeStatus =>
OsUpgradeDetection.IsGrandfathered ? "In-place upgraded" : "Clean installation";
- public string CodeIntegrityStatus => CodeIntegrityHelper.IsSystemCodeIntegrityEnabled ? "Enabled" : "Disabled";
+ public string TestSigningStatus => CodeIntegrityHelper.IsTestSignEnabled ? "Enabled" : "Disabled";
public string SummaryText =>
"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.";
@@ -88,6 +90,11 @@ namespace DerpingDrivers
.UseSupportedExtensions()
.Build();
}
+
+ private void Web_OnRequestNavigate(object sender, RequestNavigateEventArgs e)
+ {
+ Process.Start(e.Uri.ToString());
+ }
}
internal class MyXamlSchemaContext : XamlSchemaContext
diff --git a/DerpingDrivers/Util/CodeIntegrityHelper.cs b/DerpingDrivers/Util/CodeIntegrityHelper.cs
index 7a62887..a1aef46 100644
--- a/DerpingDrivers/Util/CodeIntegrityHelper.cs
+++ b/DerpingDrivers/Util/CodeIntegrityHelper.cs
@@ -20,7 +20,7 @@ namespace DerpingDrivers.Util
public UInt32 CodeIntegrityOptions;
};
- public static bool IsSystemCodeIntegrityEnabled
+ public static bool IsTestSignEnabled
{
get
{
@@ -37,8 +37,7 @@ namespace DerpingDrivers.Util
SYSTEM_CODEINTEGRITY_INFORMATION integrity;
integrity.Length = (uint)Marshal.SizeOf();
integrity.CodeIntegrityOptions = 0;
-
-
+
Marshal.StructureToPtr(integrity, pIntegrity, false);
var status = ntQuerySystemInformation(
@@ -49,8 +48,8 @@ namespace DerpingDrivers.Util
);
integrity = Marshal.PtrToStructure(pIntegrity);
-
- return (status == 0) && ((integrity.CodeIntegrityOptions & 1) == 1);
+
+ return ((integrity.CodeIntegrityOptions & /* CODEINTEGRITY_OPTION_TESTSIGN */ 0x02) != 0);
}
finally
{