Microsoft DirectX 9.0 SDK Update (October 2004)

Peer.FindHosts Method

Language:

Note: This documentation is preliminary and is subject to change.

Warning: This method 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 Microsoft® 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.
Enumerates applications that host Microsoft® DirectPlay® games. Deprecated.

Definition

Visual Basic .NET Public Sub FindHosts( _
    ByVal applicationDescription As ApplicationDescription, _
    ByVal hostAddress As Address, _
    ByVal deviceInformation As Address, _
    ByVal userEnumData As NetworkPacket, _
    ByVal count As Integer, _
    ByVal retryInterval As Integer, _
    ByVal timeOut As Integer, _
    ByVal flags As FindHostsFlags, _
    ByRef asyncHandle As Integer, _
    ByVal userContext As Object _
)
C# public void FindHosts(
    ApplicationDescription applicationDescription,
    Address hostAddress,
    Address deviceInformation,
    NetworkPacket userEnumData,
    int count,
    int retryInterval,
    int timeOut,
    FindHostsFlags flags,
    out int asyncHandle,
    object userContext
);
Managed C++ public: void FindHosts(
    ApplicationDescription applicationDescription,
    Address *hostAddress,
    Address *deviceInformation,
    NetworkPacket *userEnumData,
    int count,
    int retryInterval,
    int timeOut,
    FindHostsFlags flags,
    int *asyncHandle,
    Object *userContext
);
JScript .NET public function FindHosts(
    applicationDescription : ApplicationDescription,
    hostAddress : Address,
    deviceInformation : Address,
    userEnumData : NetworkPacket,
    count : int,
    retryInterval : int,
    timeOut : int,
    flags : FindHostsFlags,
    asyncHandle : int,
    userContext : Object
);

Parameters

applicationDescription Microsoft.DirectX.DirectPlay.ApplicationDescription.
hostAddress Microsoft.DirectX.DirectPlay.Address.
deviceInformation Microsoft.DirectX.DirectPlay.Address.
userEnumData Microsoft.DirectX.DirectPlay.NetworkPacket.
count System.Int32.
retryInterval System.Int32.
timeOut System.Int32.
flags Microsoft.DirectX.DirectPlay.FindHostsFlags.
asyncHandle System.Int32.
userContext System.Object.

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center