Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Client.Close

Closes the open connection to a session.

Close([lFlags As Long]);

Parts

lFlags
Reserved. Must be 0.

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 Send calls to complete before calling Close.