You need to use hook function.
//No need
struct My_Patches {
MemoryPatch blah, blah, blah;
} hexPatches;
//Do this:
bool Example = false;
void (*old_AnyName)(void *instance);
void AnyName(void* instance) {
if (instance != NULL) {
if (Example) {
*(int/*Example if...