From bc3e46092b80a84da8e7edca9a6e324eae0a9847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=B6glinger-Stelzer?= Date: Mon, 12 Nov 2018 02:22:04 +0100 Subject: [PATCH] Added comments --- DerpingDrivers/Util/CodeIntegrityHelper.cs | 6 +++++- DerpingDrivers/Util/CodeIntegrityPolicyHelper.cs | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/DerpingDrivers/Util/CodeIntegrityHelper.cs b/DerpingDrivers/Util/CodeIntegrityHelper.cs index c07115f..36ff3cf 100644 --- a/DerpingDrivers/Util/CodeIntegrityHelper.cs +++ b/DerpingDrivers/Util/CodeIntegrityHelper.cs @@ -5,6 +5,9 @@ using PInvoke; namespace DerpingDrivers.Util { + /// + /// Utility class for receiving code integrity states currently enforced. + /// public static class CodeIntegrityHelper { /// @@ -30,8 +33,9 @@ namespace DerpingDrivers.Util Marshal.StructureToPtr(integrity, pIntegrity, false); + // https://www.geoffchappell.com/studies/windows/km/ntoskrnl/api/ex/sysinfo/codeintegrity.htm var status = ntQuerySystemInformation( - 103, + 103, // SystemCodeIntegrityInformation (0x67) pIntegrity, integrity.Length, out _ diff --git a/DerpingDrivers/Util/CodeIntegrityPolicyHelper.cs b/DerpingDrivers/Util/CodeIntegrityPolicyHelper.cs index 72d3501..feaebdd 100644 --- a/DerpingDrivers/Util/CodeIntegrityPolicyHelper.cs +++ b/DerpingDrivers/Util/CodeIntegrityPolicyHelper.cs @@ -6,6 +6,7 @@ namespace DerpingDrivers.Util /// /// Utility class for interaction with Code Integrity Policy settings. /// + /// https://www.geoffchappell.com/notes/security/whqlsettings/index.htm public static class CodeIntegrityPolicyHelper { ///