1
0

Added comments

This commit is contained in:
Benjamin Höglinger-Stelzer 2018-11-12 02:22:04 +01:00
parent ae6eee2a5b
commit bc3e46092b
2 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,9 @@ using PInvoke;
namespace DerpingDrivers.Util namespace DerpingDrivers.Util
{ {
/// <summary>
/// Utility class for receiving code integrity states currently enforced.
/// </summary>
public static class CodeIntegrityHelper public static class CodeIntegrityHelper
{ {
/// <summary> /// <summary>
@ -30,8 +33,9 @@ namespace DerpingDrivers.Util
Marshal.StructureToPtr(integrity, pIntegrity, false); Marshal.StructureToPtr(integrity, pIntegrity, false);
// https://www.geoffchappell.com/studies/windows/km/ntoskrnl/api/ex/sysinfo/codeintegrity.htm
var status = ntQuerySystemInformation( var status = ntQuerySystemInformation(
103, 103, // SystemCodeIntegrityInformation (0x67)
pIntegrity, pIntegrity,
integrity.Length, integrity.Length,
out _ out _

View File

@ -6,6 +6,7 @@ namespace DerpingDrivers.Util
/// <summary> /// <summary>
/// Utility class for interaction with Code Integrity Policy settings. /// Utility class for interaction with Code Integrity Policy settings.
/// </summary> /// </summary>
/// <remarks>https://www.geoffchappell.com/notes/security/whqlsettings/index.htm</remarks>
public static class CodeIntegrityPolicyHelper public static class CodeIntegrityPolicyHelper
{ {
/// <summary> /// <summary>