[Help]Bad Suffix

Posts 1–5 of 5 · Page 1 of 1
[Help]Bad Suffix
I was using WriteProcessMemory() function and it said "bad suffix" on my address, what does that mean?
Quote Originally Posted by 258456 View Post
I was using WriteProcessMemory() function and it said "bad suffix" on my address, what does that mean?
how are you writing your address?
WriteProcessMemory(Blah blah, (void*) 00001834C, blah blah, blah, NULL);


well i was hacking a flash game on the internet, here is my code:

Code:
#include <windows.h>
#include <iostream>
int main()
{
DWORD newdata = 0x1181C719;
	DWORD newdatasize = sizeof(newdata);
	DWORD pid = 6864;
	HWND WindowHandle = FindWindow(NULL, TEXT("Catapult Madness | Armor Games"));
while(!WindowHandle) //If the handle is null...
{
Sleep(50); //Wait 50 miliseconds..
WindowHandle = FindWindow(NULL,TEXT("Catapult Madness | Armor Games"));//and try again
}
GetWindowThreadProcessId(WindowHandle, & pid);
HANDLE ProcessHandle = OpenProcess(PROCESS_ALL_ACCESS, 0, pid);
WriteProcessMemory(ProcessHandle, (void*) 00001871C ,&newdata, newdatasize, (NULL)); 


}
Change 00001871C to 0x00001871C. The compiler assumes everything is decimal without the suffix.
thanks void as usual lol
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us