Jump to content
  • Advertisement
Sign in to follow this  
MiXen

Read data from specified adress of memory.

This topic is 1232 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

I need to get data from specified adress of memory. I have adress in LPCVOID variable. Next I need to save this data to new adress of memory. How can I do it? I add, that I done it in Windows. Thank you for any help.

Share this post


Link to post
Share on other sites
Advertisement

No, I don't mean about copying data from one adress to another. I want to get a variable with data, next I want to save it to another adress, not the other way.

Share this post


Link to post
Share on other sites
You are not making any sense. Perhaps you can give us some context, so we can understand what you are asking.

Share this post


Link to post
Share on other sites

He doesn't want to read and write, he wants to read and write.


He doesn't want to "he doesn't want to read and write, he wants to read and write", he wants to "he doesn't want to read and write, he wants to read and write" with variables.

Share this post


Link to post
Share on other sites

 

He doesn't want to read and write, he wants to read and write.


He doesn't want to "he doesn't want to read and write, he wants to read and write", he wants to "he doesn't want to read and write, he wants to read and write" with variables.

 

 

Dynamically.

 

(I think he's asking why he can't deref a void pointer.)

Edited by Khatharr

Share this post


Link to post
Share on other sites

If it's a single value rather than an array of values then you can just cast it. In any case, he needs to put more effort into explaining what he's talking about before we should start trying to answer him.

Edited by Khatharr

Share this post


Link to post
Share on other sites

OK, so I need a data, because I must replace some functions, that generate this daa and save to my specyfied adress of memory. I want to read data from memory in that way, I can read this from the debugger. Then I will create function, that save this static definied data to the memory thought eg. WriteProcessMemory. I think that my data is a type of array of values. How can I do it? Should I use a ReadProcessMemory?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!