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.

58 lines
1.2 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // PersistentDataChannel.h : Declaration of the CPersistentDataChannel
  4. //
  5. //
  6. // JPDup 2000.12.10
  7. //
  8. #pragma once
  9. #include "resource.h" // main symbols
  10. /////////////////////////////////////////////////////////////////////////////
  11. //
  12. // CPersistentDataChannel
  13. //
  14. class ATL_NO_VTABLE CPersistentDataChannel :
  15. public CComObjectRootEx<CComMultiThreadModel>,
  16. public CComCoClass<CPersistentDataChannel, &CLSID_PersistentDataChannel>,
  17. public IPersistentDataChannel
  18. {
  19. public:
  20. CPersistentDataChannel()
  21. {
  22. m_HandleDynamicRedirect=NULL;
  23. }
  24. DECLARE_REGISTRY_RESOURCEID(IDR_PERSISTENTDATACHANNEL)
  25. DECLARE_NOT_AGGREGATABLE(CPersistentDataChannel)
  26. DECLARE_PROTECT_FINAL_CONSTRUCT()
  27. BEGIN_COM_MAP(CPersistentDataChannel)
  28. COM_INTERFACE_ENTRY(IPersistentDataChannel)
  29. END_COM_MAP()
  30. //
  31. // IPersistentDataChannel
  32. //
  33. public:
  34. STDMETHODIMP GetChannelProperties(
  35. OUT ALG_PERSISTENT_DATA_CHANNEL_PROPERTIES ** ppProperties
  36. );
  37. STDMETHODIMP Cancel();
  38. //
  39. // Properties
  40. //
  41. ALG_PERSISTENT_DATA_CHANNEL_PROPERTIES m_Properties;
  42. HANDLE_PTR m_HandleDynamicRedirect;
  43. };