.Net equivalents to writeprocessmemory and readprocessmemory

Are there any equivalents to these win32 apis? Thanx in advance.
[64 byte] By [Havoc] at [2008-2-1]
# 1

No there is no equivalent in .NET of these methods.

What are you trying to achieve? And perhaps we could suggest alternatives.

Tip: If you want to find alternatives for Win32 methods in the .NET Framework, check out the Microsoft Win32 to Microsoft .NET Framework API Map:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/win32map.asp

Although beware that it hasn't been updated for 2.0 as of yet.

DavidM.Kean at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 2
This article should help you out..

http://www.codeproject.com/csharp/freecellreader.asp
Ray at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 3
I'm actually into game hacking and my dad just got me vb.net and I thought id give .net a try but I can still use my win32. Thnx anyway, I'll read that webpage.
Havoc at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 4

If you are going to be using Win32 from .NET then take a look at this website:
http://www.pinvoke.net/

It has loads of samples and ready to use snippets.

Regards,
Vikram
http://dotnetupdate.blogspot.com/

Vikram at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 5
Havoc wrote:
Are there any equivalents to these win32 apis? Thanx in advance.

Havoc,

There are no equivalents in the .NET framework for these APIs. You will have to call them through the P/Invoke layer in order to call them. A great resource for finding declarations for Win32 APIs is:

http://www.pinvoke.net

I've searched for both ReadProcessMemory and WriteProcessMemory and they are both there.

Hope this helps.

- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com

casperOne at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 6
Thanks for the help guys Smile
Havoc at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified