本文整理汇总了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;
}
示例2: METHOD_PROLOGUE
STDMETHODIMP CoAuthServiceCall::XRenewCallback::raw_Terminate()
{
METHOD_PROLOGUE(CoAuthServiceCall, RenewCallback)
pThis->m_eState = Finish;
return NOERROR;
}
示例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
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
示例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 ?
}