DirectPlayEnumerate

HRESULT WINAPI DirectPlayEnumerate(

LPDPENUMDPCALLBACK lpEnumDPCallback, LPVOID lpContext);

Enumerates the DirectPlay service providers installed on the system.

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

DPERR_EXCEPTION

DPERR_GENERIC

DPERR_INVALIDPARAMS

lpEnumDPCallback

Address of the EnumDPCallback function that will be called with a description of each DirectPlay service provider interface installed in the system.

lpContext

Address of an application-defined structure that will be passed to the callback function each time the function is called.

This function will enumerate service providers installed in the system even though the system might not be capable of using those service providers. For example, a TAPI service provider will be part of the enumeration even though the system might not have a modem installed.