NtProtectVirtualMemory

[DllImport("ntdll.dll", ExactSpelling = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
public static extern unsafe NTSTATUS NtProtectVirtualMemory(
    HANDLE ProcessHandle,
    void* BaseAddress,
    uint* NumberOfBytesToProtect,
    uint NewAccessProtection,
    uint* OldAccessProtection);

PAGE_PROTECTION_FLAGS

Last updated