ReadProcessMemory + address from ollydbg

ag0aep6g via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 30 17:40:11 PDT 2017


On 07/01/2017 02:30 AM, bauss wrote:
> On Saturday, 1 July 2017 at 00:23:36 UTC, ag0aep6g wrote:
>> On 07/01/2017 01:41 AM, bauss wrote:
[...]
>>>    if (!ReadProcessMemory(process,
>>>      cast(PCVOID)address, cast(PVOID)&data,
>>
>> The second cast still looks suspicious. PVOID is void*, right? Then 
>> any mutable pointer type should implicitly convert to PVOID and you 
>> shouldn't need the cast.
[...]
> Well the address is not a pointer. It's DWORD which is uint, so the cast 
> is necessary since it stores the address.

Not that one. The other one. This one: `cast(PVOID)&data`.

I don't expect it to be related to your problem, but it shouldn't be 
necessary as far as I see.


More information about the Digitalmars-d-learn mailing list