Errors are represented by negative values and cannot be combined. This table lists the values that can be returned by all IDirectPlay2 and IDirectPlayLobby methods. For a list of the error values each method can return, see the individual method descriptions.
A non-NULL value was passed for the pUnkOuter parameter in DirectPlayCreate, DirectPlayLobbyCreate, or IDirectPlayLobby::Connect.
The request completed successfully.
The session is full or an incorrect password was supplied.
The requested operation cannot be performed because there are existing active players.
This object is already initialized.
The application has not been started yet.
The data buffer is too large to store.
The supplied buffer is not large enough to contain the requested data.
The DirectPlay message queue is full.
The player cannot be added to the session.
A new group cannot be created.
A new player cannot be created.
Cannot start the application.
A new session cannot be created.
The capabilities of the DirectPlay object have not been determined yet. This error will occur if the DirectPlay object is implemented on a connectivity solution that requires polling to determine available bandwidth and latency.
An exception occurred when processing the request.
An undefined error condition occurred.
The flags passed to this function are invalid.
The interface parameter is invalid.
The DirectPlay object pointer is invalid.
One or more of the parameters passed to the function are invalid.
The player ID is not recognized as a valid player ID for this game session.
The communication link that DirectPlay is attempting to use is not capable of this function.
No communication link was established.
The interface is not supported.
There are no messages to be received.
No name server (host) could be found or created. A host must exist to create a player.
There are no active players in the session.
There are no existing sessions for this game.
Returned by the IDirectPlayLobby::Connect method if the application was not started by using the IDirectPlayLobby::RunApplication method.
There is insufficient memory to perform the requested operation.
A player has lost the connection to the session.
The message buffer passed to the IDirectPlay2::Send method is larger than allowed.
The connection to the session has been lost.
The operation could not be completed in the specified time.
The requested function is not available at this time.
An unknown application was specified.
The function is not available in this implementation.
The user canceled the connection process during a call to the IDirectPlay2::Open method.