public MemoryHandler(int ProcessId) { var process = RemoteProcess.GetById(ProcessId); if (process == null) { throw new MemoryException("Process {0} not found", ProcessId); } SetProcess(process); }