| 1 | /* |
| 2 | * Copyright (C) 2000 Ross Combs ([email protected]) |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License |
| 6 | * as published by the Free Software Foundation; either version 2 |
| 7 | * of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 17 | */ |
| 18 | #ifndef JUST_NEED_TYPES |
| 19 | #ifndef INCLUDED_CLIENT_CONNECT_PROTOS |
| 20 | #define INCLUDED_CLIENT_CONNECT_PROTOS |
| 21 | |
| 22 | // Diablo 1.09b |
| 23 | #define CLIENT_VERSIONID_DRTL 0x0000002a |
| 24 | #define CLIENT_GAMEVERSION_DRTL 0x01000902 |
| 25 | #define CLIENT_EXEINFO_DRTL "Diablo.exe 05/18/01 23:10:57 767760" |
| 26 | #define CLIENT_CHECKSUM_DRTL 0x23135c73 |
| 27 | |
| 28 | //plain Starcraft 1.15.2 |
| 29 | #define CLIENT_VERSIONID_STAR 0x000000d1 |
| 30 | #define CLIENT_GAMEVERSION_STAR 0x010f0200 |
| 31 | #define CLIENT_EXEINFO_STAR "StarCraft.exe 01/08/08 23:45:36 1220608" |
| 32 | #define CLIENT_CHECKSUM_STAR 0x91c0f907 |
| 33 | |
| 34 | |
| 35 | #define CLIENT_VERSIONID_SSHR 0x000000a5 /* FIXME: wrong? */ |
| 36 | #define CLIENT_GAMEVERSION_SSHR 0x0100080a /* FIXME: wrong? */ |
| 37 | #define CLIENT_EXEINFO_SSHR "starcraft.exe 03/08/99 22:41:50 1042432" /* FIXME: wrong */ |
| 38 | #define CLIENT_CHECKSUM_SSHR 0x12345678 |
| 39 | |
| 40 | //Broodwar 1.15.2 |
| 41 | #define CLIENT_VERSIONID_SEXP 0x000000d1 |
| 42 | #define CLIENT_GAMEVERSION_SEXP 0x010f0201 |
| 43 | #define CLIENT_EXEINFO_SEXP "StarCraft.exe 01/10/08 20:23:42 1220608" |
| 44 | #define CLIENT_CHECKSUM_SEXP 0x8fbdf18d |
| 45 | |
| 46 | //Warcraft 2 Battle.Net Edition 2.02b |
| 47 | #define CLIENT_VERSIONID_W2BN 0x0000004f |
| 48 | #define CLIENT_GAMEVERSION_W2BN 0x02000201 |
| 49 | #define CLIENT_EXEINFO_W2BN "Warcraft II BNE.exe 05/21/01 21:52:22 712704" |
| 50 | #define CLIENT_CHECKSUM_W2BN 0xff0d4c4a |
| 51 | |
| 52 | //Diablo 2 1.11b |
| 53 | #define CLIENT_VERSIONID_D2DV 0x0000000b |
| 54 | #define CLIENT_GAMEVERSION_D2DV 0x01000b00 |
| 55 | #define CLIENT_EXEINFO_D2DV "Game.exe 08/17/05 01:11:43 2125824" |
| 56 | #define CLIENT_CHECKSUM_D2DV 0x602f8323 |
| 57 | |
| 58 | //Diable 2 Expansion 1.11b |
| 59 | #define CLIENT_VERSIONID_D2XP 0x0000000b |
| 60 | #define CLIENT_GAMEVERSION_D2XP 0x01000b00 |
| 61 | #define CLIENT_EXEINFO_D2XP "Game.exe 08/17/05 01:12:38 2129920" |
| 62 | #define CLIENT_CHECKSUM_D2XP 0xbfc36199 |
| 63 | |
| 64 | //Warcraft 3 1.21b and Warcraft 3 Frozen Throne 1.21b |
| 65 | #define CLIENT_VERSIONID_WAR3 0x00000015 |
| 66 | #define CLIENT_GAMEVERSION_WAR3 0x0115019c |
| 67 | #define CLIENT_EXEINFO_WAR3 "war3.exe 07/19/07 18:41:12 409660" |
| 68 | #define CLIENT_CHECKSUM_WAR3 0x1b735294 |
| 69 | |
| 70 | #define CLIENT_AUTH_INFO_PROTOCOL 0x00000000 |
| 71 | #define CLIENT_AUTH_INFO_VERSIONID_D2DV 0x00000009 |
| 72 | #define CLIENT_AUTH_INFO_GAMELANG "enUS" |
| 73 | #define CLIENT_AUTH_INFO_LOCALIP 0x00000000 |
| 74 | #define CLIENT_AUTH_INFO_LANGID_USENGLISH 0x00000409 |
| 75 | #define CLIENT_AUTH_INFO_LANGSTR_USENGLISH "ENU" |
| 76 | #define CLIENT_AUTH_INFO_COUNTRYNAME_USA "United States" |
| 77 | |
| 78 | #include "compat/psock.h" |
| 79 | |
| 80 | namespace pvpgn |
| 81 | { |
| 82 | |
| 83 | namespace client |
| 84 | { |
| 85 | |
| 86 | extern int client_connect(char const * progname, char const * servname, unsigned short servport, char const * cdowner, char const * cdkey, char const * clienttag, int ignoreversion, struct sockaddr_in * saddr, unsigned int * sessionkey, unsigned int * sessionnum, char const * archtag, char const * gamelang); |
| 87 | |
| 88 | } |
| 89 | } |
| 90 | #endif |
| 91 | #endif |