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.
|
|
//
// evsink.h: Event Sink Object class
//
#ifndef _sinkobj_h_
#define _sinkobj_h_
//fwd declaration
class CContainerWnd;
class CEventSink : public IMsTscAxEvents { public: // constructor and destructor
CEventSink(CContainerWnd* pContainerWnd); ~CEventSink();
// IUnknown methods
STDMETHODIMP QueryInterface (THIS_ REFIID riid, LPVOID *ppvObj); STDMETHODIMP_(ULONG) AddRef (THIS); STDMETHODIMP_(ULONG) Release(THIS);
// IDispatch methods
STDMETHODIMP GetTypeInfoCount(THIS_ UINT *); STDMETHODIMP GetTypeInfo (THIS_ UINT, LCID, ITypeInfo **); STDMETHODIMP GetIDsOfNames (THIS_ REFIID, OLECHAR **, UINT, LCID, DISPID *); STDMETHODIMP Invoke (THIS_ DISPID, REFIID, LCID, WORD, DISPPARAMS *, VARIANT *, EXCEPINFO *, UINT *); //Event sinks
HRESULT inline __stdcall OnConnected(); HRESULT inline __stdcall OnLoginComplete(); HRESULT inline __stdcall OnDisconnected(long disconReason); HRESULT inline __stdcall OnRequestEnterFullScreen(); HRESULT inline __stdcall OnRequestLeaveFullScreen(); HRESULT inline __stdcall OnFatalError(long errorCode); HRESULT inline __stdcall OnWarning(long errorCode); HRESULT inline __stdcall OnRemoteDesktopSizeChange(long width, long height); HRESULT inline __stdcall OnRequestContainerMinimize(); HRESULT inline __stdcall OnConfirmClose(VARIANT_BOOL* pvbConfirmClose);
private: LONG _cRef; CContainerWnd* _pContainerWnd; };
#endif // _sinkobj_h_
|