Inheritance: Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid
Ejemplo n.º 1
0
        public MemoryProtection(SafeMemoryHandle handle, IntPtr address, int size,bool @internal = true, MemoryProtectionFlags protection = MemoryProtectionFlags.ExecuteReadWrite)
        {
            BaseAddress = address;
            NewProtection = protection;
            Size = size;
            Internal = @internal;
            Handle = handle;

            OldProtection = ChangeMemoryProtection(protection);
        }
Ejemplo n.º 2
0
 public Module(SafeMemoryHandle handle, ProcessModule module, bool internalMem)
     : base(handle,module.BaseAddress, internalMem)
 {
     ThisModule = module;
 }
Ejemplo n.º 3
0
 public static extern bool WriteProcessMemory(SafeMemoryHandle hProcess, IntPtr lpBaseAddress, byte[] lpBuffer,
     int nSize, out int lpNumberOfBytesWritten);
Ejemplo n.º 4
0
 public static extern bool VirtualProtectEx(SafeMemoryHandle hProcess, IntPtr lpAddress, int dwSize,
     MemoryProtectionFlags flNewProtect, out MemoryProtectionFlags lpflOldProtect);
Ejemplo n.º 5
0
 public static extern bool ReadProcessMemory(SafeMemoryHandle hProcess, IntPtr lpBaseAddress,
     [Out] byte[] lpBuffer, int dwSize, out IntPtr lpNumberOfBytesRead);