Code Generator
Displaying All Constants for C++
// PacketID Constants for C++
// Generated by BNETDocs: Redux on November 21, 2024
// BNETDocs: Redux software written by Don Cullen AKA Kyro
// Original BNETDocs content compiled by Arta & Skywing
// Battle.net v1 Messages Constants
// -------------------
#define SID_NULL 0x00
#define SID_STOPADV 0x02
#define SID_SERVERLIST 0x04
#define SID_CLIENTID 0x05
#define SID_STARTVERSIONING 0x06
#define SID_REPORTVERSION 0x07
#define SID_STARTADVEX 0x08
#define SID_GETADVLISTEX 0x09
#define SID_ENTERCHAT 0x0A
#define SID_GETCHANNELLIST 0x0B
#define SID_JOINCHANNEL 0x0C
#define SID_CHATCOMMAND 0x0E
#define SID_CHATEVENT 0x0F
#define SID_LEAVECHAT 0x10
#define SID_LOCALEINFO 0x12
#define SID_FLOODDETECTED 0x13
#define SID_UDPPINGRESPONSE 0x14
#define SID_CHECKAD 0x15
#define SID_CLICKAD 0x16
#define SID_READMEMORY 0x17
#define SID_REGISTRY 0x18
#define SID_MESSAGEBOX 0x19
#define SID_STARTADVEX2 0x1A
#define SID_GAMEDATAADDRESS 0x1B
#define SID_STARTADVEX3 0x1C
#define SID_LOGONCHALLENGEEX 0x1D
#define SID_CLIENTID2 0x1E
#define SID_LEAVEGAME 0x1F
#define SID_ANNOUNCEMENT 0x20
#define SID_DISPLAYAD 0x21
#define SID_NOTIFYJOIN 0x22
#define SID_WRITECOOKIE 0x23
#define SID_READCOOKIE 0x24
#define SID_PING 0x25
#define SID_READUSERDATA 0x26
#define SID_WRITEUSERDATA 0x27
#define SID_LOGONCHALLENGE 0x28
#define SID_LOGONRESPONSE 0x29
#define SID_CREATEACCOUNT 0x2A
#define SID_SYSTEMINFO 0x2B
#define SID_GAMERESULT 0x2C
#define SID_GETICONDATA 0x2D
#define SID_GETLADDERDATA 0x2E
#define SID_FINDLADDERUSER 0x2F
#define SID_CDKEY 0x30
#define SID_CHANGEPASSWORD 0x31
#define SID_CHECKDATAFILE 0x32
#define SID_GETFILETIME 0x33
#define SID_QUERYREALMS 0x34
#define SID_PROFILE 0x35
#define SID_CDKEY2 0x36
#define SID_UNKNOWN_37 0x37
#define SID_UNKNOWN_39 0x39
#define SID_LOGONRESPONSE2 0x3A
#define SID_CHECKDATAFILE2 0x3C
#define SID_CREATEACCOUNT2 0x3D
#define SID_LOGONREALMEX 0x3E
#define SID_STARTVERSIONING2 0x3F
#define SID_QUERYREALMS2 0x40
#define SID_QUERYADURL 0x41
#define SID_CDKEY3 0x42
#define SID_WARCRAFTUNKNOWN 0x43
#define SID_WARCRAFTGENERAL 0x44
#define SID_NETGAMEPORT 0x45
#define SID_NEWS_INFO 0x46
#define SID_OPTIONALWORK 0x4A
#define SID_EXTRAWORK 0x4B
#define SID_REQUIREDWORK 0x4C
#define SID_TOURNAMENT 0x4E
#define SID_AUTH_INFO 0x50
#define SID_AUTH_CHECK 0x51
#define SID_AUTH_ACCOUNTCREATE 0x52
#define SID_AUTH_ACCOUNTLOGON 0x53
#define SID_AUTH_ACCOUNTLOGONPROOF 0x54
#define SID_AUTH_ACCOUNTCHANGE 0x55
#define SID_AUTH_ACCOUNTCHANGEPROOF 0x56
#define SID_AUTH_ACCOUNTUPGRADE 0x57
#define SID_AUTH_ACCOUNTUPGRADEPROOF 0x58
#define SID_SETEMAIL 0x59
#define SID_RESETPASSWORD 0x5A
#define SID_CHANGEEMAIL 0x5B
#define SID_SWITCHPRODUCT 0x5C
#define SID_REPORTCRASH 0x5D
#define SID_WARDEN 0x5E
#define SID_GAMEPLAYERSEARCH 0x60
#define SID_FRIENDSLIST 0x65
#define SID_FRIENDSUPDATE 0x66
#define SID_FRIENDSADD 0x67
#define SID_FRIENDSREMOVE 0x68
#define SID_FRIENDSPOSITION 0x69
#define SID_CLANFINDCANDIDATES 0x70
#define SID_CLANINVITEMULTIPLE 0x71
#define SID_CLANCREATIONINVITATION 0x72
#define SID_CLANDISBAND 0x73
#define SID_CLANMAKECHIEFTAIN 0x74
#define SID_CLANINFO 0x75
#define SID_CLANQUITNOTIFY 0x76
#define SID_CLANINVITATION 0x77
#define SID_CLANREMOVEMEMBER 0x78
#define SID_CLANINVITATIONRESPONSE 0x79
#define SID_CLANRANKCHANGE 0x7A
#define SID_CLANSETMOTD 0x7B
#define SID_CLANMOTD 0x7C
#define SID_CLANMEMBERLIST 0x7D
#define SID_CLANMEMBERREMOVED 0x7E
#define SID_CLANMEMBERSTATUSCHANGE 0x7F
#define SID_CLANMEMBERRANKCHANGE 0x81
#define SID_CLANMEMBERINFORMATION 0x82
// Battle.net UDP Messages Constants
// -------------------
#define PKT_STORM 0x00
#define PKT_CLIENTREQ 0x03
#define PKT_SERVERPING 0x05
#define PKT_KEEPALIVE 0x07
#define PKT_CONNTEST 0x08
#define PKT_CONNTEST2 0x09
// Realm Messages Constants
// -------------------
#define MCP_STARTUP 0x01
#define MCP_CHARCREATE 0x02
#define MCP_CREATEGAME 0x03
#define MCP_JOINGAME 0x04
#define MCP_GAMELIST 0x05
#define MCP_GAMEINFO 0x06
#define MCP_CHARLOGON 0x07
#define MCP_CHARDELETE 0x0A
#define MCP_REQUESTLADDERDATA 0x11
#define MCP_MOTD 0x12
#define MCP_CANCELGAMECREATE 0x13
#define MCP_CREATEQUEUE 0x14
#define MCP_CHARRANK 0x16
#define MCP_CHARLIST 0x17
#define MCP_CHARUPGRADE 0x18
#define MCP_CHARLIST2 0x19
// D2GS Messages Constants
// -------------------
#define D2GS_WALKTOLOCATION 0x01
#define D2GS_WALKTOENTITY 0x02
#define D2GS_RUNTOLOCATION 0x03
#define D2GS_RUNTOENTITY 0x04
#define D2GS_LEFTSKILLONLOCATION 0x05
#define D2GS_LEFTSKILLONENTITY 0x06
#define D2GS_LEFTSKILLONENTITYEX 0x07
#define D2GS_LEFTSKILLONLOCATIONEX 0x08
#define D2GS_LEFTSKILLONENTITYEX2 0x09
#define D2GS_LEFTSKILLONENTITYEX3 0x0A
#define D2GS_RIGHTSKILLONLOCATION 0x0C
#define D2GS_RIGHTSKILLONENTITY 0x0D
#define D2GS_RIGHTSKILLONENTITYEX 0x0E
#define D2GS_RIGHTSKILLONLOCATIONEX 0x0F
#define D2GS_CHARTOOBJ 0x10
#define D2GS_RIGHTSKILLONENTITYEX2 0x10
#define D2GS_RIGHTSKILLONENTITYEX3 0x11
#define D2GS_INTERACTWITHENTITY 0x13
#define D2GS_OVERHEADMESSAGE 0x14
#define D2GS_PICKUPITEM 0x16
#define D2GS_DROPITEM 0x17
#define D2GS_ITEMTOBUFFER 0x18
#define D2GS_SMALLGOLDPICKUP 0x19
#define D2GS_PICKUPBUFFERITEM 0x19
#define D2GS_ITEMTOBODY 0x1A
#define D2GS_SWAP2HANDEDITEM 0x1B
#define D2GS_PICKUPBODYITEM 0x1C
#define D2GS_SETBYTEATTR 0x1D
#define D2GS_SWITCHBODYITEM 0x1D
#define D2GS_SETWORDATTR 0x1E
#define D2GS_SETDWORDATTR 0x1F
#define D2GS_SWITCHINVENTORYITEM 0x1F
#define D2GS_USEITEM 0x20
#define D2GS_STACKITEM 0x21
#define D2GS_REMOVESTACKITEM 0x22
#define D2GS_ITEMTOBELT 0x23
#define D2GS_REMOVEBELTITEM 0x24
#define D2GS_SWITCHBELTITEM 0x25
#define D2GS_USEBELTITEM 0x26
#define D2GS_INSERTSOCKETITEM 0x28
#define D2GS_SCROLLTOTOME 0x29
#define D2GS_ITEMTOCUBE 0x2A
#define D2GS_UNSELECTOBJ 0x2D
#define D2GS_NPCINIT 0x2F
#define D2GS_NPCCANCEL 0x30
#define D2GS_NPCBUY 0x32
#define D2GS_NPCSELL 0x33
#define D2GS_NPCTRADE 0x38
#define D2GS_CHARACTERPHRASE 0x3F
#define D2GS_WAYPOINT 0x49
#define D2GS_TRADE 0x4F
#define D2GS_DROPGOLD 0x50
#define D2GS_WORLDOBJECT 0x51
#define D2GS_(COMP)STARTGAME 0x5C
#define D2GS_PARTY 0x5E
#define D2GS_POTIONTOMERCENARY 0x61
#define D2GS_GAMELOGON 0x68
#define D2GS_ENTERGAMEENVIRONMENT 0x6A
#define D2GS_PING 0x6D
#define D2GS_TRADEACTION 0x77
#define D2GS_LOGONRESPONSE 0x7A
#define D2GS_UNIQUEEVENTS 0x89
#define D2GS_STARTLOGON 0xAF
// W3GS Messages Constants
// -------------------
#define W3GS_PING_FROM_HOST 0x01
#define W3GS_SLOTINFOJOIN 0x04
#define W3GS_REJECTJOIN 0x05
#define W3GS_PLAYERINFO 0x06
#define W3GS_PLAYERLEFT 0x07
#define W3GS_PLAYERLOADED 0x08
#define W3GS_SLOTINFO 0x09
#define W3GS_COUNTDOWN_START 0x0A
#define W3GS_COUNTDOWN_END 0x0B
#define W3GS_INCOMING_ACTION 0x0C
#define W3GS_CHAT_FROM_HOST 0x0F
#define W3GS_LEAVERS 0x1B
#define W3GS_REQJOIN 0x1E
#define W3GS_LEAVEREQ 0x21
#define W3GS_GAMELOADED_SELF 0x23
#define W3GS_OUTGOING_ACTION 0x26
#define W3GS_OUTGOING_KEEPALIVE 0x27
#define W3GS_CHAT_TO_HOST 0x28
#define W3GS_SEARCHGAME 0x2F
#define W3GS_GAMEINFO 0x30
#define W3GS_CREATEGAME 0x31
#define W3GS_REFRESHGAME 0x32
#define W3GS_DECREATEGAME 0x33
#define W3GS_PING_FROM_OTHERS 0x35
#define W3GS_PONG_TO_OTHERS 0x36
#define W3GS_CLIENTINFO 0x37
#define W3GS_MAPCHECK 0x3D
#define W3GS_STARTDOWNLOAD 0x3F
#define W3GS_MAPSIZE 0x42
#define W3GS_MAPPART 0x43
#define W3GS_MAPPARTOK 0x44
#define W3GS_MAPPARTNOTOK 0x45
#define W3GS_PONG_TO_HOST 0x46
#define W3GS_INCOMING_ACTION2 0x48
// BotNet Messages Constants
// -------------------
#define PACKET_IDLE 0x00
#define PACKET_LOGON 0x01
#define PACKET_STATSUPDATE 0x02
#define PACKET_DATABASE 0x03
#define PACKET_MESSAGE 0x04
#define PACKET_CYCLE 0x05
#define PACKET_USERINFO 0x06
#define PACKET_USERLOGGINGOFF 0x07
#define PACKET_BROADCASTMESSAGE 0x07
#define PACKET_COMMAND 0x08
#define PACKET_CHANGEDBPASSWORD 0x09
#define PACKET_BOTNETVERSION 0x0A
#define PACKET_BOTNETCHAT 0x0B
#define PACKET_ACCOUNT 0x0D
#define PACKET_CHATDROPOPTIONS 0x10
// BNLS Messages Constants
// -------------------
#define BNLS_NULL 0x00
#define BNLS_CDKEY 0x01
#define BNLS_LOGONCHALLENGE 0x02
#define BNLS_LOGONPROOF 0x03
#define BNLS_CREATEACCOUNT 0x04
#define BNLS_CHANGECHALLENGE 0x05
#define BNLS_CHANGEPROOF 0x06
#define BNLS_UPGRADECHALLENGE 0x07
#define BNLS_UPGRADEPROOF 0x08
#define BNLS_VERSIONCHECK 0x09
#define BNLS_CONFIRMLOGON 0x0A
#define BNLS_HASHDATA 0x0B
#define BNLS_CDKEY_EX 0x0C
#define BNLS_CHOOSENLSREVISION 0x0D
#define BNLS_AUTHORIZE 0x0E
#define BNLS_AUTHORIZEPROOF 0x0F
#define BNLS_REQUESTVERSIONBYTE 0x10
#define BNLS_VERIFYSERVER 0x11
#define BNLS_RESERVESERVERSLOTS 0x12
#define BNLS_SERVERLOGONCHALLENGE 0x13
#define BNLS_SERVERLOGONPROOF 0x14
#define BNLS_VERSIONCHECKEX 0x18
#define BNLS_VERSIONCHECKEX2 0x1A
#define BNLS_WARDEN 0x7D
#define BNLS_IPBAN 0xFF
// SCGP Messages Constants
// -------------------
#define SCGP_GAMECHATPUBLIC 0x00
#define SCGP_GAMECHATPRIVATE 0x01
#define SCGP_GAMECHATNULL 0x02
#define SCGP_NOP 0x05
#define SCGP_GAMESTART 0x3C
#define SCGP_MAPPERCENT 0x3D
#define SCGP_SLOTUPDATE 0x3E
#define SCGP_HUMAN 0x3F
#define SCGP_UNKNOWNRESPONSE 0x40
#define SCGP_CHANGERACE 0x41
#define SCGP_CHANGETEAM 0x42
#define SCGP_CHANGETEAMUMS 0x43
#define SCGP_CHANGESLOTSTATE 0x44
#define SCGP_SLOTSWITCH 0x45
#define SCGP_SEED 0x48
#define SCGP_PLAYERJOIN 0x49
#define SCGP_ROOMDATA 0x4A
#define SCGP_FORCENAMES 0x4B
#define SCGP_LOBBYCHAT 0x4C
#define SCGP_REJECT 0x4E
#define SCGP_MAP 0x4F
#define SCGP_UNKNOWNREQUEST 0x50