Platform SDK: DirectX

DirectPlayLobby3.SetLobbyMessageEvent

The DirectPlayLobby3.SetLobbyMessageEvent method registers an event that will be set when a lobby message is received. The application must call this method if it needs to synchronize with messages. The lobby client can call this method to change the events specified in the call to the DirectPlayLobby3.RunApplication method.

object.SetLobbyMessageEvent(applicationId As Long, _
    receiveEvent As Long) 

Parameters

object
Object expression that resolves to a DirectPlayLobby3 object.
applicationId
Identifies which application the event is associated with when called from a lobby client (communicating with several applications). This ID number is obtained from RunApplication. When called from an application (communicating with only one lobby client), this parameter must be 0.
receiveEvent
Handle of the event to be set when a message is received.

Error Codes

If the method fails, an error is raised and Err.Number may be set to one of the following values:

DPERR_GENERIC
DPERR_INVALIDINTERFACE
DPERR_INVALIDOBJECT
DPERR_INVALIDPARAMS
DPERR_OUTOFMEMORY

See Also

DirectPlayLobby3.ReceiveLobbyMessage, DirectPlayLobby3.SendLobbyMessage, DirectX7.CreateEvent