Bazaar developer reference

CvDllPlot::QueryInterface(GUID)

Defined in
CvDllPlot.cpp, line 26
Class
CvDllPlot
Hook name
CivHooks::CvDllPlot_QueryInterface

Hooks

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

Code

26void* CvDllPlot::QueryInterface(GUID guidInterface)27{28	if(guidInterface == ICvUnknown::GetInterfaceId() ||29	        guidInterface == ICvPlot1::GetInterfaceId())30	{31		IncrementReference();32		return this;33	}3435	return NULL;36}

Calls