format of container of memory address problem
hi, i'm working on an anticheat but now i have problem at detecting client program version:
i have problem with that
Code:
void* FindVersion(void)
{
return (void*)*(DWORD*)0x01EA2B00;
}
struct cl_funcs_s ofuncs;
cl_funcs_s *pfuncs = (cl_funcs_s*) FindVersion();
it doesn't return address right, so it crash application
if i just make
Code:
struct cl_funcs_s ofuncs;
cl_funcs_s *pfuncs = (cl_funcs_s*) 0x01EA2B00;
so it is all ok, but i need function there, i think i'm useing wrong format for return