Microsoft DirectX 8.1 (C++)

IDirectPlay8Server::RegisterLobby

Allows launched applications to automatically propagate game status to the lobby.

HRESULT RegisterLobby(
const DPNHANDLE dpnHandle,
IDirectPlay8LobbiedApplication *const pIDP8LobbiedApplication,
const DWORD dwFlags
);

Parameters

dpnHandle
[in] Connection handle used when making the calls to IDirectPlay8LobbiedApplication::UpdateStatus.
pIDP8LobbiedApplication
[in] Pointer to the IDirectPlay8LobbiedApplication object that specifies the application.
dwFlags
[in] One of the following flags.
DPNLOBBY_REGISTER
Registers the lobby with the application.
DPNLOBBY_UNREGISTER
Unregisters the lobby with the application.

Return Values

Returns S_OK if successful, or the following error value.

DPNERR_INVALIDPARAM

Requirements

  Windows NT/2000/XP: Available as a redistributable for Windows 2000 and later.
  Windows 98/Me: Available as a redistributable for Windows 98 and later.
  Header: Declared in Dplay8.h.