Click here to Skip to main content
15,881,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: checksum [modified] Pin
anu_8820-Jul-06 18:33
anu_8820-Jul-06 18:33 
QuestionBig Int Class Pin
JrunkDunc20-Jul-06 16:02
JrunkDunc20-Jul-06 16:02 
AnswerRe: Big Int Class Pin
toxcct20-Jul-06 23:14
toxcct20-Jul-06 23:14 
AnswerRe: Big Int Class Pin
JrunkDunc21-Jul-06 12:49
JrunkDunc21-Jul-06 12:49 
Questionhow to create instance??? [modified] Pin
With_problem20-Jul-06 16:01
With_problem20-Jul-06 16:01 
AnswerRe: how to create instance??? Pin
Christian Graus20-Jul-06 16:43
protectorChristian Graus20-Jul-06 16:43 
AnswerRe: how to create instance??? Pin
ThatsAlok21-Jul-06 0:06
ThatsAlok21-Jul-06 0:06 
QuestionReadProcessMemory and dynamic memory allocation Pin
are_all_nicks_taken_or_what20-Jul-06 12:40
are_all_nicks_taken_or_what20-Jul-06 12:40 
Hi!

Reading the memory in other applications can be quite useful sometimes. It is especially useful for writing trainers.

Now, I have successfully located a couple of variables in my target application. Those variables are mostly strings allocated directly on the stack or through a call to malloc with a constant length. These constant allocations yields constant addresses for my strings. Thus, they can easily be read from my trainer-application using ReadProcessMemory.

However, when I use dynamic memory allocation the offsets between my variables can be of any size. I need to somehow calculate exactly where in the memory my variables will be located. Also, it would be good to know how many bytes one should read (the length of allocated strings etc).

How can I do that? Note that I'm only interested in _reading_ these values. I know there are ASM/Soft-Ice gurus in here! Wink | ;) Could you please point me in the right direction =)

Any help is appreciated!

Thanks!
/Chris
AnswerRe: ReadProcessMemory and dynamic memory allocation Pin
Hamid_RT27-Jul-06 7:56
Hamid_RT27-Jul-06 7:56 
QuestionHow to retrieve USB flash drive mount point Pin
mmhu20-Jul-06 11:51
mmhu20-Jul-06 11:51 
QuestionVectors Pin
BlitzPackage20-Jul-06 11:01
BlitzPackage20-Jul-06 11:01 
AnswerRe: Vectors Pin
Chris Losinger20-Jul-06 11:10
professionalChris Losinger20-Jul-06 11:10 
GeneralRe: Vectors Pin
BlitzPackage20-Jul-06 11:36
BlitzPackage20-Jul-06 11:36 
GeneralRe: Vectors Pin
David Crow20-Jul-06 11:42
David Crow20-Jul-06 11:42 
GeneralRe: Vectors Pin
Chris Losinger20-Jul-06 11:48
professionalChris Losinger20-Jul-06 11:48 
GeneralRe: Vectors Pin
BlitzPackage20-Jul-06 12:00
BlitzPackage20-Jul-06 12:00 
GeneralRe: Vectors Pin
Chris Losinger20-Jul-06 12:41
professionalChris Losinger20-Jul-06 12:41 
Questionalphablend API Pin
lizamathew20-Jul-06 10:49
lizamathew20-Jul-06 10:49 
QuestionForce WM_COMMAND Pin
Andre xxxxxxx20-Jul-06 10:42
Andre xxxxxxx20-Jul-06 10:42 
AnswerRe: Force WM_COMMAND Pin
ThatsAlok20-Jul-06 23:09
ThatsAlok20-Jul-06 23:09 
AnswerRe: Force WM_COMMAND Pin
ThatsAlok20-Jul-06 23:11
ThatsAlok20-Jul-06 23:11 
QuestionRead Lippman C++ Primer - what next? Pin
brett5432120-Jul-06 10:06
brett5432120-Jul-06 10:06 
AnswerRe: Read Lippman C++ Primer - what next? Pin
led mike20-Jul-06 10:57
led mike20-Jul-06 10:57 
AnswerRe: Read Lippman C++ Primer - what next? Pin
earl20-Jul-06 11:55
earl20-Jul-06 11:55 
AnswerRe: Read Lippman C++ Primer - what next? Pin
Christian Graus20-Jul-06 16:45
protectorChristian Graus20-Jul-06 16:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.