[DllImport("ntdll.dll", SetLastError = true)] public static extern int NtProtectVirtualMemory( IntPtr ProcessHandle, ref IntPtr BaseAddress, ref uint RegionSize, uint NewProtect, out uint OldProtect );
Microsoft documentation: Link
Last updated 1 year ago