IDBRoleServer.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
源码类别:

模拟服务器

开发平台:

C/C++

  1. /********************************************************************
  2. created: 2003/06/03
  3. file base: IDBRoleServer
  4. file ext: h
  5. author: liupeng
  6. purpose:
  7. *********************************************************************/
  8. #ifndef __INCLUDE_IDBROLESERVER_H__
  9. #define __INCLUDE_IDBROLESERVER_H__
  10. #include "S3DBInterface.h"
  11. BOOL InitDBInterface();
  12. void ReleaseDBInterface();
  13. void *GetRoleInfo( char * pRoleBuffer, char * strUser, int &nBufLen );
  14. int SaveRoleInfo( char * pRoleBuffer, const char * strUser, BOOL bAutoInsertWhenNoExistUser );
  15. int GetRoleListOfAccount( char * szAccountName, S3DBI_RoleBaseInfo * RoleBaseList, int nMaxCount );
  16. bool DeleteRole( const char * strUser );
  17. #endif // __INCLUDE_IDBROLESERVER_H__