ReadProcessMemory + address from ollydbg

bauss via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jul 1 07:16:19 PDT 2017


On Saturday, 1 July 2017 at 00:48:01 UTC, bauss wrote:
> On Saturday, 1 July 2017 at 00:40:11 UTC, ag0aep6g wrote:
>> [...]
>
> Yeah, the cast was unnecessary.
>
> So this is my code after the changes:
> string ReadWinString(HANDLE process, DWORD address, size_t 
> stringSize, string defaultValue = "") {
>   if (!process || !address) {
>     return defaultValue;
>   }
>
> [...]

I have solved the problem. It was caused by an invalid address, 
so the code actually worked fine.


More information about the Digitalmars-d-learn mailing list