Click to See Complete Forum and Search --> : virtual memory of a process


Feoggou
June 6th, 2008, 03:43 PM
can I copy the virtual memory of a process into a buffer? (for example, an array of bytes)?

I need this in order to see the values of variables (strings as well), at a moment, of a process.

STLDude
June 6th, 2008, 04:30 PM
And how do you know which memory location corresponds to which variables in your code?

Feoggou
June 15th, 2008, 08:04 AM
actually, now I know what I really want...

the program will have one of few string variables, let's say "aaa", "aab", "aac" or "aad". In the program only one of theese string values exist, which means that a variable of the program has one of theese values. and I need to know which of them it is. how do I do to find it? is there a posibility if I copy the memory into a buffer (here, an array of chars or wchars) and if yes, how can I do that?

please help...

Arjay
June 16th, 2008, 07:02 PM
Can you describe what you are trying to do in more detail?

Reading values out of memory is difficult and unreliable, so if you explain what you are attempting to do, we might be able to suggest some alternatives.

Feoggou
June 17th, 2008, 02:36 AM
well, the main purpose of all this is that I am working on a plugin for winamp that changes the status of Yahoo! Messenger v8 BETA and I need to get somehow the ID with which the user logged in. studying windows and messages with Spy++ did not help at all. And now that I heard about threats I said to myself that this must be the way to get the ID. The solution, in my mind, was this, to copy the memory into a buffer and seek the ID from the ones registered in Windows :(.

Arjay
June 17th, 2008, 01:02 PM
well, the main purpose of all this is that I am working on a plugin for winamp that changes the status of Yahoo! Messenger v8 BETA and I need to get somehow the ID with which the user logged in. studying windows and messages with Spy++ did not help at all. And now that I heard about threats I said to myself that this must be the way to get the ID. The solution, in my mind, was this, to copy the memory into a buffer and seek the ID from the ones registered in Windows :(.I don't know of a reliable way to do this by reading the memory. Perhaps Yahoo! Messenger v8 has an developer SDK that allows you to interface with it?