0 1 2 3 4 5 6 7 8 9 1 0 1 2 3 4 5 6 7 8 9 2 0 1 2 3 4 5 6 7 8 9 3 0 1 dwPacketType hResultCode dwReplyOffset dwReplySize reply (variable) ... dwPacketType (4 bytes): A 32-bit integer that indicates the packet type. This field MUST be set to 0x000000C5 to denote that this message indicates that a connection attempt failed. hResultCode (4 bytes): A 32-bit integer that specifies the result code. Value Meaning DPNERR_ALREADYCLOSING 0x80158050 Server/host is closing or host is migrating. DPNERR_NOTHOST 0x80158530 Attempting to connect to an application that is not the host/server. DPNERR_INVALIDINTERFACE 0x80158390 Nonclient attempting to connect to a server. Nonpeer attempting to connect to a host/peer. DPNERR_INVALIDVERSION 0x80158460 Version passed in is not a valid DirectPlay version. DPNERR_INVALIDINSTANCE 0x80158380 Instance GUID is not valid for this game session. DPNERR_INVALIDAPPLICATION 0x80158300 Application GUID is not valid for this application. DPNERR_INVALIDPASSWORD 0x80158410 Password passed in does not match what is expected. DPNERR_HOSTREJECTEDCONNECTION 0x80158260 Application-specific failure for not allowing connection. DPNERR_GENERIC 0x80004005 An undetermined error occurred inside a subsystem. This includes uncommon errors that cannot be generalized. dwReplyOffset (4 bytes): A 32-bit integer that specifies the offset of the reply field from the end of the dwPacketType field to the reply field. dwReplySize (4 bytes): A 32-bit integer that specifies the size in bytes of the data in the reply field.
Protocol syntax refers to data elements (such as packets, structures, enumerations, and methods) as well as interfaces. Protocol revision refers to changes made to a protocol that affect the bits that are sent over the wire. The changes made to this document are listed in the following table. For more information, please contact . Section Tracking number (if applicable) and description Major change (Y or N) Change type TRANS_COMMAND_CONNECT Updated for Windows. Y Product behavior note updated. TRANS_COMMAND_CONNECT_ACCEPT Updated for Windows. Y Product behavior note updated. TRANS_USERDATA_ADD_PLAYER Updated for Windows. Y Product behavior note updated. TRANS_USERDATA_PLAYER_CONNECT_INFO Updated for Windows. Y Product behavior note updated. TRANS_USERDATA_SEND_SESSION_INFO Updated for Windows. Y Product behavior note updated. Appendix A: Product Behavior Updated the applicability list. Y Content update.
Index _ 15 15 A Abstract data model client ( 59, 70) 59 server ( 59, 70) 68 13 C 13 79 Chat messages 67 61 Chat session 65 65 Client abstract data model ( 59, 70) higher-layer triggered events ( 61, 71) initialization ( 60, 71) local events ( 70, 71) message processing ( 61, 71) 71 sequencing rules ( 61, 71) timer events ( 69, 71) timers ( 59, 71) 72 72 67 67 D Data model - abstract client ( 59, 70) 59 server ( 59, 70) DirectPlay session 63 61 61 52 54 55 54 55 56 50 52 15 DXDiag chat session example 72 72 17 E 18 18 19 19 Examples 72 72 72 F 14 G 7 H Higher-layer triggered events client ( 61, 71) server ( 61, 70) I 75 55 56 75 11 Initialization client ( 60, 71) server ( 60, 70) 7 L Local events client ( 70, 71) server ( 70, 70) M Message processing client ( 61, 71) server ( 61, 70) Messages 15 61 52 54 55 56 15 17 18 19