Home > Software engineering > Consult, how to read and write memory data in VB6.0 by use environment?
Consult, how to read and write memory data in VB6.0 by use environment?
Time:10-19
As title, in the process of programming to read values specify the location of the memory, I don't know what to do? Address 0 x42340000.
CodePudding user response:
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any Source, As Any, ByVal Length As Long)
Dim aBuffer (31) as byte Call CopyMemory (abuffer (0), byval & amp; H42340000, 27) 'starting address 0 x42340000 place, 27 byte read content in aBuffer
But I think you 0 x42340000 seem to say is "third party" program? If it is, use the ReadProcessMemory () and so on several other across processes read API,
CodePudding user response:
In A program called Declare Function YaLiOne Lib "RBIC1_VB. DLL" Alias "OutLin" (ByVal Zp1m As Single, ByVal Zp2m As Single, ByVal As A Single, ByVal B As Single, c0 As Long, c1 As Long) As Boolean; C prototype for DLLDIR BOOL OutLin (float Zp1m, float Zp2m, float A, float B, float * C0, C1 float *); In the event of known c0 under the premise of AD=1110704128, get the value of c0? Thank you master!