ReactOS  0.4.13-dev-52-g0efcfec
tbsite.cpp File Reference
#include "precomp.h"
#include <shdeprecated.h>
Include dependency graph for tbsite.cpp:

Go to the source code of this file.

Classes

class  CTrayBandSite
 

Functions

HRESULT CTrayBandSite_CreateInstance (IN ITrayWindow *tray, IN IDeskBand *pTaskBand, OUT ITrayBandSite **pBandSite)
 

Function Documentation

◆ CTrayBandSite_CreateInstance()

HRESULT CTrayBandSite_CreateInstance ( IN ITrayWindow *  tray,
IN IDeskBand pTaskBand,
OUT ITrayBandSite **  pBandSite 
)

Definition at line 715 of file tbsite.cpp.

716 {
717  HRESULT hr;
718 
719  CTrayBandSite * tb = new CTrayBandSite();
720  if (!tb)
721  return E_FAIL;
722 
723  tb->AddRef();
724 
725  hr = tb->_Init(tray, pTaskBand);
726  if (FAILED_UNEXPECTEDLY(hr))
727  {
728  tb->Release();
729  return hr;
730  }
731 
732  *pBandSite = tb;
733 
734  return S_OK;
735 }
HRESULT hr
Definition: shlfolder.c:183
#define E_FAIL
Definition: ddrawi.h:102
LONG HRESULT
Definition: typedefs.h:77
#define FAILED_UNEXPECTEDLY(hr)
Definition: shellutils.h:35
static const WCHAR tb[]
Definition: suminfo.c:286
#define S_OK
Definition: intsafe.h:59

Referenced by CTrayWindow::OnCreate().