Main Page | Modules | Class List | File List | Class Members | File Members

CDKeyDefines.h

00001 /***SDOC*******************************************************************************************
00002  *                                UbiSoft Network Development
00003  *                                ---------------------------
00004  *
00005  * FILE........: CDKeyDefines.h
00006  * CREATION....: May 2002
00007  * AUTHOR......: Guillaume Plante
00008  *
00009  * DESCRIPTION.: This file contains numeric definition for the CDKey-system size and error #
00010  *
00011  **************************************************************************************************
00012  *                                         FILE HISTORY
00013  **************************************************************************************************
00014  *
00015  * DATE........: 
00016  * AUTHOR......: 
00017  * DESCRIPTION.: 
00018  *
00019  ******************************************************************************************EDOC***/
00020 
00021 
00022 #ifndef _CDKEY_DEFINES_H_
00023 #define _CDKEY_DEFINES_H_
00024 
00025 #include "GSTypes.h"
00026 
00027 //-------------------- player status ------------------------------
00028 
00029 enum CDKEY_PLAYER_STATUS
00030 {
00031         E_PLAYER_UNKNOWN,
00032         E_PLAYER_INVALID,
00033         E_PLAYER_VALID
00034 };
00035 
00036 //-------------------- defined sizes ------------------------------
00037 
00038 const GSuint ACTIVATION_ID_SIZE                 = 16;
00039 const GSuint AUTHORIZATION_ID_SIZE              = 20;
00040 const GSuint CDKEY_SIZE                                 = 23;
00041 const GSuint CDKEY_ID_SIZE                              = 20;
00042 const GSuint CHALLENGE_SIZE                             = 5;
00043 const GSuint VALIDATION_KEY_SIZE                = 20;
00044 const GSuint GLOBAL_ID_SIZE             = 16;
00045 
00046 //-------------------- error codes --------------------------------
00047 
00048 const GSushort    ERRORCDKEY_SUCCESS                            = 0;
00049 const GSushort    ERRORCDKEY_TIMEOUT                                                    = 1;
00050 const GSushort    ERRORCDKEY_INVALID_CDKEY                                              = 2;
00051 const GSushort    ERRORCDKEY_NOT_CHALLENGED                                             = 3;
00052 const GSushort    ERRORCDKEY_ALREADY_ONLINE                                             = 4;
00053 const GSushort    ERRORCDKEY_INTERNAL_ERROR                                             = 5;
00054 
00055 #endif //_CDKEY_DEFINES_H_

Ubi.com GameService SDK - ©UbiSoft Entertainment 2002
GameService development team