Bazaar developer reference

CvDllFeatureInfo::QueryInterface(GUID)

Defined in
CvDllFeatureInfo.cpp, line 23
Class
CvDllFeatureInfo
Hook name
CivHooks::CvDllFeatureInfo_QueryInterface

Hooks

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

Code

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

Calls