This is my code
Code:
Private Declare Function ReadProcessMemory Lib "kernel32" (ByVal Handle As Int32, ByVal Address As Int32, ByRef Value As Byte(), ByVal Size As Int32, ByRef BytesWritten As Int32) As Byte
-----------
Public Function Read_4_bytes(ByVal MyGaMe As Process(), ByVal MyValue As Int32) As Int32
Dim value As Byte() = New Byte(3) {}
Dim process_handle As Int32
process_handle = OpenProcess(ACCESS_RIGHTS_ALL, 0, MyGaMe(0).Id)
For address As Integer = &H0 To &H7FFFFFFE
If process_handle <> 0 Then
ReadProcessMemory(process_handle, address, value, 4, 0)
End If
'Display it on the listbox
If BitConverter.ToInt32(value, 0) = MyValue Then
Return address
End If
CloseHandle(process_handle)
Next
End Function
if someone can help me with this it will be good
or if you can tell me how to start (Find memory addresses that match my value)
cuz now i can read any address or a pointer >> and write any address or a pointer with my value
but now i need to learn how to scan my game to find all addresses that match my value
thanks in advance