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.

47 lines
1.5 KiB

  1. //
  2. // evsink.h: Event Sink Object class
  3. //
  4. #ifndef _sinkobj_h_
  5. #define _sinkobj_h_
  6. //fwd declaration
  7. class CContainerWnd;
  8. class CEventSink : public IMsTscAxEvents
  9. {
  10. public:
  11. // constructor and destructor
  12. CEventSink(CContainerWnd* pContainerWnd);
  13. ~CEventSink();
  14. // IUnknown methods
  15. STDMETHODIMP QueryInterface (THIS_ REFIID riid, LPVOID *ppvObj);
  16. STDMETHODIMP_(ULONG) AddRef (THIS);
  17. STDMETHODIMP_(ULONG) Release(THIS);
  18. // IDispatch methods
  19. STDMETHODIMP GetTypeInfoCount(THIS_ UINT *);
  20. STDMETHODIMP GetTypeInfo (THIS_ UINT, LCID, ITypeInfo **);
  21. STDMETHODIMP GetIDsOfNames (THIS_ REFIID, OLECHAR **, UINT, LCID, DISPID *);
  22. STDMETHODIMP Invoke (THIS_ DISPID, REFIID, LCID, WORD,
  23. DISPPARAMS *, VARIANT *, EXCEPINFO *, UINT *);
  24. //Event sinks
  25. HRESULT inline __stdcall OnConnected();
  26. HRESULT inline __stdcall OnLoginComplete();
  27. HRESULT inline __stdcall OnDisconnected(long disconReason);
  28. HRESULT inline __stdcall OnRequestEnterFullScreen();
  29. HRESULT inline __stdcall OnRequestLeaveFullScreen();
  30. HRESULT inline __stdcall OnFatalError(long errorCode);
  31. HRESULT inline __stdcall OnWarning(long errorCode);
  32. HRESULT inline __stdcall OnRemoteDesktopSizeChange(long width, long height);
  33. HRESULT inline __stdcall OnRequestContainerMinimize();
  34. HRESULT inline __stdcall OnConfirmClose(VARIANT_BOOL* pvbConfirmClose);
  35. private:
  36. LONG _cRef;
  37. CContainerWnd* _pContainerWnd;
  38. };
  39. #endif // _sinkobj_h_