Bazaar developer reference

CvDllColorInfo::QueryInterface(GUID)

Defined in
CvDllColorInfo.cpp, line 23
Class
CvDllColorInfo
Hook name
CivHooks::CvDllColorInfo_QueryInterface

Hooks

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

Code

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

Calls