what i have to do if my module base address is bigger than 32bits?
in my case, my game's base address is 00007FF73BF50000
and i have to add this address 014C9910 to base address
and 8 118 28 60 14C offsets
but my visual studio project is 32bits
so when i try to compile it, i got a warning
someone help me how can i use readprocessmemory with this big baseaddress?
also i hope to know how can i get 00007FF73BF50000 address?
i saw this address in my cheat engine's pe preferred header image base address
but i don't like this way, i just hope to know it with my code
can i get this address just using process title name?
i can't use GetModuleHandle()
because my program is external

DWORD BaseAddress = 0x00007FF73BF50000;
DWORD MoneyAddr = 0x014C9910;
DWORD MoneyOffs[] = {0x8,0x118,0x28,0x60,0x14C};
HWND sh = ::FindWindow(NULL, TEXT("Slime Rancher"));
if (sh != NULL)
{
DWORD pid;
GetWindowThreadProcessId(sh, &pid);
HANDLE hp = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid);
DWORD hv = 0;
if (ReadProcessMemory(hp, [what i have to insert here?], &hv, sizeof(hv), 0) != 0)
{
cout << "[Address]:" << hv << endl;
int money = 300000;
WriteProcessMemory(hp, [what i have to insert here?], money, sizeof(money),0);
}
}
and i have to add this address 014C9910 to base address
and 8 118 28 60 14C offsets
but my visual studio project is 32bits
so when i try to compile it, i got a warning
someone help me how can i use readprocessmemory with this big baseaddress?
also i hope to know how can i get 00007FF73BF50000 address?
i saw this address in my cheat engine's pe preferred header image base address
but i don't like this way, i just hope to know it with my code
can i get this address just using process title name?
i can't use GetModuleHandle()
because my program is external

DWORD BaseAddress = 0x00007FF73BF50000;
DWORD MoneyAddr = 0x014C9910;
DWORD MoneyOffs[] = {0x8,0x118,0x28,0x60,0x14C};
HWND sh = ::FindWindow(NULL, TEXT("Slime Rancher"));
if (sh != NULL)
{
DWORD pid;
GetWindowThreadProcessId(sh, &pid);
HANDLE hp = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid);
DWORD hv = 0;
if (ReadProcessMemory(hp, [what i have to insert here?], &hv, sizeof(hv), 0) != 0)
{
cout << "[Address]:" << hv << endl;
int money = 300000;
WriteProcessMemory(hp, [what i have to insert here?], money, sizeof(money),0);
}
}
