Bazaar developer reference

CvDllScriptSystemUtility::QueryInterface(GUID)

Defined in
CvDllScriptSystemUtility.cpp, line 35
Class
CvDllScriptSystemUtility
Hook name
CivHooks::CvDllScriptSystemUtility_QueryInterface

Hooks

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

Code

35void* CvDllScriptSystemUtility::QueryInterface(GUID guidInterface)36{37	if(guidInterface == ICvUnknown::GetInterfaceId() ||38	        guidInterface == ICvScriptSystemUtility1::GetInterfaceId())39	{40		return this;41	}4243	return NULL;44}

Calls