Microsoft DirectX 9.0 SDK Update (Summer 2003) |
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.
Syntax
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 Value
Returns S_OK if successful, or one of the following error values.
DPNERR_INVALIDFLAGS The flags passed to this method are invalid. DPNERR_INVALIDHANDLE The handle specified is invalid. DPNERR_INVALIDPARAM One or more of the parameters passed to the method are invalid.