Re: [ctypes-users] [Tutor] using while loop for read process memory
Brought to you by:
theller
From: Michael C <mys...@gm...> - 2017-10-08 19:18:29
|
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 comparison to be implemented. pass else: raise ctypes.WinError(ctypes.get_last_error()) index += 1 On Oct 8, 2017 12:16 PM, "Mats Wichmann" <ma...@wi...> wrote: > 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? colors don't come through mailers that use text-based > settings. This is an example of what your mail looks like to many of us: > > https://mail-archive.com/tu...@py.../msg77570.html > > please explain in words. > |