DPNMSG_TERMINATE_SESSION
Used in the DirectPlay8Event.TerminateSession method.
Type DPNMSG_TERMINATE_SESSION
hResultCode As Long
TerminateData() As Byte
End Type
Members
- hResultCode
- Long value specifying why the session was terminated. This member is set to DPNERR_HOSTTERMINATEDSESSION if the session was peer-to-peer, and the host called DirectPlay8Peer.TerminateSession. If the session was ended by the host calling Close, or if the host stops responding, hResultCode is set to DPNERR_CONNECTIONLOST.
- TerminateData
- Termination data. If hResultCode is set to DPNERR_HOSTTERMINATEDSESSION, TerminateData points to the data block that the host passed through the UserData parameter of DirectPlay8Peer.TerminateSession. If hResultCode is set to DPNERR_CONNECTIONLOST, TerminateData will be empty