Bazaar developer reference

CvDllDatabaseUtility::QueryInterface(GUID)

Defined in
CvDllDatabaseUtility.cpp, line 66
Class
CvDllDatabaseUtility
Hook name
CivHooks::CvDllDatabaseUtility_QueryInterface

Hooks

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

Code

66void* CvDllDatabaseUtility::QueryInterface(GUID guidInterface)67{68	if(guidInterface == ICvUnknown::GetInterfaceId() ||69	        guidInterface == ICvDLLDatabaseUtility1::GetInterfaceId())70	{71		IncrementReference();72		return this;73	}7475	return NULL;76}

Calls