public short ReadInt16(IRemoteProcess remoteProcess, MemoryMap memoryMap) { Contract.Requires<ArgumentNullException>(remoteProcess != null); Contract.Requires<ArgumentNullException>(memoryMap != null); throw new NotImplementedException(); }
public byte[] Read(IRemoteProcess remoteProcess, MemoryMap memoryMap, int size) { Contract.Requires<ArgumentNullException>(remoteProcess != null); Contract.Requires<ArgumentNullException>(memoryMap != null); throw new NotImplementedException(); }
public MemoryMap(MemoryMap baseMap, params int[] offsets) { Contract.Requires<ArgumentNullException>(baseMap != null); Contract.Requires<ArgumentNullException>(offsets != null); this.dllName = baseMap.DllName; this.offsets = baseMap.Offsets.Concat(offsets).ToArray(); }
static MemoryMaps() { DynelInt = new MemoryMap(N3Dll, 0x5C4C0, 0x84); identityTypeInt = new MemoryMap(DynelInt, 0x14); identityValueInt = new MemoryMap(DynelInt, 0x18); NameInt = new MemoryMap(InterfacesDll, 0x31AE0); }
private IntPtr GetAddress(IRemoteProcess remoteProcess, MemoryMap memoryMap) { Contract.Requires <ArgumentNullException>(remoteProcess != null); Contract.Requires <ArgumentNullException>(memoryMap != null); var module = remoteProcess.Modules.FirstOrDefault( m => string.Equals(m.Name, memoryMap.DllName, StringComparison.OrdinalIgnoreCase)); if (module == null) { return(IntPtr.Zero); } return(memoryMap.Offsets.Skip(1) .Aggregate( module.BaseAddress + memoryMap.Offsets.First(), (current, offset) => (IntPtr)(this.readProcessMemory.ReadInt32(remoteProcess.Handle, current) + offset))); }
public string ReadString(IRemoteProcess remoteProcess, MemoryMap memoryMap, int? length = null) { Contract.Requires<ArgumentNullException>(remoteProcess != null); Contract.Requires<ArgumentNullException>(memoryMap != null); Contract.Requires<ArgumentOutOfRangeException>(length == null || length >= 0); throw new NotImplementedException(); }
public ushort ReadUInt16(IRemoteProcess remoteProcess, MemoryMap memoryMap) { var address = this.GetAddress(remoteProcess, memoryMap); return this.readProcessMemory.ReadUInt16(remoteProcess.Handle, address); }
public string ReadString(IRemoteProcess remoteProcess, MemoryMap memoryMap, int? length = null) { var address = this.GetAddress(remoteProcess, memoryMap); return this.readProcessMemory.ReadString(remoteProcess.Handle, address, length); }
public float ReadSingle(IRemoteProcess remoteProcess, MemoryMap memoryMap) { var address = this.GetAddress(remoteProcess, memoryMap); return this.readProcessMemory.ReadSingle(remoteProcess.Handle, address); }
public byte[] Read(IRemoteProcess remoteProcess, MemoryMap memoryMap, int size) { var address = this.GetAddress(remoteProcess, memoryMap); return this.readProcessMemory.Read(remoteProcess.Handle, address, size); }
private IntPtr GetAddress(IRemoteProcess remoteProcess, MemoryMap memoryMap) { Contract.Requires<ArgumentNullException>(remoteProcess != null); Contract.Requires<ArgumentNullException>(memoryMap != null); var module = remoteProcess.Modules.FirstOrDefault( m => string.Equals(m.Name, memoryMap.DllName, StringComparison.OrdinalIgnoreCase)); if (module == null) { return IntPtr.Zero; } return memoryMap.Offsets.Skip(1) .Aggregate( module.BaseAddress + memoryMap.Offsets.First(), (current, offset) => (IntPtr)(this.readProcessMemory.ReadInt32(remoteProcess.Handle, current) + offset)); }
public string ReadString(IRemoteProcess remoteProcess, MemoryMap memoryMap, int?length = null) { var address = this.GetAddress(remoteProcess, memoryMap); return(this.readProcessMemory.ReadString(remoteProcess.Handle, address, length)); }
public float ReadSingle(IRemoteProcess remoteProcess, MemoryMap memoryMap) { var address = this.GetAddress(remoteProcess, memoryMap); return(this.readProcessMemory.ReadSingle(remoteProcess.Handle, address)); }
public long ReadInt64(IRemoteProcess remoteProcess, MemoryMap memoryMap) { var address = this.GetAddress(remoteProcess, memoryMap); return(this.readProcessMemory.ReadInt64(remoteProcess.Handle, address)); }
public byte[] Read(IRemoteProcess remoteProcess, MemoryMap memoryMap, int size) { var address = this.GetAddress(remoteProcess, memoryMap); return(this.readProcessMemory.Read(remoteProcess.Handle, address, size)); }
public long ReadInt64(IRemoteProcess remoteProcess, MemoryMap memoryMap) { var address = this.GetAddress(remoteProcess, memoryMap); return this.readProcessMemory.ReadInt64(remoteProcess.Handle, address); }
public uint ReadUInt32(IRemoteProcess remoteProcess, MemoryMap memoryMap) { var address = this.GetAddress(remoteProcess, memoryMap); return(this.readProcessMemory.ReadUInt32(remoteProcess.Handle, address)); }