Platform SDK: DirectX

IDirectPlayLobby3::RegisterApplication

The IDirectPlayLobby3::RegisterApplication method registers a lobby-aware application with DirectPlay. An application must be registered so that a DirectPlay lobby can launch it.

The application needs to be registered only once. The application must also be unregistered (see IDirectPlayLobby3::UnregisterApplication) when it is uninstalled.

HRESULT RegisterApplication( 
  DWORD  dwFlags, 
  LPVOID lpAppDesc
);

Parameters

dwFlags
Reserved; must be 0.
lpAppDesc
Pointer to a DPAPPLICATIONDESC or DPAPPLICATIONDESC2 structure that has been filled in with all the registration values for the application.

Return Values

Returns DP_OK if successful, or one of the following error values otherwise:

DPERR_INVALIDFLAGS
DPERR_INVALIDPARAMS

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dplobby.h.
  Import Library: Use dplayx.lib.

See Also

IDirectPlayLobby3::UnregisterApplication, DirectXRegisterApplication