Click here to Skip to main content
15,890,185 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error Pin
anu_8820-Jul-06 18:25
anu_8820-Jul-06 18:25 
GeneralRe: error Pin
With_problem20-Jul-06 18:57
With_problem20-Jul-06 18:57 
GeneralRe: error Pin
anu_8820-Jul-06 19:19
anu_8820-Jul-06 19:19 
AnswerRe: error Pin
Michael Dunn20-Jul-06 19:12
sitebuilderMichael Dunn20-Jul-06 19:12 
GeneralRe: error Pin
With_problem20-Jul-06 19:19
With_problem20-Jul-06 19:19 
AnswerRe: error Pin
sheetal_0620-Jul-06 21:15
sheetal_0620-Jul-06 21:15 
QuestionHow to get USB device address? Pin
linshi20-Jul-06 17:01
linshi20-Jul-06 17:01 
QuestionSystem-Wide WriteProcessMemory Hook Pin
capricious_00120-Jul-06 16:56
capricious_00120-Jul-06 16:56 
Questionchecksum Pin
thathvamsi20-Jul-06 16:18
thathvamsi20-Jul-06 16:18 
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 

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.