1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 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 Server/host is closing or host is migrating. 0x80158050 DPNERR_NOTHOST Attempting to connect to an application that is not the host/server. 0x80158530 DPNERR_INVALIDINTERFACE Nonclient attempting to connect to a server. Nonpeer attempting to connect to a host/peer. 0x80158390 DPNERR_INVALIDVERSION Version passed in is not a valid DirectPlay version. 0x80158460 DPNERR_INVALIDINSTANCE Instance GUID is not valid for this game session. 0x80158380 DPNERR_INVALIDAPPLICATION Application GUID is not valid for this application. 0x80158300 DPNERR_INVALIDPASSWORD Password passed in does not match what is expected. 0x80158410 DPNERR_HOSTREJECTEDCONNECTION Application-specific failure for not allowing connection. 0x80158260 DPNERR_GENERIC An undetermined error occurred inside a subsystem. This includes uncommon errors that cannot be generalized. 0x80004005 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.
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.
%5BMS-DPDX%5D-160714.docx