Microsoft DirectX 8.0 (Visual Basic)

DirectPlay8LobbyClient.RegisterMessageHandler

Registers a message handler function that receives notifications about changes in the state of the lobby client and receives messages from the lobbied application.

RegisterMessageHandler(lobbyEvent As DirectPlay8LobbyEvent)

Parts

lobbyEvent
DirectPlay8LobbyEvent object that is used to receive notifications.

Error Codes

If the method fails, Err.Number can be set to one of the following values.

DPNERR_ALREADYREGISTERED
DPNERR_INVALIDPARAM

Remarks

If you want to register a new message handler, you must first call DirectPlay8LobbyClient.UnRegisterMessageHandler to unregister the current message handler.