Bazaar developer reference

CvDllCity::QueryInterface(GUID)

Defined in
CvDllCity.cpp, line 24
Class
CvDllCity
Hook name
CivHooks::CvDllCity_QueryInterface

Hooks

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

Code

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

Calls