Dim data() As Long, i As Long, j As Long, k As Long
Dim finded As Long, fio As Long
fio = CLng(Text2.Text)
For i = 0 To PageNum - 1
ReDim data(1 To PageSize(i))
ReadProcessMemory hProcess, ByVal BassAddr(i), data(1), PageSize(i), ByVal 0&
For j = 1 To PageSize(i)
If data(j) = fio Then
'List1.AddItem BassAddr(i) + j - 1 '10进制
List1.AddItem Right("00000000" & Hex(BassAddr(i) + j - 1), 8) '16进制
DoEvents
finded = finded + 1
End If
Next
Next
Next
原本的程序是比对Byte
(开启一wordpad,再用本程序与gm8所搜索出的值是一样的)
Dim data() As Byte, i As Long, j As Long, k As Long
Dim finded As Long, fio As Byte
fio = CByte(Text2.Text)
For i = 0 To PageNum - 1
ReDim data(1 To PageSize(i))
ReadProcessMemory hProcess, ByVal BassAddr(i), data(1), PageSize(i), ByVal 0&
For j = 1 To PageSize(i)
If data(j) = fio Then
'List1.AddItem BassAddr(i) + j - 1 '10进制
List1.AddItem Right("00000000" & Hex(BassAddr(i) + j - 1), 8) '16进制
DoEvents
finded = finded + 1
End If
Next
Next
Next