[Tutor] using while loop for read process memory
Michael C
mysecretrobotfactory at gmail.com
Sun Oct 8 15:47:14 EDT 2017
I'll explain better when I get on a pc.
On Oct 8, 2017 12:18 PM, "Michael C" <mysecretrobotfactory at gmail.com> wrote:
> 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" <mats at wichmann.us> 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/tutor@python.org/msg77570.html
>>
>> please explain in words.
>>
>
More information about the Tutor
mailing list