static void Main(string[] args) { ReadWriteMem mem = new ReadWriteMem("RocketLeague.exe"); /*ReadWriteMem.ReadProcessMemory((int)processHandle, 0xD5369227FC, buffer, buffer.Length, ref bytesRead); * * Console.WriteLine(Encoding.Unicode.GetString(buffer) + * " (" + bytesRead.ToString() + "bytes)"); * Console.ReadLine(); */ }
public ReadWriteMem(string exeName) { PROCESS_ALL_ACCESS_FINAL = STANDARD_RIGHTS_REQUIRED + SYNCHRONIZE + "0xFFF"; rocketLeagueP = Process.GetProcessesByName(exeName)[0]; processHandle = ReadWriteMem.OpenProcess(PROCESS_WM_READ, false, rocketLeagueP.Id); }
public PlayHelper(string xname) { exeName = xname; rwm = new ReadWriteMem(exeName); }