windows-nt/Source/XPSP1/NT/net/homenet/alg/exe/persistentdatachannel.cpp
2020-09-26 16:20:57 +08:00

42 lines
793 B
C++

//
// 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;
}