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