Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB

  1. #ifndef __FtHook_h__
  2. #define __FtHook_h__
  3. #include "IMbFt.h"
  4. namespace CFt
  5. {
  6. // These are per-process/SDK session
  7. HRESULT InitFt();
  8. bool IsFtActive();
  9. HRESULT EnsureLoadFtApplet();
  10. HRESULT StartNewConferenceSession();
  11. void CloseFtApplet();
  12. bool IsMemberInFtSession(T120NodeID gccID);
  13. HRESULT SendFile(LPCSTR pszFileName,
  14. T120NodeID gccID,
  15. MBFTEVENTHANDLE *phEvent,
  16. MBFTFILEHANDLE *phFile);
  17. HRESULT CancelFt(MBFTEVENTHANDLE hEvent, MBFTFILEHANDLE hFile);
  18. HRESULT AcceptFileOffer(MBFT_FILE_OFFER *pOffer, LPCSTR pszRecvFileDir, LPCSTR pszFileName);
  19. HRESULT ShowFtUI();
  20. HRESULT Advise(IMbftEvents* pSink);
  21. HRESULT UnAdvise(IMbftEvents* pSink);
  22. ///////////////////////////////////////////////////////////////////////
  23. //
  24. class CFtEvents : public IMbftEvents
  25. {
  26. public:
  27. // IMbftEvent Interface
  28. STDMETHOD(OnInitializeComplete)(void);
  29. STDMETHOD(OnPeerAdded)(MBFT_PEER_INFO *pInfo);
  30. STDMETHOD(OnPeerRemoved)(MBFT_PEER_INFO *pInfo);
  31. STDMETHOD(OnFileOffer)(MBFT_FILE_OFFER *pOffer);
  32. STDMETHOD(OnFileProgress)(MBFT_FILE_PROGRESS *pProgress);
  33. STDMETHOD(OnFileEnd)(MBFTFILEHANDLE hFile);
  34. STDMETHOD(OnFileError)(MBFT_EVENT_ERROR *pEvent);
  35. STDMETHOD(OnFileEventEnd)(MBFTEVENTHANDLE hEvent);
  36. STDMETHOD(OnSessionEnd)(void);
  37. };
  38. }; // end namespace CFt
  39. #endif // __FtHook_h__