Files
Sun1602/Tools/WiseClient/Information/Account/AccountInfo.cpp
T
2022-10-26 12:25:11 +08:00

25 lines
349 B
C++

#include "stdafx.h"
#include "AccountInfo.h"
AccountInfo::~AccountInfo()
{
if(INVALID_ACCOUNT_ID != m_ID)
Free();
}
BOOL AccountInfo::Alloc()
{
m_ID = Manipulater::AllocNewAccount();
if(INVALID_ACCOUNT_ID == m_ID)
return FALSE;
return TRUE;
}
BOOL AccountInfo::Free()
{
DEBUGGING_CODE_L1("");
return Manipulater::FreeAccount(m_ID);
}