NtProtectVirtualMemory (ntdll)
Last changed: 189.203.95.71

.
Summary
Changes the memory permissions of a page in the current or a remote process

C# Signature:

[DllImport("ntdll.dll", SetLastError=true)]
static extern NTSTATUS NtProtectVirtualMemory(IntPtr ProcessHandle, ref IntPtr BaseAddress, ref UInt32 NumberOfBytesToProtect, UInt32 NewAccessProtection, ref UInt32 OldAccessProtection);

Boo Signature:

[DllImport("ntdll.dll", SetLastError : true)]
def NtProtectVirtualMemory(ProcessHandle as IntPtr, ref BaseAddress as IntPtr, ref NumberOfBytesToProtect as UInt32, NewAccessProtection as UInt32, ref OldAccessProtection as UInt32) as NTSTATUS:
     pass

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation