Files
Sun1602/Tools/SunUpdateManager/SunUpdateServer/UserInfo.cpp
T
2022-10-26 12:25:11 +08:00

39 lines
693 B
C++

#include "StdAfx.h"
#include ".\userinfo.h"
#include <PublicDefine.h>
UserInfo::UserInfo(void)
{
m_dwUserGUID = 0;
ZeroMemory( m_szID, MAX_USERID_SIZE );
ZeroMemory( m_szPassWord, MAX_PASSWORD_SIZE );
m_byGrade = USER_GRADE_NORMAL;
ZeroMemory( m_szIP, MAX_IP_SIZE );
}
UserInfo::~UserInfo(void)
{
}
VOID UserInfo::SetUserID( const TCHAR* pszID )
{
if( !pszID ) return;
strncpy( m_szID, pszID, MAX_USERID_SIZE );
}
VOID UserInfo::SetUserPassWord( const TCHAR* pszPassWord )
{
if( !pszPassWord ) return;
strncpy( m_szPassWord, pszPassWord, MAX_PASSWORD_SIZE );
}
VOID UserInfo::SetUserIP( const TCHAR* pszIP )
{
if( !pszIP ) return;
strncpy( m_szIP, pszIP, MAX_IP_SIZE );
}