Bazaar developer reference

CvDllGameDeals::QueryInterface(GUID)

Defined in
CvDllGameDeals.cpp, line 24
Class
CvDllGameDeals
Hook name
CivHooks::CvDllGameDeals_QueryInterface

Hooks

static bool BeforeCvDllGameDeals_QueryInterface(CvDllGameDeals* self, GUID guidInterface, void*& result);static void AfterCvDllGameDeals_QueryInterface(CvDllGameDeals* self, GUID guidInterface, void*& result);static void* ReplaceCvDllGameDeals_QueryInterface(void* (*original)(CvDllGameDeals*, GUID), CvDllGameDeals* self, GUID guidInterface);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameDeals_QueryInterface::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameDeals_QueryInterface);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameDeals_QueryInterface::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameDeals_QueryInterface);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameDeals_QueryInterface::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameDeals_QueryInterface);

Code

24void* CvDllGameDeals::QueryInterface(GUID guidInterface)25{26	if(guidInterface == ICvUnknown::GetInterfaceId() ||27	        guidInterface == ICvGameDeals1::GetInterfaceId())28	{29		IncrementReference();30		return this;31	}3233	return NULL;34}

Calls