Bazaar developer reference

CvDllBuildInfo::QueryInterface(GUID)

Defined in
CvDllBuildInfo.cpp, line 23
Class
CvDllBuildInfo
Hook name
CivHooks::CvDllBuildInfo_QueryInterface

Hooks

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

Code

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

Calls