Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Peer.GetServiceProvider

Retrieves information for the specified service provider. Before calling this method, call the DirectPlay8Peer.GetCountServiceProviders method to obtain the number of registered service providers available to the application.

GetServiceProvider(lIndex As Long) As DPN_SERVICE_PROVIDER_INFO

Parts

lIndex
Index value specifying the specific server provider.

Return Values

Returns a DPN_SERVICE_PROVIDER_INFO type that describes the service provider.

Error Codes

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

DPNERR_INVALIDPARAM