SolvedWriteProcessMemory does not work

Posts 1–6 of 6 · Page 1 of 1
WriteProcessMemory does not work
i use this
Code:
Imports System.Text
Imports System.Collections.Generic
Imports System.Runtime.InteropServices
Public Class Class1
    Dim name As String = "gta3"
    Dim address As Integer = &H5F2D58
    Dim value As Integer = 0
    Private WriteProcessMemory()
End Class
after i export the dll and inject it to gta 3, it doesnt work. the framelimiter is not being turned off

why?
i made this because i want to begin creating dll hacks for gta 3 and lu..
you're not telling the function to do anything. you only had declared it
Did you even declare WriteProcessMemory correctly or imported those Write/Readmemory .DLL?
Quote Originally Posted by HWID View Post
Did you even declare WriteProcessMemory correctly or imported those Write/Readmemory .DLL?
thats the problem, i do not know how to do it, could you provide me a solution for this as im a begginer ? please.. i was asking for this for years and didnt receive a true solution
Quote Originally Posted by Kewun1 View Post
thats the problem, i do not know how to do it, could you provide me a solution for this as im a begginer ? please.. i was asking for this for years and didnt receive a true solution
Private Declare Function WriteProcessMemoryInteger Lib "kernel32" Alias "WriteProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer



hProcess = The process you want to read from. Duh. -- handle returned by OpenProcess()

lpBaseAddress = The address you want to read (or start reading at) -- you can read as many bytes as you want. not just 1 address at a time!

lpBuffer = The byte array where ReadProcessMemory stores the data it reads

nSize = How many bytes to read

lpNumberOfBytesRead = Actual number of bytes read (if this isn't == iSize, there was a partial error!)
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?