IDirectPlay8Address::SetSP Method

DirectPlay

 
Microsoft DirectX 9.0 SDK Update (Summer 2003)

IDirectPlay8Address::SetSP Method


Sets the service provider globally unique identifier (GUID) in the address object. If a service provider is specified for this address, it is overwritten by this call.

Syntax

HRESULT SetSP(      
    const GUID *const pguidSP );

Parameters

pguidSP
[in] Pointer to the service provider GUID. This can be one of the following predefined values.
CLSID_DP8SP_TCPIP
Internet Protocol (IP) service provider
CLSID_NETWORKSIMULATOR_DP8SP_TCPIP
Network simulator IP service providers
CLSID_DP8SP_SERIAL
Serial service provider
CLSID_DP8SP_MODEM
Modem service provider
CLSID_DP8SP_IPX
IPX service provider
CLSID_DP8SP_BLUETOOTH
Bluetooth Service Provider

Return Value

Returns S_OK if successful, or one of the following error values.

DPNERR_INVALIDPOINTERPointer specified as a parameter is invalid.
DPNERR_NOTALLOWEDThis function is not allowed on this object.



© 2003 Microsoft Corporation. All rights reserved.