public bool Attach(Process wowProcess) { Process = wowProcess; if (Process == null || Process.HasExited) { return(false); } ProcessHandle = OpenProcess(ProcessAccessFlags.All, false, wowProcess.Id); if (ProcessHandle == IntPtr.Zero) { return(false); } Fasm = new ManagedFasm(ProcessHandle); MemoryAllocations.Clear(); return(true); }