DavidTiger
New member
- Joined
- Jul 24, 2009
- Messages
- 4
- Programming Experience
- 5-10
HI, Im having trouble writing different values types to memory, for a particular exe
Using the code below will allow me to write a value of 4 Bytes correctly but I also need to write a Float value.
Which this code allows me to write a Float value correctly
Is there any way I can have both of these, to allow me to write 4 byte integers as well as Float Values?
-Tiger
Using the code below will allow me to write a value of 4 Bytes correctly but I also need to write a Float value.
VB.NET:
Public Declare Function WriteProcessMemory Lib "kernel32" _
(ByVal hProcess As Integer, _
ByVal lpBaseAddress As Integer, _
ByRef lpBuffer As Long, _
ByVal nSize As Integer, _
ByRef lpNumberOfBytesWritten As Integer) As Integer
Which this code allows me to write a Float value correctly
VB.NET:
Public Declare Function WriteProcessMemory Lib "kernel32" _
(ByVal hProcess As Integer, _
ByVal lpBaseAddress As Integer, _
ByRef lpBuffer As Single, _
ByVal nSize As Integer, _
ByRef lpNumberOfBytesWritten As Integer) As Integer
Is there any way I can have both of these, to allow me to write 4 byte integers as well as Float Values?
-Tiger
Last edited: