I'm sorry, but I'm not sure if I understand exactly what you want:
What do you mean with DLL? Do you want to write a DLL that gets injected into a process? If yes: The way I showed above should work.
If not: This is, as far as I know, some Microsoft-Styled C++, right? If that's within your application and you want to read the value of another process, you'll have to use that ReadProcessMemory Function.
Don't forget that you'll have to add the base module address to your Pointer, you can either add it as a constant value which should be 0x40000 in most cases or you can get the address dynamically via GetModuleHandle("NAMEOFYOURGAME")
But first of all. Like snow911 already said. Do you inject your dll into the game-process which contains the code you posted above, or is this an external hack which uses Read- / WriteProcessMemory()?
how to use ReadProcessMemory to get char name with vb???? 06/18/2011 - Perfect World - 2 Replies :handsdown::handsdown::handsdown::handsdown:
I've got an offset but do not know how to use it to read type string,i know just to read type integer.
this my function
Public Shared Sub PointerRead(ByVal Offset As Integer(), ByRef Buffer As Integer)
Try
Dim b As Integer = Nothing
Dim t As Integer = _PerfectWorldBaseAddress
ReadProcessMemory 04/29/2011 - General Coding - 2 Replies Habe ein gutes beispiel für pointer und offsets um internet gefunden doch leider klappt es nur bei dem programm
was auch im video war ich wollte es jetzt mal bei 4story ausprobieren nur leider geht es nicht ( private server )
hier mal das programm #include <iostream>
#include <windows.h>
using namespace std;
//---------------------------------
//Offsets
ReadProcessMemory From Lineage II 03/03/2011 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 8 Replies Hello, This is my second thread, and I hope someone can have some benefit from it.
Why do this? well maybe make an status bar to display health,mana, etc or
maybe you want to write data to the process, But in this article I show how to read.
First of all you need to inculde some files:
#include <Tlhelp32.h> to have access to:
[C++] ReadProcessMemory Text? 09/12/2010 - C/C++ - 5 Replies die frage kommt den pros hier vllt etwas dumm vor, aber
ich befasse mich ja erst seit 2 wochen mit c++:
ich habe folgenden code:
ReadProcessMemory(handle,(LPVOID)address,&text ,sizeof(long),&numBytesRead);
cout << hex << text << "\n";
cout << char(text) << "\n";
ich will in einem spiel einen text auslesen.
der erste wert in der konsole entspricht dem 4 bytes wert in CE.