Bazaar developer reference

CvDllTeam::QueryInterface(GUID)

Defined in
CvDllTeam.cpp, line 22
Class
CvDllTeam
Hook name
CivHooks::CvDllTeam_QueryInterface

Hooks

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

Code

22void* CvDllTeam::QueryInterface(GUID guidInterface)23{24	if(guidInterface == ICvUnknown::GetInterfaceId() ||25	        guidInterface == ICvTeam1::GetInterfaceId())26	{27		IncrementReference();28		return this;29	}3031	return NULL;32}

Calls