Пример #1
0
 public FindPointerSignature(PointerVersion version, AutoDeref autoDeref, string signature, params int[] relative)
 {
     Version      = version;
     AutoDeref    = autoDeref;
     Signature    = signature;
     BasePtr      = IntPtr.Zero;
     Searcher     = new MemorySearcher();
     LastVerified = DateTime.MaxValue;
     Relative     = relative;
 }
Пример #2
0
 public ProgramPointer(AutoDeref autoDeref, params ProgramSignature[] signatures)
 {
     AutoDeref             = autoDeref;
     this.signatures       = signatures;
     lastID                = -1;
     lastTry               = DateTime.MinValue;
     searcher              = new MemorySearcher();
     searcher.MemoryFilter = delegate(MemInfo info) {
         return((info.State & 0x1000) != 0 && (info.Protect & 0x40) != 0 && (info.Protect & 0x100) == 0);
     };
 }