Hooks
static bool BeforeCvDllColorInfo_GetReferenceCount(CvDllColorInfo* self, unsigned int& result);static void AfterCvDllColorInfo_GetReferenceCount(CvDllColorInfo* self, unsigned int& result);static unsigned int ReplaceCvDllColorInfo_GetReferenceCount(unsigned int (*original)(CvDllColorInfo*), CvDllColorInfo* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllColorInfo_GetReferenceCount::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllColorInfo_GetReferenceCount);host->RegisterHook(host->pluginIndex, CivHooks::CvDllColorInfo_GetReferenceCount::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllColorInfo_GetReferenceCount);host->RegisterHook(host->pluginIndex, CivHooks::CvDllColorInfo_GetReferenceCount::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllColorInfo_GetReferenceCount);