DirectPlay Animated Header -- IDirectPlay3::Close DirectPlay Animated Header -- IDirectPlay3::Close* Microsoft DirectPlay SDK
*Index  *Topic Contents
*Previous Topic: IDirectPlay3::AddPlayerToGroup
*Next Topic: IDirectPlay3::CreateGroup


IDirectPlay3::Close


IDirectPlay3 Interface

Closes a previously opened session. Any locally created groups will migrate to be owned by the host of the session.

HRESULT Close( );

Return Values

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

DPERR_INVALIDOBJECT
DPERR_INVALIDPARAMS
DPERR_NOSESSIONS
Remarks

All locally created players will be destroyed and appropriate DPMSG_DELETEPLAYERFROMGROUP and DPMSG_DESTROYPLAYERORGROUP system messages will be sent to other session participants.

See Also

IDirectPlay3::DestroyPlayer, DPMSG_DESTROYPLAYERORGROUP, IDirectPlay3::Open

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.

*Top of Page