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.

48 lines
1.0 KiB

  1. #pragma once
  2. class CDCCSink :
  3. public CComObjectRoot,
  4. public IDccManSink
  5. {
  6. public:
  7. CDCCSink();
  8. HRESULT Initialize();
  9. void FinalRelease();
  10. BEGIN_COM_MAP(CDCCSink)
  11. COM_INTERFACE_ENTRY_IID(IID_IDccManSink, IDccManSink)
  12. END_COM_MAP()
  13. public:
  14. //
  15. // IDccManSink
  16. //
  17. STDMETHOD( OnLogActive ) ( void );
  18. STDMETHOD( OnLogAnswered ) ( void );
  19. STDMETHOD( OnLogDisconnection ) ( void );
  20. STDMETHOD( OnLogError ) ( void );
  21. STDMETHOD( OnLogInactive ) ( void );
  22. STDMETHOD( OnLogIpAddr ) ( DWORD dwIpAddr );
  23. STDMETHOD( OnLogListen ) ( void );
  24. STDMETHOD( OnLogTerminated ) ( void );
  25. //
  26. // Shutdown Method
  27. //
  28. void Shutdown();
  29. protected:
  30. void DeviceDisconnected();
  31. HRESULT m_hrRapi;
  32. static DWORD WINAPI CreateDCCManProc(LPVOID lpParam );
  33. HANDLE m_hThread;
  34. HANDLE m_hThreadEvent;
  35. DWORD m_dwThreadId;
  36. CComPtr<IDccMan> m_spDccMan;
  37. DWORD m_dwDccSink;
  38. };
  39. typedef CComObject<CDCCSink> CComDccSink;