DirectPlayLobbyCreate

HRESULT WINAPI DirectPlayLobbyCreate(

LPGUID lpguidSP, LPDIRECTPLAYLOBBY *lplpDPL,

IUnknown *lpUnk, LPVOID lpData, DWORD dwDataSize);

Creates an instance of a DirectPlayLobby object. This function attempts to initialize a DirectPlayLobby object and set a pointer to it.

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

CLASS_E_NOAGGREGATION

DPERR_INVALIDPARAMS

DPERR_OUTOFMEMORY

lpguidSP

Reserved for future use; must be set to NULL.

lplpDPL

Address of a pointer to be initialized with a valid IDirectPlayLobby interface.

lpUnk

Address of the containing IUnknown interface. This parameter is provided for future compability with COM aggregation features. Presently, however, DirectPlayLobbyCreate returns an error if this parameter is anything but NULL.

lpData

Extra data needed to create the DirectPlayLobby object. This parameter must be set to NULL.

dwDataSize

This parameter must be set to zero.