By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,319 Members | 1,963 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,319 IT Pros & Developers. It's quick & easy.

WriteMemory / Read Memory / WriteProcessMemory in CSharp?

P: n/a
Hello.

I tried to find a similar Function to WriteMemory, and couldnt find any
memory manipulating functions in dotNET at all.

I now wanted to know if there are any similar functions to the VC++ 6.0
(MFC) ReadMemory and WriteMemory, and WriteProcessMemory functions. As well
as it would be interesting how to get informations about the userspace of a
single process in dotNET (C#).

I already found out some specific things as Process-Object, where i can find
out the Virtual Memory used by the Program.

I would be glad about any information you can give me, because as you may
see, i "just" started developing in the new framework, and i am a bit
confused about the documentation system.

Thank you, STiAT aka Grabler Georg
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
The marshal class lets you manipulate memory (read, write, etc.)

Jerry

"STiAT" <st***@chello.at> wrote in message
news:CH*******************@news.chello.at...
Hello.

I tried to find a similar Function to WriteMemory, and couldnt find any
memory manipulating functions in dotNET at all.

I now wanted to know if there are any similar functions to the VC++ 6.0
(MFC) ReadMemory and WriteMemory, and WriteProcessMemory functions. As well as it would be interesting how to get informations about the userspace of a single process in dotNET (C#).

I already found out some specific things as Process-Object, where i can find out the Virtual Memory used by the Program.

I would be glad about any information you can give me, because as you may
see, i "just" started developing in the new framework, and i am a bit
confused about the documentation system.

Thank you, STiAT aka Grabler Georg

Nov 15 '05 #2

P: n/a
Thank you for your Reply, Jerry.

I found the Marshal class, and read over it quickly. The ReadByte would
fit great, but i have an other problem:

The Userspace i want to write to is of a different Process. So i dont
manipulate data from my own userspace, i want to manipulate a different
Process.

// Getting all Solitare Processes.
Process[] pArray = Process.GetProcessesByName("sol.exe");

Expect i want to read and write of and to the userspace of the pArray[0]
Process. The adress in the userspace is a certain hex-value i want to
read / write to.

Has anyone an idea how to manage that?

TIA,
Grabler Georg aka STiAT
Jerry Ham wrote:
The marshal class lets you manipulate memory (read, write, etc.)

Jerry

"STiAT" <st***@chello.at> wrote in message
news:CH*******************@news.chello.at...
Hello.

I tried to find a similar Function to WriteMemory, and couldnt find any
memory manipulating functions in dotNET at all.

I now wanted to know if there are any similar functions to the VC++ 6.0
(MFC) ReadMemory and WriteMemory, and WriteProcessMemory functions. As


well
as it would be interesting how to get informations about the userspace of


a
single process in dotNET (C#).

I already found out some specific things as Process-Object, where i can


find
out the Virtual Memory used by the Program.

I would be glad about any information you can give me, because as you may
see, i "just" started developing in the new framework, and i am a bit
confused about the documentation system.

Thank you, STiAT aka Grabler Georg



Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.