本文整理汇总了C++中QUERYINTERFACE函数的典型用法代码示例。如果您正苦于以下问题:C++ QUERYINTERFACE函数的具体用法?C++ QUERYINTERFACE怎么用?C++ QUERYINTERFACE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了QUERYINTERFACE函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QUERYINTERFACE
//接口查询
void * __cdecl CTableFrameSink::QueryInterface(const IID & Guid, DWORD dwQueryVer)
{
QUERYINTERFACE(ITableFrameSink,Guid,dwQueryVer);
QUERYINTERFACE(ITableUserAction,Guid,dwQueryVer);
QUERYINTERFACE_IUNKNOWNEX(ITableFrameSink,Guid,dwQueryVer);
return NULL;
}
示例2: QUERYINTERFACE
//接口查询
VOID * CCustomFaceManager::QueryInterface(REFGUID Guid, DWORD dwQueryVer)
{
QUERYINTERFACE(IDownLoadSink,Guid,dwQueryVer);
QUERYINTERFACE(ICustomFaceManager,Guid,dwQueryVer);
QUERYINTERFACE_IUNKNOWNEX(ICustomFaceManager,Guid,dwQueryVer);
return NULL;
}
示例3: QUERYINTERFACE
//接口查询
void * __cdecl CChannelService::QueryInterface(const IID & Guid, DWORD dwQueryVer)
{
QUERYINTERFACE(IChannelService,Guid,dwQueryVer);
QUERYINTERFACE(IChannelMessageSink,Guid,dwQueryVer);
QUERYINTERFACE_IUNKNOWNEX(IChannelService,Guid,dwQueryVer);
return NULL;
}
示例4: QUERYINTERFACE
//接口查询
VOID * CServerUserItem::QueryInterface(REFGUID Guid, DWORD dwQueryVer)
{
QUERYINTERFACE(IServerUserItem,Guid,dwQueryVer);
QUERYINTERFACE(IServerUserService,Guid,dwQueryVer);
QUERYINTERFACE_IUNKNOWNEX(IServerUserItem,Guid,dwQueryVer);
return NULL;
}
示例5: QUERYINTERFACE
//基础接口
//////////////////////////////////////////////////////////////////////////
//接口查询
void * __cdecl CTCPSocketService::QueryInterface(const IID & Guid, DWORD dwQueryVer)
{
QUERYINTERFACE(ITCPSocketService, Guid, dwQueryVer);
QUERYINTERFACE(IQueueServiceSink, Guid, dwQueryVer);
QUERYINTERFACE_IUNKNOWNEX(ITCPSocketService, Guid, dwQueryVer);
return NULL;
}
示例6: QUERYINTERFACE
//接口查询
void * __cdecl CDataBaseEngine::QueryInterface(const IID & Guid, DWORD dwQueryVer)
{
QUERYINTERFACE(IDataBaseEngine, Guid, dwQueryVer);
QUERYINTERFACE(IQueueServiceSink, Guid, dwQueryVer);
QUERYINTERFACE_IUNKNOWNEX(IDataBaseEngine, Guid, dwQueryVer);
return NULL;
}
示例7: QUERYINTERFACE
//接口查询
void * __cdecl CCenterSocket::QueryInterface(const IID & Guid, DWORD dwQueryVer)
{
QUERYINTERFACE(IClientSocketSink,Guid,dwQueryVer);
QUERYINTERFACE(IAsynchronismEngineSink,Guid,dwQueryVer);
QUERYINTERFACE_IUNKNOWNEX(IAsynchronismEngineSink,Guid,dwQueryVer);
return NULL;
}
示例8: QUERYINTERFACE
//接口查询
void * __cdecl CTableFrame::QueryInterface(const IID & Guid, DWORD dwQueryVer)
{
QUERYINTERFACE(ITableFrame,Guid,dwQueryVer);
QUERYINTERFACE(ITableFrameManager,Guid,dwQueryVer);
QUERYINTERFACE_IUNKNOWNEX(ITableFrameManager,Guid,dwQueryVer);
return NULL;
}
示例9: QUERYINTERFACE
//接口查询
void * __cdecl CAttributeManager::QueryInterface(const IID & Guid, DWORD dwQueryVer)
{
QUERYINTERFACE(IAttributeManager,Guid,dwQueryVer);
QUERYINTERFACE(IAttributeService,Guid,dwQueryVer);
QUERYINTERFACE_IUNKNOWNEX(IAttributeManager,Guid,dwQueryVer);
return NULL;
}
示例10: QUERYINTERFACE
//接口查询
VOID * CGameFrameWnd::QueryInterface(REFGUID Guid, DWORD dwQueryVer)
{
QUERYINTERFACE(IGameFrameWnd,Guid,dwQueryVer);
QUERYINTERFACE(IFlashControlSink,Guid,dwQueryVer);
QUERYINTERFACE(IClientPropertySink,Guid,dwQueryVer);
QUERYINTERFACE_IUNKNOWNEX(IGameFrameWnd,Guid,dwQueryVer);
return NULL;
}
示例11: QUERYINTERFACE
//接口查询
void * __cdecl CPlazaViewItem::QueryInterface(const IID & Guid, DWORD dwQueryVer)
{
QUERYINTERFACE(IViewItem,Guid,dwQueryVer);
QUERYINTERFACE(IPlazaViewItem,Guid,dwQueryVer);
QUERYINTERFACE(IClientSocketSink,Guid,dwQueryVer);
QUERYINTERFACE_IUNKNOWNEX(IViewItem,Guid,dwQueryVer);
return NULL;
}
示例12: ASSERT_VALID
void COleClientItem::DeactivateUI()
{
ASSERT_VALID(this);
ASSERT(m_lpObject != NULL);
ASSERT(GetItemState() == activeUIState);
// get IOleInPlaceObject interface
LPOLEINPLACEOBJECT lpInPlaceObject =
QUERYINTERFACE(m_lpObject, IOleInPlaceObject);
if (lpInPlaceObject == NULL)
{
Close(); // handle rare failure cases by calling Close
return;
}
// call IOleInPlaceObject::UIDeactivate
m_scLast = lpInPlaceObject->UIDeactivate();
lpInPlaceObject->Release();
if (FAILED(m_scLast))
{
Close(); // handle rare failure cases by calling Close
return;
}
if (m_nItemState == activeUIState)
m_nItemState = activeState; // just in case server has crashed
}
示例13: sendRunEclExForm
int CEclDirectSoapBindingEx::onGet(CHttpRequest* request, CHttpResponse* response)
{
const char *path = request->queryPath();
if (strieq(path, "/EclDirect/RunEclEx/Form"))
return sendRunEclExForm(*request->queryContext(), request, response);
if(strieq(path, "/EclDirect/RunEclEx/DisplayResult"))
{
IEspContext& context = *request->queryContext();
request->queryParameters()->setProp("display_xslt", 1);
CRunEclExRequest reqObj(&context, "EclDirect", request->queryParameters(), request->queryAttachments());
CRunEclExResponse respObj("EclDirect");
theService->onRunEclEx(context, *QUERYINTERFACE(&reqObj, IEspRunEclExRequest), *QUERYINTERFACE(&respObj, IEspRunEclExResponse));
const char *result = respObj.getResults();
if (result && *result)
{
response->setContent(result);
response->setContentType(runEclExFormatMimeType(reqObj.getFormat()));
}
else
{
response->setContent("No result in Ecl execution.");
response->setContentType("text/html");
}
response->setStatus(HTTP_STATUS_OK);
response->send();
return 0;
}
return CEclDirectSoapBinding::onGet(request,response);
}
示例14: DBGLOG
IHqlExpression * XmlEclRepository::doLoadSymbol(IPropertyTree * repository, IAtom * modname, IAtom * attrname)
{
StringBuffer s;
IPropertyTree* module = repository->queryPropTree(s.append("./Module[@name=\"").append(*modname).append("\"]").str());
if(!module)
{
if (logging())
DBGLOG("No data for module %s",modname->getAtomNamePtr());
return 0;
}
int access = module->getPropInt("@access",cs_full);
s.clear().append("./Attribute[@name=\"").append(*attrname).append("\"]");
Owned<IPropertyTreeIterator> it = module->getElements(s.str());
for(it->first();it->isValid();it->next())
{
Owned<IHqlExpression> item = toNamedSymbol(&it->query(), *modname,access);
CHqlNamedSymbol* cur = QUERYINTERFACE(item.get(), CHqlNamedSymbol);
if(cur)
return LINK(cur);
}
return 0;
}
示例15: ASSERT_VALID
void COleClientItem::SetLinkUpdateOptions(OLEUPDATE dwUpdateOpt)
{
ASSERT_VALID(this);
ASSERT(m_lpObject != NULL);
LPOLELINK lpOleLink = QUERYINTERFACE(m_lpObject, IOleLink);
ASSERT(lpOleLink != NULL); // perhaps not a link?
SCODE sc = lpOleLink->SetUpdateOptions(dwUpdateOpt);
lpOleLink->Release();
CheckGeneral(sc);
}