Bazaar developer reference

CvDllDeal::QueryInterface(GUID)

Defined in
CvDllDeal.cpp, line 23
Class
CvDllDeal
Hook name
CivHooks::CvDllDeal_QueryInterface

Hooks

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

Code

23void* CvDllDeal::QueryInterface(GUID guidInterface)24{25	if(guidInterface == ICvUnknown::GetInterfaceId() ||26	        guidInterface == ICvDeal1::GetInterfaceId())27	{28		IncrementReference();29		return this;30	}3132	return NULL;33}

Calls