Exemplo n.º 1
0
 /// <summary>Initializes a new instance of the <see cref="MemoryPointer" /> class.</summary>
 /// <param name="process">The reference of the <see cref="IProcess"></see></param>
 /// <param name="objPtr">A pointer to the location where the pointer points in the remote process.</param>
 public MemoryPointer(IProcess process,
                      ObjPtr objPtr)
 {
     // Save the parameters
     Process     = process;
     BaseAddress = new IntPtr(objPtr.ReadInstanceAddress(process.Memory) + objPtr.Offset);
 }
Exemplo n.º 2
0
 public OffsetPtr(ObjPtr objPtr,
                  int offset = 0)
 {
     ObjectPtr = objPtr;
     Offset    = offset;
 }