windows-nt/Source/XPSP1/NT/net/homenet/alg/exe/persistentdatachannel.cpp

42 lines
793 B
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
//
// PersistentDataChannel.cpp : Implementation of CPersistentDataChannel
//
#include "PreComp.h"
#include "PersistentDataChannel.h"
#include "AlgController.h"
/////////////////////////////////////////////////////////////////////////////
//
// CPersistentDataChannel
//
//
// Cancel the associated DynamicRedirect of the PersistenDataChannel
//
STDMETHODIMP CPersistentDataChannel::Cancel()
{
HRESULT hr = S_OK;
if ( m_HandleDynamicRedirect )
{
hr = g_pAlgController->GetNat()->CancelDynamicRedirect(m_HandleDynamicRedirect);
}
return hr;
}
//
// Return the propreties to an ALG Modules
//
STDMETHODIMP CPersistentDataChannel::GetChannelProperties(ALG_PERSISTENT_DATA_CHANNEL_PROPERTIES **ppProperties)
{
*ppProperties = &m_Properties;
return S_OK;
}