ReactOS 0.4.15-dev-7924-g5949c20
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
720 if (!tb)
721 return E_FAIL;
722
723 tb->AddRef();
724
725 hr = tb->_Init(tray, pTaskBand);
727 {
728 tb->Release();
729 return hr;
730 }
731
732 *pBandSite = tb;
733
734 return S_OK;
735}
#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().