Bazaar developer reference

CvDllPathFinderUpdateList::QueryInterface(GUID)

Defined in
CvDllPathFinderUpdate.cpp, line 103
Class
CvDllPathFinderUpdateList
Hook name
CivHooks::CvDllPathFinderUpdateList_QueryInterface

Hooks

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

Code

103void* CvDllPathFinderUpdateList::QueryInterface(GUID guidInterface)104{105	if(guidInterface == ICvUnknown::GetInterfaceId() ||106	        guidInterface == ICvEnumerator::GetInterfaceId())107	{108		IncrementReference();109		return this;110	}111112	return NULL;113}

Calls