0

I want to make a program which stores the value at a given static memory address (for example 0x1F2), so that I can later Readprocessmemory from this address using another program and get the variable value.

How can I do that in .net and C#?

3
  • 3
    What problem you're trying to solve? There are better inter process communication techniques available. Commented Sep 18, 2015 at 12:34
  • What would these techniques be? Commented Sep 18, 2015 at 12:36
  • 1
    NamedPipes, Memory mapped files, sockets, wcf, msmq, etc. Choose whichever suits you.. Commented Sep 18, 2015 at 12:44

1 Answer 1

3

Instead of hard-coding a specific memory address, you can use Memory Mapped Files to share a portion of memory between processes.

There's more information on MSDN here:

https://msdn.microsoft.com/en-us/library/dd997372.aspx

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.