I am developing a small simple WinForms C # program with the import of several WinAPI methods, which should manipulate the mmorpg-game window.

In the client of the mmorpg-game there is a health parameter, it is exactly stored in a variable of type float. (It was tested using the cheat engine utility)

Tell me, please, which methods are the easiest to apply here, so that with each new launch of the client, you know exactly where this value is stored in memory.

Upd: It is not clear which of them is passed to the function, and which answers directly, however, they do not need to be changed. What is the easiest way to find this float in memory with every launch? (Using the tools .Net and WinAPI import)

target game window

  • one
    generally speaking, without the help of the user in any way. The process can be loaded into an arbitrary memory area at the choice of the OS, the desired object can be created in a relatively arbitrary memory area belonging to the process chosen by the process algorithms. How do you imagine the search for an abstract number in memory, which in fact, only numbers and stores? Even when scanning for a match with some accuracy, it will take 2+ passes with the indication of new search values ​​on each pass for the drop-outs that did not change from the previous ones found. - rdorn
  • 2
    Even you have as many as 4 values ​​in the picture, which of them is responsible for your parameter directly and is not a copy that was passed to the function or the value of the local variable of the function? - rdorn
  • 2
    Use not an absolute address, but a relative one. For example, the address relative to the beginning of the program. - Alexander Petrov

0