mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 08:53:02 +00:00
[RSHELL]
* Add a new logging wrapper to record calls from the start menu back to the explorer site. CORE-7586 svn path=/branches/shell-experiments/; revision=62335
This commit is contained in:
parent
8b06cd6325
commit
107ae8ee41
7 changed files with 212 additions and 4 deletions
|
@ -21,7 +21,6 @@
|
|||
#include "wraplog.h"
|
||||
|
||||
class CMenuDeskBarWrap :
|
||||
public CComCoClass<CMenuDeskBarWrap>,
|
||||
public CComObjectRootEx<CComMultiThreadModelNoCS>,
|
||||
public IOleCommandTarget,
|
||||
public IServiceProvider,
|
||||
|
@ -216,6 +215,24 @@ HRESULT STDMETHODCALLTYPE CMenuDeskBarWrap::ContextSensitiveHelp(BOOL fEnterMode
|
|||
HRESULT STDMETHODCALLTYPE CMenuDeskBarWrap::SetSite(IUnknown *pUnkSite)
|
||||
{
|
||||
WrapLogEnter("CMenuDeskBarWrap<%p>::SetSite(IUnknown *pUnkSite=%p)\n", this, pUnkSite);
|
||||
|
||||
#if WRAP_TRAYPRIV
|
||||
CComPtr<ITrayPriv> inTp;
|
||||
HRESULT hr2 = pUnkSite->QueryInterface(IID_PPV_ARG(ITrayPriv, &inTp));
|
||||
if (SUCCEEDED(hr2))
|
||||
{
|
||||
ITrayPriv * outTp;
|
||||
hr2 = CStartMenuSite_Wrapper(inTp, IID_PPV_ARG(ITrayPriv, &outTp));
|
||||
if (SUCCEEDED(hr2))
|
||||
{
|
||||
pUnkSite = outTp;
|
||||
}
|
||||
else
|
||||
{
|
||||
outTp->Release();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
HRESULT hr = m_IObjectWithSite->SetSite(pUnkSite);
|
||||
WrapLogExit("CMenuDeskBarWrap::SetSite()", hr);
|
||||
return hr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue