Microsoft DirectX 8.0 (C++)

IDirectPlay8Client::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
Connection handle used when making the calls to IDirectPlay8LobbiedApplication::UpdateStatus.
pIDP8LobbiedApplication
Pointer to the IDirectPlay8LobbiedApplication object that specifies the application.
dwFlags
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: Available as a redistributable for Windows 2000 and later.
  Windows 95/98: Available as a redistributable for Windows 95 and later.
  Header: Declared in Dplay8.h.