testfunctiongather.cpp
来自「网络游戏龙族服务器端管理工具 rmtool 源代码」· C++ 代码 · 共 28 行
CPP
28 行
#include "stdafx.h"
#include "RMTool.h"
#include "testFunctionGather.h"
#include "AdminDlg.h"
void SetUserAuthority( int Authority )
{
CRMToolApp *pApp = (CRMToolApp*)AfxGetApp();
_ASSERTE( pApp != NULL );
pApp->m_LogInfo.LoginType = Authority;
}
int GetUserAuthority( int iType) //iType = 0 : 荤侩磊狼 鼻茄 //iType =1 : 秦寸痢荐狼 鼻茄.
{
if( iType == 0)
{
CRMToolApp *pApp = (CRMToolApp*)AfxGetApp();
return pApp->m_LogInfo.LoginType;
}
else if( iType ==1 )
return cAdmindlg.m_Type;
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?