Bazaar developer reference

CvDllHandicapInfo::QueryInterface(GUID)

Defined in
CvDllHandicapInfo.cpp, line 23
Class
CvDllHandicapInfo
Hook name
CivHooks::CvDllHandicapInfo_QueryInterface

Hooks

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

Code

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

Calls