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
{
/// <summary>
/// Utility class for receiving code integrity states currently enforced.
/// </summary>
public static class CodeIntegrityHelper
{
/// <summary>
@ -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 _

View File

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