public override MemoryPointer GetProcAddress(string name) { MemoryPointer address = new ExternalMemoryPointer(GameSharpProcess, Kernel32.GetProcAddress(ProcessModule.BaseAddress, name)); if (address == null) { throw new NullReferenceException($"Couldn't find function {name} in module {ProcessModule.ModuleName}"); } return(address); }
public ExternalModulePointer(GameSharpProcess process, ProcessModule processModule) : base(processModule) { GameSharpProcess = process; MemoryPointer = new ExternalMemoryPointer(GameSharpProcess, processModule.BaseAddress); }