Bazaar developer reference

CvDllNetInitInfo::QueryInterface(GUID)

Defined in
CvDllNetInitInfo.cpp, line 56
Class
CvDllNetInitInfo
Hook name
CivHooks::CvDllNetInitInfo_QueryInterface

Hooks

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

Code

56void* CvDllNetInitInfo::QueryInterface(GUID guidInterface)57{58	if(guidInterface == ICvUnknown::GetInterfaceId() ||59	        guidInterface == ICvNetInitInfo1::GetInterfaceId())60	{61		IncrementReference();62		return this;63	}6465	return NULL;66}

Calls