reading memory from proccess problem! [modified]
-
hi, First of all a screenshot http://img131.imageshack.us/img131/5797/problemiovg8.png[^] i am using the DLL from this artical (http://www.codeproject.com/csharp/minememoryreader.asp[^]) To read memory from a rollercoaster game, to get lateral and acceleration Gs, these values are in the form of a double. in a memory scanner i have froze one of the values to "0.1" for testing purposes but when i read the memory address from VB.NET it reads it as "154153153153153153185630003217311321963" !!! i am very confused about this, is there anyone here that has a clue? also, does anyone know of other DLLs that can do the same job?
Private Sub Timer1\_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick RichTextBox1.Clear()
' Choose process
Dim myProcesses As System.Diagnostics.Process() =
System.Diagnostics.Process.GetProcessesByName("NoLimitsSimulator")'Load it to memory reader
mem.ReadProcess = myProcesses(0)'open it
mem.OpenProcess()'decs
Dim out As Int32
Dim current
Dim memory() As Byte
'new pointer
Dim loc As IntPtr
loc = "5581752"
'Read The Memory
memory = mem.ReadProcessMemory(loc, 16, out)'Return Value
'these al like this because i was experimenting!
RichTextBox1.Text = RichTextBox1.Text & memory(0)
RichTextBox1.Text = RichTextBox1.Text & memory(1)
RichTextBox1.Text = RichTextBox1.Text & memory(2)
RichTextBox1.Text = RichTextBox1.Text & memory(3)
RichTextBox1.Text = RichTextBox1.Text & memory(4)
RichTextBox1.Text = RichTextBox1.Text & memory(5)
RichTextBox1.Text = RichTextBox1.Text & memory(6)
RichTextBox1.Text = RichTextBox1.Text & memory(7)
RichTextBox1.Text = RichTextBox1.Text & memory(8)
RichTextBox1.Text = RichTextBox1.Text & memory(9)
RichTextBox1.Text = RichTextBox1.Text & memory(10)
RichTextBox1.Text = RichTextBox1.Text & memory(11)
RichTextBox1.Text = RichTextBox1.Text & memory(12)
RichTextBox1.Text = RichTextBox1.Text & memory(13) -
hi, First of all a screenshot http://img131.imageshack.us/img131/5797/problemiovg8.png[^] i am using the DLL from this artical (http://www.codeproject.com/csharp/minememoryreader.asp[^]) To read memory from a rollercoaster game, to get lateral and acceleration Gs, these values are in the form of a double. in a memory scanner i have froze one of the values to "0.1" for testing purposes but when i read the memory address from VB.NET it reads it as "154153153153153153185630003217311321963" !!! i am very confused about this, is there anyone here that has a clue? also, does anyone know of other DLLs that can do the same job?
Private Sub Timer1\_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick RichTextBox1.Clear()
' Choose process
Dim myProcesses As System.Diagnostics.Process() =
System.Diagnostics.Process.GetProcessesByName("NoLimitsSimulator")'Load it to memory reader
mem.ReadProcess = myProcesses(0)'open it
mem.OpenProcess()'decs
Dim out As Int32
Dim current
Dim memory() As Byte
'new pointer
Dim loc As IntPtr
loc = "5581752"
'Read The Memory
memory = mem.ReadProcessMemory(loc, 16, out)'Return Value
'these al like this because i was experimenting!
RichTextBox1.Text = RichTextBox1.Text & memory(0)
RichTextBox1.Text = RichTextBox1.Text & memory(1)
RichTextBox1.Text = RichTextBox1.Text & memory(2)
RichTextBox1.Text = RichTextBox1.Text & memory(3)
RichTextBox1.Text = RichTextBox1.Text & memory(4)
RichTextBox1.Text = RichTextBox1.Text & memory(5)
RichTextBox1.Text = RichTextBox1.Text & memory(6)
RichTextBox1.Text = RichTextBox1.Text & memory(7)
RichTextBox1.Text = RichTextBox1.Text & memory(8)
RichTextBox1.Text = RichTextBox1.Text & memory(9)
RichTextBox1.Text = RichTextBox1.Text & memory(10)
RichTextBox1.Text = RichTextBox1.Text & memory(11)
RichTextBox1.Text = RichTextBox1.Text & memory(12)
RichTextBox1.Text = RichTextBox1.Text & memory(13)Why the quotes around the number - that makes it a string... loc = "5581752" loc = New IntPtr(5581752)
'--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd
-
Why the quotes around the number - that makes it a string... loc = "5581752" loc = New IntPtr(5581752)
'--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd
-
sorry for double post, ok.. it seems to read 4 byte numbers ok (not doubles) but when it goes over 255/256 (dont know wich) it rolls over to 100 o 0100 !! so i dont know what this is doing.. but is it just chucking it out in a different format?
Thanks, Terence