I "have to" add the static keyword when I include a header containing a reference var into more than one source file... to prevent a "already defined in some other .obj error"
whats the deal with the static keyword in this context?
is their some way to make it a const?
the whole pointer derefernce thing gets inlined, as far as I can tell...
// header.h static DWORD& g_dwHealth = (*((DWORD*)0x00600000)); static HMODULE ( __stdcall *& xGetModuleHandleA )( char* szName ) = *( (HMODULE(__stdcall **)(char*)) 0x004610FC);
these reference vars allow me to really cleanup the syntax in my injected code
I can use data_vars of the target as if they were just regular globals
especially useful when calling a pointer to a pointer to a function












