Microsoft DirectX 8.1 (C++)

IDirectPlay8Peer::Close

Closes the open connection to a session. This method must be called on any object successfully initialized with IDirectPlay8Peer::Initialize.

HRESULT Close(
const DWORD dwFlags
);

Parameters

dwFlags
[in] Reserved. Must be 0.

Return Values

Returns S_OK if successful, or the following error value.

DPNERR_UNINITIALIZED

Remarks

This method will cancel any operations still outstanding, including data sent as guaranteed. To make sure all messages are sent, wait for all outstanding SendTo calls to complete before calling Close.

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 Dplay8.h.