Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Peer.RegisterLobby

Registers or unregisters an application with a lobby.

RegisterLobby(dpnHandle As Long, _
    LobbyApp As DirectPlay8LobbiedApplication, _
    lFlags As Long)

Parts

dpnHandle
Connection handle to be used when making the calls to DirectPlay8LobbiedApplication.UpdateStatus.
LobbyApp
DirectPlay8LobbiedApplication object that specifies the application.
lFlags
Set this parameter to one of the two CONST_DPNLOBBY enumeration values to indicate whether the application is to be registered or unregistered.

Error Codes

If the method fails, Err.Number can be set to the following value.

DPNERR_INVALIDPARAM

Remarks

When an application is registered with a lobby, the lobby client automatically receives notifications of changes in game status.