Share via


TerminateSessionMessage Structure (Microsoft.DirectX.DirectPlay)

Warning: This struct is deprecated. Deprecated components of Microsoft DirectX 9.0 for Managed Code are considered obsolete. While these components are still supported in this release of DirectX 9.0 for Managed Code, they may be removed in the future. When writing new applications, you should avoid using these deprecated components. When modifying existing applications, you are strongly encouraged to remove any dependency on these components.

Microsoft® DirectPlay® generates the DpnMsgidTerminateSessionDplay message when a session is terminated by the host.The structure contains information for the DpnMsgidTerminateSessionDplay system message. Deprecated.

Definition

Visual Basic Public Structure TerminateSessionMessage
C# public struct TerminateSessionMessage 
C++ public value class TerminateSessionMessage sealed 
JScript In JScript, you can use structures, but you cannot define your own.

Members Table

The following table lists the members exposed by the object.

Methods

Method Description
TerminateSessionMessage
Warning: This method is deprecated. Deprecated components of DirectX 9.0 for Managed Code are considered obsolete. While these components are still supported in this release of DirectX 9.0 for Managed Code, they may be removed in the future. When writing new applications, you should avoid using these deprecated components. When modifying existing applications, you are strongly encouraged to remove any dependency on these components.
Initializes a new instance of the object. Deprecated.
ToString
Warning: This method is deprecated. Deprecated components of DirectX 9.0 for Managed Code are considered obsolete. While these components are still supported in this release of DirectX 9.0 for Managed Code, they may be removed in the future. When writing new applications, you should avoid using these deprecated components. When modifying existing applications, you are strongly encouraged to remove any dependency on these components.
Obtains a string representation of the current instance. Deprecated.

Properties

Property Description
ResultCode
Warning: This property is deprecated. Deprecated components of DirectX 9.0 for Managed Code are considered obsolete. While these components are still supported in this release of DirectX 9.0 for Managed Code, they may be removed in the future. When writing new applications, you should avoid using these deprecated components. When modifying existing applications, you are strongly encouraged to remove any dependency on these components.
Specifies how the session was terminated. This member is set to DPNERR_HOSTTERMINATEDSESSION if the session was peer-to-peer, and the host called Play8peerTerminatesessionDplay. If the session was ended by the host calling Play8peerCloseDplay, or if the host stops responding, hResultCode is set to DPNERR_CONNECTIONLOST. Deprecated.
TerminateData
Warning: This property is deprecated. Deprecated components of DirectX 9.0 for Managed Code are considered obsolete. While these components are still supported in this release of DirectX 9.0 for Managed Code, they may be removed in the future. When writing new applications, you should avoid using these deprecated components. When modifying existing applications, you are strongly encouraged to remove any dependency on these components.
Termination data. If hResultCode is set to DPNERR_HOSTTERMINATEDSESSION, pvTerminateData points to the data block that the host passed through the pvTerminateData parameter of Play8peerTerminatesessionDplay. Deprecated.

Structure Information

Namespace Microsoft.DirectX.DirectPlay
Assembly Microsoft.DirectX.DirectPlay (microsoft.directx.directplay.dll)
Strong Name Microsoft.DirectX.DirectPlay,  Version=1.0.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492