Recently I have been working on a little project of mine, which is Memory reading/writing in java for native games (C/C++/etc).
At the moment I have a base where I can read and write to memory of games, but I now need a way to get the Base address of the running application. For example:
I have a list of pointers that I have collected using Cheat Engine and its Pointer searcher.
These are stable and work each time the game reloads.
The problem I am facing now, is the first pointer uses the base address of the program (which changes every time the program restarts):
"ac_client.exe"+000DF73C
I am in need of a way to get the base value of "ac_client.exe" using JNA.
I have done a lot of research and found a few ways to do it in C++, but my knowledge of C/C++ is pretty limited.. I am finding it difficult to convert it to Java using JNA and I thought I would ask here and see if anyone would be able to be of assistance or know of alternate ways of doing such a feat.
Thanks for any help in advance,
Kaden.
[EDIT]
Read my solution bellow! thanks for the help.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…