Inheritance: Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid
コード例 #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);
        }
コード例 #2
0
ファイル: Module.cs プロジェクト: aganonki/HackTools
 public Module(SafeMemoryHandle handle, ProcessModule module, bool internalMem)
     : base(handle,module.BaseAddress, internalMem)
 {
     ThisModule = module;
 }
コード例 #3
0
ファイル: NativeMethods.cs プロジェクト: aganonki/HackTools
 public static extern bool WriteProcessMemory(SafeMemoryHandle hProcess, IntPtr lpBaseAddress, byte[] lpBuffer,
     int nSize, out int lpNumberOfBytesWritten);
コード例 #4
0
ファイル: NativeMethods.cs プロジェクト: aganonki/HackTools
 public static extern bool VirtualProtectEx(SafeMemoryHandle hProcess, IntPtr lpAddress, int dwSize,
     MemoryProtectionFlags flNewProtect, out MemoryProtectionFlags lpflOldProtect);
コード例 #5
0
ファイル: NativeMethods.cs プロジェクト: aganonki/HackTools
 public static extern bool ReadProcessMemory(SafeMemoryHandle hProcess, IntPtr lpBaseAddress,
     [Out] byte[] lpBuffer, int dwSize, out IntPtr lpNumberOfBytesRead);