update:
I should have put down buffer = ctypes.c_double() instead of buffer =
ctypes.c_double.
Sorry all
On Sat, Oct 7, 2017 at 8:18 PM, Michael C
wrote:
> I am following some examples online such as this one:
>
I am following some examples online such as this one:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/ce0cc398-2b96-4688-b8a4-b5f4c9ebc064/memory-searcher-with-virtualqueryex-and-readprocessmemory?forum=vclanguage
i think I got most of it right, so this following part is what I would like
Oh I am trying to write my own memory scanner, because I thought the Cheat
Engine is pretty neat and I am just trying make one for myself.
Onto the problem, I think what happens with Readprocessmemory is that
BOOL WINAPI ReadProcessMemory(
_In_ HANDLE hProcess,
_In_ LPCVOID lpBaseAddress,
Hi all:
I have the following code, and somehow I must have fed the read process
Memory incorrectly. what the code does is to check a region of memory to
see
whether or not it can be scanned.
mbi.Protect == PAGE_READWRITE and mbi.State == MEM_COMMIT
If this is true,then it proceeds to scan the
On 10/08/2017 11:20 AM, Michael C wrote:
> Hi all:
> Now, I know the problem is not with VirtualQueryEx, because if I comment out
> the red part and just run VirtualQueryEx, it would actually skim through
> all regions
> without a single error.
>
> The red part is the problem.
what red part?
I'll explain better when I get on a pc.
On Oct 8, 2017 12:18 PM, "Michael C" wrote:
> This is the red part
> index = current_address
> end = current_address + mbi.RegionSize
>
> while index < end:
> if ReadProcessMemory(Process,
This is the red part
index = current_address
end = current_address + mbi.RegionSize
while index < end:
if ReadProcessMemory(Process, index, ctypes.byref(buffer), \
ctypes.sizeof(buffer),
ctypes.byref(nread)):
## value
On 08/10/17 20:18, Michael C wrote:
> This is the red part
> index = current_address
> end = current_address + mbi.RegionSize
>
> while index < end:
> if ReadProcessMemory(Process, index, ctypes.byref(buffer), \
>
I have no idea about ctypes or Windows, but it seems to me that you are
creating a rod for your own back by using a while loop here. Why use a
primitive, low-level looping construct when Python gives you much better
tools?
My *guess* is that somewhere you are miscalcuating when to stop, and