Results 1 to 1 of 1
  1. #1
    Ell0ll's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    62
    Reputation
    10
    Thanks
    4

    Question Find memory addresses that match my value ?

    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
    Last edited by Ell0ll; 04-11-2013 at 08:55 PM.

Similar Threads

  1. [Help] How To Find Memory Address ONLY WITH AN VALUE on vb
    By lilking972 in forum Visual Basic Programming
    Replies: 3
    Last Post: 04-17-2013, 03:46 PM
  2. [Help] I need a little information on finding memory addresses
    By VirtualDUDE in forum General Game Hacking
    Replies: 2
    Last Post: 05-16-2011, 01:34 PM
  3. Replies: 2
    Last Post: 07-13-2010, 08:53 AM
  4. finding memory addresses
    By plan in forum Suggestions, Requests & General Help
    Replies: 1
    Last Post: 05-30-2010, 12:12 PM
  5. Finding Memory Values
    By [code] in forum Visual Basic Programming
    Replies: 4
    Last Post: 06-22-2009, 05:09 AM