Bazaar developer reference

CvDllGameSpeedInfo::QueryInterface(GUID)

Defined in
CvDllGameSpeedInfo.cpp, line 23
Class
CvDllGameSpeedInfo
Hook name
CivHooks::CvDllGameSpeedInfo_QueryInterface

Hooks

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

Code

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

Calls