ReactOS 0.4.16-dev-814-g656a5dc
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 728 of file tbsite.cpp.

729{
730 HRESULT hr;
731
733 if (!tb)
734 return E_FAIL;
735
736 tb->AddRef();
737
738 hr = tb->_Init(tray, pTaskBand);
740 {
741 tb->Release();
742 return hr;
743 }
744
745 *pBandSite = tb;
746
747 return S_OK;
748}
#define E_FAIL
Definition: ddrawi.h:102
#define FAILED_UNEXPECTEDLY(hr)
Definition: precomp.h:121
#define S_OK
Definition: intsafe.h:52
static const WCHAR tb[]
Definition: suminfo.c:285
HRESULT hr
Definition: shlfolder.c:183

Referenced by CTrayWindow::OnCreate().