Question about writing to memory
I'm very new to C++ I just recently switched over from C# so I have prior knowledge and know the basics of C++ and a little bit more. Any who I was looking at an example when I was building my application to modify memory as a start and a base for future projects and this was the code used for the example.
if(WriteProcessMemory(hProcess, (LPVOID)0x57C2A4, &newdata, newdatasize, NULL))
Why are they using a reference for newdata instead of a pointer to the buffer like stated on the msdn documentation?
if(WriteProcessMemory(hProcess, (LPVOID)0x57C2A4, &newdata, newdatasize, NULL))
Why are they using a reference for newdata instead of a pointer to the buffer like stated on the msdn documentation?