Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Server.Close

Closes the open connection to a session.

Close();

Error Codes

If the method fails, Err.Number can be set to the following value.

DPNERR_UNINITIALIZED

Remarks

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