Source code of Windows XP (NT5)
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.

41 lines
793 B

  1. //
  2. // PersistentDataChannel.cpp : Implementation of CPersistentDataChannel
  3. //
  4. #include "PreComp.h"
  5. #include "PersistentDataChannel.h"
  6. #include "AlgController.h"
  7. /////////////////////////////////////////////////////////////////////////////
  8. //
  9. // CPersistentDataChannel
  10. //
  11. //
  12. // Cancel the associated DynamicRedirect of the PersistenDataChannel
  13. //
  14. STDMETHODIMP CPersistentDataChannel::Cancel()
  15. {
  16. HRESULT hr = S_OK;
  17. if ( m_HandleDynamicRedirect )
  18. {
  19. hr = g_pAlgController->GetNat()->CancelDynamicRedirect(m_HandleDynamicRedirect);
  20. }
  21. return hr;
  22. }
  23. //
  24. // Return the propreties to an ALG Modules
  25. //
  26. STDMETHODIMP CPersistentDataChannel::GetChannelProperties(ALG_PERSISTENT_DATA_CHANNEL_PROPERTIES **ppProperties)
  27. {
  28. *ppProperties = &m_Properties;
  29. return S_OK;
  30. }