C++ pointer to function - set address of pointer manually.
I know how to create a pointer to a variable and set the address manually, but I need to know how to set the address to a function for my project.
I'm doing DLL injection with CheatEngine, so I need to be able to reference a function from one of the game's DLL's.
So the main executable (WE.exe) loads various DLL's, and one of them is LagerPacket.dll
Inside LagerPacket.dll there's multiple functions for dealing with LPQ files which I'm trying to unpack, however I don't know how to create a pointer to the function I want.
CreatePatchFile(void*) @ 0x23BB10
So far as I understand, I would need to do something like:
void* a = (void*) <address>
I've successfully referenced individual pieces of char data, but I haven't been able to reference a function.
If anyone could help that'd be awesome
