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.
 
 
 
 
 
 

39 lines
1.0 KiB

// objects used to access the NAT resources
#include "stdafx.h"
#include "natobjs.h"
#include "resource.h"
//---------------------------------------------------------------------------------
CNATSite::CNATSite(CNATGroup* pGroup, CNATSiteComputer* pSiteComputer,
LPCTSTR pszPrivateIP, LPCTSTR pszName ):
m_pSiteComputer(pSiteComputer),
m_pGroup(pGroup)
{
m_csPrivateIP = pszPrivateIP;
m_csName = pszName;
ASSERT( pGroup );
ASSERT( m_pSiteComputer );
if ( m_pSiteComputer )
m_pSiteComputer->AddRef();
}
//---------------------------------------------------------------------------------
CNATSite::~CNATSite() // don't forget to decrement the refcount
{
ASSERT( m_pSiteComputer );
if ( m_pSiteComputer )
m_pSiteComputer->RemoveRef();
}
//---------------------------------------------------------------------------------
// Edit the properties of this Site - true if OK
BOOL CNATSite::OnProperties()
{
return TRUE;
}