Advertisement
rimsky82

trainer- find base address

Apr 17th, 2012
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1.         private bool findSimsComplete()
  2.         {
  3.             Process[] p = Process.GetProcessesByName("Sims");
  4.             if (p.Length != 0)
  5.             {
  6.                 ProcessHandle = (int)OpenProcess(0x1F0FFF, false, p[0].Id);
  7.                 BaseAddress = (int)p[0].MainModule.BaseAddress;
  8.                 return true;
  9.             }
  10.             else return false;
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement