本文整理汇总了C++中QUERYINTERFACE函数的典型用法代码示例。如果您正苦于以下问题:C++ QUERYINTERFACE函数的具体用法?C++ QUERYINTERFACE怎么用?C++ QUERYINTERFACE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了QUERYINTERFACE函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:bzh1113,项目名称:Ratix,代码行数:8,代码来源:TableFrameSink.cpp
示例2: QUERYINTERFACE
//接口查询
VOID * CCustomFaceManager::QueryInterface(REFGUID Guid, DWORD dwQueryVer)
{
QUERYINTERFACE(IDownLoadSink,Guid,dwQueryVer);
QUERYINTERFACE(ICustomFaceManager,Guid,dwQueryVer);
QUERYINTERFACE_IUNKNOWNEX(ICustomFaceManager,Guid,dwQueryVer);
return NULL;
}
开发者ID:Michael-Z,项目名称:qipai-game,代码行数:8,代码来源:CustomFaceManager.cpp
示例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;
}
开发者ID:codercold,项目名称:whgame,代码行数:8,代码来源:ChannelService.cpp
示例4: QUERYINTERFACE
//接口查询
VOID * CServerUserItem::QueryInterface(REFGUID Guid, DWORD dwQueryVer)
{
QUERYINTERFACE(IServerUserItem,Guid,dwQueryVer);
QUERYINTERFACE(IServerUserService,Guid,dwQueryVer);
QUERYINTERFACE_IUNKNOWNEX(IServerUserItem,Guid,dwQueryVer);
return NULL;
}
开发者ID:woshichuanqilz,项目名称:Gameplaza_Work,代码行数:8,代码来源:ServerUserManager.cpp
示例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;
}
开发者ID:vsanth,项目名称:kkj,代码行数:10,代码来源:TCPSocketService.cpp
示例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;
}
开发者ID:anyboo,项目名称:project,代码行数:8,代码来源:DataBase.cpp
示例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;
}
开发者ID:uwitec,项目名称:01technology,代码行数:8,代码来源:CenterSocket.cpp
示例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;
}
开发者ID:275958081,项目名称:netfox,代码行数:8,代码来源:TableFrame.cpp
示例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;
}
开发者ID:duzhi5368,项目名称:FKChessCards,代码行数:8,代码来源:Attribute.cpp
示例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;
}
开发者ID:lonyzone,项目名称:oathx-ogrex-editor,代码行数:9,代码来源:GameFrameWnd.cpp
示例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;
}
开发者ID:275958081,项目名称:netfox,代码行数:9,代码来源:PlazaViewItem.cpp
示例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
}
开发者ID:anyue100,项目名称:winscp,代码行数:26,代码来源:olecli2.cpp
示例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);
}
开发者ID:AsherBond,项目名称:HPCC-Platform,代码行数:34,代码来源:EclDirectService.cpp
示例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;
}
开发者ID:EwokVillage,项目名称:HPCC-Platform,代码行数:25,代码来源:hqlremote.cpp
示例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);
}
开发者ID:shuowen,项目名称:OpenNT,代码行数:12,代码来源:olecli3.cpp
示例16: QUERYINTERFACE
CDfuPlusHelper::~CDfuPlusHelper()
{
#ifdef DAFILESRV_LOCAL
if (dafsthread.get()) {
CDafsThread *dthread = QUERYINTERFACE(dafsthread.get(),CDafsThread);
if (dthread)
dthread->stop();
if (!dafsthread->join(1000*60))
error("CDfuPlusHelper dafsthread not stopped\n");
dafsthread.clear();
}
#endif
}
开发者ID:EwokVillage,项目名称:HPCC-Platform,代码行数:13,代码来源:dfuplus.cpp
示例17: serializeCreateContext
virtual void serializeCreateContext(MemoryBuffer &mb)
{
// bit of hack, need to tell slave if wuidread converted to diskread (see master activity)
CMasterGraphElement::serializeCreateContext(mb);
if (kind == TAKworkunitread)
{
if (!activity)
doCreateActivity();
IHThorArg *helper = activity->queryHelper();
IHThorDiskReadArg *diskHelper = QUERYINTERFACE(helper, IHThorDiskReadArg);
mb.append(NULL != diskHelper); // flag to slaves that they should create diskread
if (diskHelper)
{
OwnedRoxieString fileName(diskHelper->getFileName());
mb.append(fileName);
}
}
}
开发者ID:LlsDimple,项目名称:HPCC-Platform,代码行数:18,代码来源:thactivitymaster.cpp
示例18: ASSERT
BOOL COleDispatchDriver::CreateDispatch(REFCLSID clsid, COleException* pError)
{
ASSERT(m_lpDispatch == NULL);
m_bAutoRelease = TRUE; // good default is to auto-release
// create an instance of the object
LPUNKNOWN lpUnknown = NULL;
SCODE sc = CoCreateInstance(clsid, NULL, CLSCTX_ALL | CLSCTX_REMOTE_SERVER,
IID_IUnknown, (LPLP)&lpUnknown);
if (sc == E_INVALIDARG)
{
// may not support CLSCTX_REMOTE_SERVER, so try without
sc = CoCreateInstance(clsid, NULL, CLSCTX_ALL & ~CLSCTX_REMOTE_SERVER,
IID_IUnknown, (LPLP)&lpUnknown);
}
if (FAILED(sc))
goto Failed;
// make sure it is running
sc = OleRun(lpUnknown);
if (FAILED(sc))
goto Failed;
// query for IDispatch interface
m_lpDispatch = QUERYINTERFACE(lpUnknown, IDispatch);
if (m_lpDispatch == NULL)
goto Failed;
lpUnknown->Release();
ASSERT(m_lpDispatch != NULL);
return TRUE;
Failed:
RELEASE(lpUnknown);
if (pError != NULL)
pError->m_sc = sc;
TRACE1("Warning: CreateDispatch returning scode = %s.\n",
AfxGetFullScodeString(sc));
return FALSE;
}
开发者ID:cyb3727,项目名称:annrecognition,代码行数:41,代码来源:OleDispatchDriver.cpp
示例19: ASSERT_VALID
STDMETHODIMP COleUILinkInfo::GetLinkSource(
DWORD dwLink, LPTSTR* lplpszDisplayName, ULONG* lplenFileName,
LPTSTR* lplpszFullLinkType, LPTSTR* lplpszShortLinkType,
BOOL* lpfSourceAvailable, BOOL* lpfIsSelected)
{
COleClientItem* pItem = (COleClientItem*)dwLink;
ASSERT_VALID(pItem);
ASSERT_KINDOF(COleClientItem, pItem);
ASSERT(pItem->GetType() == OT_LINK);
// set OUT params to NULL
ASSERT(lplpszDisplayName != NULL);
*lplpszDisplayName = NULL;
if (lplpszFullLinkType != NULL)
*lplpszFullLinkType = NULL;
if (lplpszShortLinkType != NULL)
*lplpszShortLinkType = NULL;
if (lplenFileName != NULL)
*lplenFileName = 0;
if (lpfSourceAvailable != NULL)
*lpfSourceAvailable = !pItem->m_bLinkUnavail;
// get IOleLink interface
LPOLELINK lpOleLink = QUERYINTERFACE(pItem->m_lpObject, IOleLink);
ASSERT(lpOleLink != NULL);
// get moniker & object information
LPMONIKER lpmk;
if (lpOleLink->GetSourceMoniker(&lpmk) == S_OK)
{
if (lplenFileName != NULL)
*lplenFileName = _AfxOleGetLenFilePrefixOfMoniker(lpmk);
lpmk->Release();
}
// attempt to get the type names of the link
if (lplpszFullLinkType != NULL)
{
LPOLESTR lpOleStr = NULL;
pItem->m_lpObject->GetUserType(USERCLASSTYPE_FULL, &lpOleStr);
*lplpszFullLinkType = TASKSTRINGOLE2T(lpOleStr);
if (*lplpszFullLinkType == NULL)
{
TCHAR szUnknown[256];
VERIFY(AfxLoadString(AFX_IDS_UNKNOWNTYPE, szUnknown) != 0);
*lplpszFullLinkType = AfxAllocTaskString(szUnknown);
}
}
if (lplpszShortLinkType != NULL)
{
LPOLESTR lpOleStr = NULL;
pItem->m_lpObject->GetUserType(USERCLASSTYPE_SHORT, &lpOleStr);
*lplpszShortLinkType = TASKSTRINGOLE2T(lpOleStr);
if (*lplpszShortLinkType == NULL)
{
TCHAR szUnknown[256];
VERIFY(AfxLoadString(AFX_IDS_UNKNOWNTYPE, szUnknown) != 0);
*lplpszShortLinkType = AfxAllocTaskString(szUnknown);
}
}
// get source display name for moniker
LPOLESTR lpOleStr = NULL;
SCODE sc = lpOleLink->GetSourceDisplayName(&lpOleStr);
*lplpszDisplayName = TASKSTRINGOLE2T(lpOleStr);
lpOleLink->Release();
if (sc != S_OK)
return sc;
// see if item is selected if specified
if (lpfIsSelected)
{
*lpfIsSelected = (m_pSelectedItem == pItem);
}
return S_OK;
}
开发者ID:rickerliang,项目名称:OpenNT,代码行数:78,代码来源:oledlgs1.cpp
示例20: QUERYINTERFACE
//接口查询
void * CGameFrameControl::QueryInterface(const IID & Guid, DWORD dwQueryVer)
{
QUERYINTERFACE(IPurchaseInfo,Guid,dwQueryVer);
QUERYINTERFACE_IUNKNOWNEX(IPurchaseInfo,Guid,dwQueryVer);
return NULL;
}
开发者ID:liangzai90,项目名称:WH2008,代码行数:7,代码来源:GameFrameControl.cpp
注:本文中的QUERYINTERFACE函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论