c# memory class
As the title says I am searching for a simple c# class.
As I know it from Visual Basic one can add a module and "call" the methods in the main form. So i am searching for an easy working c# class which can read and write memory adresses.
Sure, I already searched 4 times in this forum and uncountable times in google for a memory class and I already found results, but not the resulst I want. The classes/codes I found were just too complex for me, because I want to start with c# and already have one year experiences in Java and computer science. According to memory hacking I want to go step by step and so I am searching for the easiest memory class. Here are some cutouts from the class I used in Visual Basic before. Only that you know: this module is not written by me, I just used it to make little Trainers for games like Modern Warfare 2 and I am not that much familiar with coding to write a c# class on my own.
Thanks a lot for your attention.
As I know it from Visual Basic one can add a module and "call" the methods in the main form. So i am searching for an easy working c# class which can read and write memory adresses.
Sure, I already searched 4 times in this forum and uncountable times in google for a memory class and I already found results, but not the resulst I want. The classes/codes I found were just too complex for me, because I want to start with c# and already have one year experiences in Java and computer science. According to memory hacking I want to go step by step and so I am searching for the easiest memory class. Here are some cutouts from the class I used in Visual Basic before. Only that you know: this module is not written by me, I just used it to make little Trainers for games like Modern Warfare 2 and I am not that much familiar with coding to write a c# class on my own.
Code:
#Region "Write"
'Writes 1 Byte
Public Sub Write_Byte(ByVal address As Int32, ByVal value As Byte)
Dim process_handle As Int32
process_handle = OpenProcess(ACCESS_RIGHTS_ALL, False, process_id)
If process_handle <> 0 Then
WPM(process_handle, address, value, 1, 0)
End If
CloseHandle(process_handle)
End Sub
#End Region
#Region "Read"
'Reads 1 Byte
Public Function Read_Byte(ByVal address As Int32) As Byte
Dim process_handle As Int32, value As Byte
process_handle = OpenProcess(ACCESS_RIGHTS_ALL, False, process_id)
If process_handle <> 0 Then
RPM(process_handle, address, value, 1, 0)
End If
CloseHandle(process_handle)
Return value
End Function
#End Region
'to write an adress:
Write_Byte(&H12345, 120) 'adress and value, just do this methodcall with a timer

The point is, that i sure coukd take a book istea, but I think the best way to learn is learning by doing and for that one need materials, like tutorials, classes or something else. I asked for a class because a tutorial would be useless for me because i have one year experiences in Java and Java and c# are not that much different.