Microsoft DirectX 8.1 (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
[in] The DPNHANDLE of the lobbied application to release. This value is set in the phApplication parameter of the IDirectPlay8LobbyClient::ConnectApplication method. You can also specify the following flag.
DPLHANDLE_ALLCONNECTIONS
All application connections will be released.
dwFlags
[in] 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/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 Dplobby8.h.