2.2.13 TRANS_USERDATA_CONNECT_FAILED

The TRANS_USERDATA_CONNECT_FAILED packet indicates that a connection attempt failed. This packet begins with a TRANS_USERDATA_HEADER.


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 DirectX 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.

reply (variable): A variable length array of characters that contains a reply message identifying the connection failure, including the terminating null character.