IDirectPlayLobby::EnumAddressTypes

HRESULT EnumAddressTypes(

LDDPLENUMADDRESSTYPESCALLBACK lpEnumAddressTypeCallback,

REFGUID guidSP, LPVOID lpContext,

DWORD dwFlags);

Enumerates all the address types that a given service provider needs to build the DirectPlay Address.

·Returns DP_OK if successful, or one of the following error values otherwise:

DPERR_EXCEPTION

DPERR_INVALIDOBJECT

DPERR_INVALIDPARAMS

lpEnumAddressTypeCallback

Address of the EnumAddressTypeCallback function that will be called for each address type for a service provider. If the service provider takes no address type, the callback will not be called.

guidSP

Address of the GUID of the service provider whose address types are to be enumerated. (In C++, it is a reference to the GUID.)

lpContext

Context that will be passed to the callback function.

dwFlags

Reserved; must be zero.