Added comments
This commit is contained in:
parent
ae6eee2a5b
commit
bc3e46092b
@ -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 _
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user