• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ METHOD_PROLOGUE函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中METHOD_PROLOGUE函数的典型用法代码示例。如果您正苦于以下问题:C++ METHOD_PROLOGUE函数的具体用法?C++ METHOD_PROLOGUE怎么用?C++ METHOD_PROLOGUE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了METHOD_PROLOGUE函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: METHOD_PROLOGUE

STDMETHODIMP COlePropPage::XPropertySite::GetPageContainer(IUnknown **ppUnk)
{
	METHOD_PROLOGUE(COlePropPage, PropertySite);     // Creates a pThis pointer to 
	TRACE("COlePropPage::PropertySite::GetPageContainer()\n");
	
	return (HRESULT)E_NOTIMPL;   
}
开发者ID:JackWangCUMT,项目名称:SuperCxHMI,代码行数:7,代码来源:OlePropPage.cpp


示例2: METHOD_PROLOGUE

STDMETHODIMP CoAuthServiceCall::XRenewCallback::raw_Terminate()
{
	METHOD_PROLOGUE(CoAuthServiceCall, RenewCallback)

	pThis->m_eState = Finish;
	return NOERROR;
}
开发者ID:pwsimon,项目名称:AuthorizationServer,代码行数:7,代码来源:CoAuthServiceCall.cpp


示例3: UNREFERENCED_PARAMETER

STDMETHODIMP CMuleBrowserControlSite::XInternetSecurityManager::ProcessUrlAction(
										LPCWSTR pwszUrl,
										DWORD dwAction,
										BYTE* /*pPolicy*/, DWORD /*cbPolicy*/,
										BYTE* /*pContext*/, DWORD /*cbContext*/,
										DWORD dwFlags, DWORD dwReserved)
{
	UNREFERENCED_PARAMETER(pwszUrl);
	UNREFERENCED_PARAMETER(dwAction);
	UNREFERENCED_PARAMETER(dwFlags);
	UNREFERENCED_PARAMETER(dwReserved);
	METHOD_PROLOGUE(CMuleBrowserControlSite, InternetSecurityManager);
	TRACE(_T("%hs: URL=%ls, Action=%u, Flags=0x%x, Reserved=%u\n"), "ProcessUrlAction", pwszUrl, dwAction, dwFlags, dwReserved);

#if 0
	DWORD dwPolicy = URLPOLICY_DISALLOW;
	if (cbPolicy >= sizeof(DWORD))
	{
		*(DWORD*)pPolicy = dwPolicy;
		return S_OK;
	} 
	return S_FALSE;
#else
	// Use the policy for the zone which was specified with 'MapUrlToZone'
	// If that particular policy setting is specified as 'Ask User', the control *WILL OPEN* a message box!
	return INET_E_DEFAULT_ACTION;
#endif
}
开发者ID:techpub,项目名称:archive-code,代码行数:28,代码来源:IESecurity.cpp


示例4: METHOD_PROLOGUE

STDMETHODIMP CLibraryList::XGenericView::get_Name(BSTR FAR* psName)
{
	METHOD_PROLOGUE( CLibraryList, GenericView )
	CString strName( _T("CLibraryFileView") );
	strName.SetSysString( psName );
	return S_OK;
}
开发者ID:ericfillipe1,项目名称:shareaza-code,代码行数:7,代码来源:LibraryList.cpp


示例5: METHOD_PROLOGUE

STDMETHODIMP CHtmlCollection::XView::Hover(BSTR sURN)
{
    METHOD_PROLOGUE(CHtmlCollection, View)
    CQuickLock oLock( Library.m_pSection );
    CLibraryCollectionView* pView = pThis->m_pView;

    if ( pView->m_bLockdown )
        return S_OK;

    if ( pView->m_pWebCtrl == NULL )
        return S_OK;

    if ( pView->GetFrame() == NULL )
        return S_OK;

    pView->m_nWebIndex = 0;

    if ( sURN && *sURN )	// wcslen
    {
        if ( CLibraryFile* pFile = LibraryMaps.LookupFileByURN( CString( sURN ) ) )
        {
            pView->m_nWebIndex = pFile->m_nIndex;
        }
    }

    if ( pView->m_nWebIndex != 0 )
        pView->GetToolTip()->Show( pView->m_nWebIndex, pView->m_pWebCtrl->GetSafeHwnd() );
    else
        pView->GetToolTip()->Hide();

    return S_OK;
}
开发者ID:qing3962,项目名称:peerproject,代码行数:32,代码来源:CtrlLibraryCollectionView.cpp


示例6: METHOD_PROLOGUE

STDMETHODIMP Bookmark::XWSBookmark::get_Type(LONG* retval)
{
	METHOD_PROLOGUE(Bookmark, WSBookmark)

	TRY_DUAL(IID_IWSBookmark)
		*retval = pThis->GetType();
		return NOERROR;
	WORKSHARE_CATCH_ALL_DUAL
		
	//TRY_DUAL(IID_IWSBookmark)
	//	*retval = pThis->GetType();
	//	return NOERROR;
	//CATCH(COleException, e) 
	//{ 
	//	_hr = e->m_sc; 
	//}
	//AND_CATCH_ALL(e) 
	//{ 
	//	AFX_MANAGE_STATE(pThis->m_pModuleState); 
	//	_hr = DualHandleException(_riidSource, e); 
	//}}}
	//catch (...)
	//{ 
	//	LOG_WS_ERROR( "Unexpected exception from TER"); 
	//	_hr = E_FAIL; 
	//}}
	//return _hr;

}
开发者ID:killbug2004,项目名称:WSProf,代码行数:29,代码来源:XWSBookmark.cpp


示例7: METHOD_PROLOGUE

STDMETHODIMP CShellExt::XToolTipExt::GetInfoTip(DWORD dwFlags, LPWSTR *ppwszTip)
{
    METHOD_PROLOGUE(CShellExt, ToolTipExt);

    if ((_tcslen(pThis->m_szFile) == 0)||(!IsPathInAfs(pThis->m_szFile)))
    {
        *ppwszTip=NULL;
        return S_OK;
    }
    bool bIsSymlink = !!IsSymlink(pThis->m_szFile);
    bool bIsMountpoint = !!IsMountPoint(pThis->m_szFile);
    if ((!bIsSymlink) && (!bIsMountpoint))
    {
	*ppwszTip=NULL;
	return S_OK;
    }
    USES_CONVERSION;
    // dwFlags is currently unused.
    CString sInfo;
    if (bIsSymlink)
        sInfo = GetSymlink(pThis->m_szFile);
    else if (bIsMountpoint)
        sInfo = GetMountpoint(pThis->m_szFile);
    *ppwszTip = (WCHAR*) (pThis->m_pAlloc)->Alloc((1+sInfo.GetLength())*sizeof(WCHAR));
    if (*ppwszTip)
        wcscpy(*ppwszTip, (WCHAR*)T2COLE((LPCTSTR)sInfo));

    return S_OK;
}
开发者ID:bagdxk,项目名称:openafs,代码行数:29,代码来源:shell_ext.cpp


示例8: STDMETHODIMP_

STDMETHODIMP_(void) CSpaceship::XVisual::Display()
{
    TRACE("CSpaceship::XVisual::Display\n");
    METHOD_PROLOGUE(CSpaceship, Visual)
    TRACE("m_nPosition = %d\n", pThis->m_nPosition);
    TRACE("m_nColor = %d\n", pThis->m_nColor);
}
开发者ID:jiayuehua,项目名称:InsideVC,代码行数:7,代码来源:Spaceship.cpp


示例9: TRACE

void CSpaceship::XMotion::Fly()
{
	TRACE("Entering CSpaceship::XMotion::Fly\n");

	METHOD_PROLOGUE(CSpaceship, Motion)
	TRACE("this: %p, pThis: %p\n", this, pThis);
	TRACE("m_nPosition: %d\n", pThis->m_nPosition);
	TRACE("m_nAcceleration: %d\n", pThis->m_nPosition);
}
开发者ID:aditya7041,项目名称:My-Blog-Repository,代码行数:9,代码来源:Spaceship.cpp


示例10: METHOD_PROLOGUE

HRESULT CCustomControlSite::XDocHostShowUI::ShowHelp(
								HWND hwnd,
								LPOLESTR pszHelpFile,
								UINT nCommand,
								DWORD dwData,
								POINT ptMouse,
								IDispatch* pDispatchObjectHit)
{
	METHOD_PROLOGUE(CCustomControlSite, DocHostShowUI);
	return S_OK;
}
开发者ID:niujingqian,项目名称:haocai,代码行数:11,代码来源:CustomControlSite.cpp


示例11: METHOD_PROLOGUE

STDMETHODIMP CMuleBrowserControlSite::XServiceProvider::QueryService(REFGUID guidService, REFIID riid, void** ppvObject)
{
	METHOD_PROLOGUE(CMuleBrowserControlSite, ServiceProvider);
	//DUMPIID(guidService, _T("guidService"));
	//DUMPIID(riid, _T("riid"));
	if (guidService == SID_SInternetSecurityManager && riid == IID_IInternetSecurityManager)
	{
		TRACE(_T("%hs\n"), "QueryService");
		return (HRESULT)pThis->ExternalQueryInterface(&riid, ppvObject);
	} 
	*ppvObject = NULL;
	return E_NOINTERFACE;
}
开发者ID:techpub,项目名称:archive-code,代码行数:13,代码来源:IESecurity.cpp


示例12: METHOD_PROLOGUE

STDMETHODIMP CWebCtrl::DocSite::XServiceProvider::QueryService(REFGUID guidService, REFIID riid, void **ppv)
{
	METHOD_PROLOGUE(CWebCtrl::DocSite, ServiceProvider)
	CWebCtrl* pCtrl = pThis->GetCtrl();

	if ( guidService == SID_SInternetSecurityManager && pCtrl->m_bSandbox )
	{
		if ( riid == IID_IInternetSecurityManager )
			return pThis->ExternalQueryInterface( &riid, ppv );
		return E_NOINTERFACE;
	}

	return E_UNEXPECTED;	// SVC_E_UNKNOWNSERVICE ?
}
开发者ID:lemonxiao0,项目名称:peerproject,代码行数:14,代码来源:CtrlWeb.cpp



注:本文中的METHOD_PROLOGUE函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ METHOD_PROLOGUE_EX_函数代码示例发布时间:2022-05-30
下一篇:
C++ MESSAGE_END函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap