#ifndef _NTPSAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* The MANAGE_WRITES_TO_EXECUTABLE_MEMORY structure controls write permissions to executable memory
* for processes and threads, and provides a signal for kernel write events.
*/
typedef struct _MANAGE_WRITES_TO_EXECUTABLE_MEMORY
{
ULONG Version : 8; // The version of the structure.
ULONG ProcessEnableWriteExceptions : 1; // Enables write exceptions for the process.
ULONG ThreadAllowWrites : 1; // Allows the thread to write to executable memory.
ULONG Spare : 22; // Reserved for future use.
HANDLE KernelWriteToExecutableSignal; // Pointer to kernel signal for write-to-executable events (19H1+).
} MANAGE_WRITES_TO_EXECUTABLE_MEMORY, *PMANAGE_WRITES_TO_EXECUTABLE_MEMORY;
View code on GitHub
No description available.