IDirectPlayLobby::SendLobbyMessage

HRESULT SendLobbyMessage( DWORD dwFlags,

DWORD dwAppID, LPVOID lpData,

DWORD dwDataSize);

Sends a message between the application and the lobby client.

·Returns DP_OK if successful, or one of the following error values otherwise:

DPERR_APPNOTSTARTED

DPERR_BUFFERTOOLARGE

DPERR_GENERIC

DPERR_INVALIDINTERFACE

DPERR_INVALIDOBJECT

DPERR_INVALIDPARAMS

DPERR_OUTOFMEMORY

DPERR_TIMEOUT

dwFlags

Reserved; must be zero.

dwAppID

Identifies which application to send a message to when called from a lobby client (that communicates with several applications). When called from an application (that communicates with only one lobby client), this parameter must be zero. This ID is obtained by using the IDirectPlayLobby::RunApplication method.

lpData

Address of the buffer containing the message to send.

dwDataSize

Size, in bytes, of the buffer.