windows-nt/Source/XPSP1/NT/enduser/netmeeting/ui/conf/fthook.h

52 lines
1.3 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#ifndef __FtHook_h__
#define __FtHook_h__
#include "IMbFt.h"
namespace CFt
{
// These are per-process/SDK session
HRESULT InitFt();
bool IsFtActive();
HRESULT EnsureLoadFtApplet();
HRESULT StartNewConferenceSession();
void CloseFtApplet();
bool IsMemberInFtSession(T120NodeID gccID);
HRESULT SendFile(LPCSTR pszFileName,
T120NodeID gccID,
MBFTEVENTHANDLE *phEvent,
MBFTFILEHANDLE *phFile);
HRESULT CancelFt(MBFTEVENTHANDLE hEvent, MBFTFILEHANDLE hFile);
HRESULT AcceptFileOffer(MBFT_FILE_OFFER *pOffer, LPCSTR pszRecvFileDir, LPCSTR pszFileName);
HRESULT ShowFtUI();
HRESULT Advise(IMbftEvents* pSink);
HRESULT UnAdvise(IMbftEvents* pSink);
///////////////////////////////////////////////////////////////////////
//
class CFtEvents : public IMbftEvents
{
public:
// IMbftEvent Interface
STDMETHOD(OnInitializeComplete)(void);
STDMETHOD(OnPeerAdded)(MBFT_PEER_INFO *pInfo);
STDMETHOD(OnPeerRemoved)(MBFT_PEER_INFO *pInfo);
STDMETHOD(OnFileOffer)(MBFT_FILE_OFFER *pOffer);
STDMETHOD(OnFileProgress)(MBFT_FILE_PROGRESS *pProgress);
STDMETHOD(OnFileEnd)(MBFTFILEHANDLE hFile);
STDMETHOD(OnFileError)(MBFT_EVENT_ERROR *pEvent);
STDMETHOD(OnFileEventEnd)(MBFTEVENTHANDLE hEvent);
STDMETHOD(OnSessionEnd)(void);
};
}; // end namespace CFt
#endif // __FtHook_h__