Microsoft DirectX 8.0 (C++)

IDirectPlay8LobbyClient::ReleaseApplication

Releases a lobbied application and closes the connection between the lobby client and the application. This method should be called whenever a lobby client has finished its session with an application.

HRESULT ReleaseApplication(
const DPNHANDLE hApplication.
const DWORD dwFlags
);

Parameters

hApplication
The DPNHANDLE of the lobbied application to release. This value is set in the phApplication parameter of the IDirectPlay8LobbyClient::ConnectApplication method. You may also specify the following flag.
DPLHANDLE_ALLAPPLICATIONS
All application connections will be released.
dwFlags
Reserved, must be 0.

Return Values

Returns S_OK if successful, or one of the following error values.

DPNERR_INVALIDFLAGS
DPNERR_INVALIDHANDLE
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 Dplobby8.h.