#ifndef __NPGAMELIB_H__ #define __NPGAMELIB_H__ /// Definitions // Callback Message #define NPGAMEMON_UNDEFINED 1000 // Undefined message #define NPGAMEMON_COMM_ERROR 1001 // Communication error #define NPGAMEMON_COMM_CLOSE 1002 // Communication closing #define NPGAMEMON_SPEEDHACK 1011 // SpeedHack detected #define NPGAMEMON_GAMEHACK_KILLED 1012 // GameHack killed #define NPGAMEMON_GAMEHACK_DETECT 1013 // GameHack detected #define NPGAMEMON_INIT_ERROR 1014 // GameMon Init Error #define NPGAMEMON_GAMEHACK_DOUBT 1015 // GameHack doubt #define NPGAMEMON_CHECK_CSAUTH 1016 // CSAuth #define NPGAMEMON_CHECK_CSAUTH2 1017 // CSAuth2 // Error Code 110 - 300 #define NPGAMEMON_ERROR_EXIST 110 // GameMon Already Exist #define NPGAMEMON_ERROR_CREATE 111 // GameGuard Directory Create Error #define NPGAMEMON_ERROR_NPSCAN 112 // npscan.des Error #define NPGAMEMON_ERROR_THREAD 113 // CreateThread Error #define NPGAMEMON_ERROR_INIT 114 // GameMon Initialize Error #define NPGAMEMON_ERROR_GAME_EXIST 115 // Game Instance Already Exist #define NPGAMEMON_ERROR_AUTH_INI 120 // .ini Authentication Fail #define NPGAMEMON_ERROR_AUTH_NPGMUP 121 // npgmup.des Authentication Fail #define NPGAMEMON_ERROR_AUTH_GAMEMON 122 // GameMon.des Authentication Fail #define NPGAMEMON_ERROR_AUTH_NEWUP 123 // npgmup.des.new Auth Fail #define NPGAMEMON_ERROR_AUTH_GAMEGUARD 124 // GameGuard.des Authentication Fail #define NPGAMEMON_ERROR_DECRYPT 130 // .ini File Decryption Fail #define NPGAMEMON_ERROR_CORRUPT_INI 141 // Corrupt ini file Error #define NPGAMEMON_ERROR_CORRUPT_INI2 142 // Not match GameName in ini file Error #define NPGAMEMON_ERROR_NFOUND_INI 150 // ini File not Found #define NPGAMEMON_ERROR_NFOUND_NPGMUP 151 // npgmup.des not found #define NPGAMEMON_ERROR_NFOUND_NEWUP 152 // npgmup.des.new not found #define NPGAMEMON_ERROR_NFOUND_GG 153 // GameGuard.des not found #define NPGAMEMON_ERROR_NFOUND_GM 154 // GameMon.des not found #define NPGAMEMON_ERROR_CRYPTOAPI 155 // rsabase.dll is corrupted #define NPGAMEMON_ERROR_COMM 160 // Communication Init Error #define NPGAMEMON_ERROR_EXECUTE 170 // GameMon Execute Error #define NPGAMEMON_ERROR_EVENT 171 // GameMon Event Create Error #define NPGAMEMON_ERROR_NPGMUP 180 // npgmup.dll Error #define NPGAMEMON_ERROR_MOVE_INI 191 // Move ini Error #define NPGAMEMON_ERROR_MOVE_NEWUP 192 // Move npgmup.des.new Error #define NPGAMEMON_ERROR_ILLEGAL_PRG 200 // Detected a illegal program #define NPGAMEMON_ERROR_GAMEMON 210 // GameMon Init Error #define NPGAMEMON_ERROR_SPEEDCHECK 220 // SpeedCheck Init Error #define NPGAMEMON_ERROR_GAMEGUARD 230 // GameGuard Init Error // Error Code 310 - 400 // Update Error Code #define NPGMUP_ERROR_DOWNCFG 340 // Download Error #define NPGMUP_ERROR_ABORT 350 // Canceled by User #define NPGMUP_ERROR_AUTH 360 // File Authentication Error #define NPGMUP_ERROR_AUTH_INI 361 // .ini Authentication Error #define NPGMUP_ERROR_DECRYPT 370 // .ini Decrypt Error #define NPGMUP_ERROR_CONNECT 380 // Connect to update server Fail #define NPGMUP_ERROR_INI 390 // .ini is corrupted extern const DWORD NPGAMEMON_SUCCESS; // GameMon Initialize Success // gameguard auth data typedef struct _GG_AUTH_DATA { DWORD dwIndex; DWORD dwValue1; DWORD dwValue2; DWORD dwValue3; } GG_AUTH_DATA, *PGG_AUTH_DATA;