2001-04-12 23:10:54 +02:00
|
|
|
/* This contains the implementation of the Lobby Service
|
|
|
|
* Providers interface required to communicate with Direct Play
|
|
|
|
*
|
2003-09-29 22:12:05 +02:00
|
|
|
* Copyright 2001 Peter Hunnisett
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2001-04-12 23:10:54 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "winerror.h"
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
2001-04-12 23:10:54 +02:00
|
|
|
|
|
|
|
#include "lobbysp.h"
|
|
|
|
#include "dplay_global.h"
|
|
|
|
#include "dpinit.h"
|
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(dplay);
|
2001-04-12 23:10:54 +02:00
|
|
|
|
|
|
|
/* Prototypes */
|
|
|
|
static BOOL DPLSP_CreateIUnknown( LPVOID lpSP );
|
|
|
|
static BOOL DPLSP_DestroyIUnknown( LPVOID lpSP );
|
|
|
|
static BOOL DPLSP_CreateDPLobbySP( LPVOID lpSP, IDirectPlay2Impl* dp );
|
|
|
|
static BOOL DPLSP_DestroyDPLobbySP( LPVOID lpSP );
|
|
|
|
|
|
|
|
|
|
|
|
/* Predefine the interface */
|
|
|
|
typedef struct IDPLobbySPImpl IDPLobbySPImpl;
|
|
|
|
|
|
|
|
typedef struct tagDPLobbySPIUnknownData
|
|
|
|
{
|
2005-07-12 21:21:36 +02:00
|
|
|
LONG ulObjRef;
|
2001-04-12 23:10:54 +02:00
|
|
|
CRITICAL_SECTION DPLSP_lock;
|
|
|
|
} DPLobbySPIUnknownData;
|
|
|
|
|
|
|
|
typedef struct tagDPLobbySPData
|
|
|
|
{
|
|
|
|
IDirectPlay2Impl* dplay;
|
|
|
|
} DPLobbySPData;
|
|
|
|
|
|
|
|
#define DPLSP_IMPL_FIELDS \
|
2005-07-12 21:21:36 +02:00
|
|
|
LONG ulInterfaceRef; \
|
2001-04-12 23:10:54 +02:00
|
|
|
DPLobbySPIUnknownData* unk; \
|
|
|
|
DPLobbySPData* sp;
|
|
|
|
|
|
|
|
struct IDPLobbySPImpl
|
|
|
|
{
|
2005-06-01 21:57:42 +02:00
|
|
|
const IDPLobbySPVtbl *lpVtbl;
|
2001-04-12 23:10:54 +02:00
|
|
|
DPLSP_IMPL_FIELDS
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Forward declaration of virtual tables */
|
2005-06-01 21:57:42 +02:00
|
|
|
static const IDPLobbySPVtbl dpLobbySPVT;
|
2001-04-12 23:10:54 +02:00
|
|
|
|
|
|
|
HRESULT DPLSP_CreateInterface( REFIID riid, LPVOID* ppvObj, IDirectPlay2Impl* dp )
|
|
|
|
{
|
|
|
|
TRACE( " for %s\n", debugstr_guid( riid ) );
|
|
|
|
|
|
|
|
*ppvObj = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY,
|
|
|
|
sizeof( IDPLobbySPImpl ) );
|
|
|
|
|
|
|
|
if( *ppvObj == NULL )
|
|
|
|
{
|
|
|
|
return DPERR_OUTOFMEMORY;
|
|
|
|
}
|
|
|
|
|
|
|
|
if( IsEqualGUID( &IID_IDPLobbySP, riid ) )
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)*ppvObj;
|
2003-04-10 20:17:34 +02:00
|
|
|
This->lpVtbl = &dpLobbySPVT;
|
2001-04-12 23:10:54 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
/* Unsupported interface */
|
|
|
|
HeapFree( GetProcessHeap(), 0, *ppvObj );
|
|
|
|
*ppvObj = NULL;
|
|
|
|
|
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Initialize it */
|
|
|
|
if( DPLSP_CreateIUnknown( *ppvObj ) &&
|
|
|
|
DPLSP_CreateDPLobbySP( *ppvObj, dp )
|
|
|
|
)
|
|
|
|
{
|
|
|
|
IDPLobbySP_AddRef( (LPDPLOBBYSP)*ppvObj );
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Initialize failed, destroy it */
|
|
|
|
DPLSP_DestroyDPLobbySP( *ppvObj );
|
|
|
|
DPLSP_DestroyIUnknown( *ppvObj );
|
|
|
|
|
|
|
|
HeapFree( GetProcessHeap(), 0, *ppvObj );
|
|
|
|
*ppvObj = NULL;
|
|
|
|
|
|
|
|
return DPERR_NOMEMORY;
|
|
|
|
}
|
|
|
|
|
|
|
|
static BOOL DPLSP_CreateIUnknown( LPVOID lpSP )
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)lpSP;
|
2001-04-12 23:10:54 +02:00
|
|
|
|
2005-03-24 22:01:35 +01:00
|
|
|
This->unk = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof( *(This->unk) ) );
|
2001-04-12 23:10:54 +02:00
|
|
|
|
|
|
|
if ( This->unk == NULL )
|
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
InitializeCriticalSection( &This->unk->DPLSP_lock );
|
2007-03-08 16:34:13 +01:00
|
|
|
This->unk->DPLSP_lock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": IDPLobbySPImpl*->DPLobbySPIUnknownData*->DPLSP_lock");
|
2001-04-12 23:10:54 +02:00
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static BOOL DPLSP_DestroyIUnknown( LPVOID lpSP )
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)lpSP;
|
2001-04-12 23:10:54 +02:00
|
|
|
|
2007-03-08 16:34:13 +01:00
|
|
|
This->unk->DPLSP_lock.DebugInfo->Spare[0] = 0;
|
2001-04-12 23:10:54 +02:00
|
|
|
DeleteCriticalSection( &This->unk->DPLSP_lock );
|
|
|
|
HeapFree( GetProcessHeap(), 0, This->unk );
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static BOOL DPLSP_CreateDPLobbySP( LPVOID lpSP, IDirectPlay2Impl* dp )
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)lpSP;
|
2001-04-12 23:10:54 +02:00
|
|
|
|
2005-03-24 22:01:35 +01:00
|
|
|
This->sp = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof( *(This->sp) ) );
|
2001-04-12 23:10:54 +02:00
|
|
|
|
|
|
|
if ( This->sp == NULL )
|
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
This->sp->dplay = dp;
|
|
|
|
|
|
|
|
/* Normally we should be keeping a reference, but since only the dplay
|
|
|
|
* interface that created us can destroy us, we do not keep a reference
|
|
|
|
* to it (ie we'd be stuck with always having one reference to the dplay
|
|
|
|
* object, and hence us, around).
|
|
|
|
* NOTE: The dp object does reference count us.
|
|
|
|
*
|
|
|
|
* FIXME: This is a kludge to get around a problem where a queryinterface
|
|
|
|
* is used to get a new interface and then is closed. We will then
|
|
|
|
* reference garbage. However, with this we will never deallocate
|
|
|
|
* the interface we store. The correct fix is to require all
|
|
|
|
* DP internal interfaces to use the This->dp2 interface which
|
|
|
|
* should be changed to This->dp
|
|
|
|
*/
|
|
|
|
IDirectPlayX_AddRef( (LPDIRECTPLAY2)dp );
|
|
|
|
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static BOOL DPLSP_DestroyDPLobbySP( LPVOID lpSP )
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)lpSP;
|
2001-04-12 23:10:54 +02:00
|
|
|
|
|
|
|
HeapFree( GetProcessHeap(), 0, This->sp );
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static
|
|
|
|
HRESULT WINAPI DPLSP_QueryInterface
|
2002-06-01 01:06:46 +02:00
|
|
|
( LPDPLOBBYSP iface,
|
2001-04-12 23:10:54 +02:00
|
|
|
REFIID riid,
|
2002-06-01 01:06:46 +02:00
|
|
|
LPVOID* ppvObj
|
2001-04-12 23:10:54 +02:00
|
|
|
)
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
TRACE("(%p)->(%s,%p)\n", This, debugstr_guid( riid ), ppvObj );
|
|
|
|
|
|
|
|
*ppvObj = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY,
|
|
|
|
sizeof( *This ) );
|
|
|
|
|
|
|
|
if( *ppvObj == NULL )
|
|
|
|
{
|
|
|
|
return DPERR_OUTOFMEMORY;
|
|
|
|
}
|
|
|
|
|
|
|
|
CopyMemory( *ppvObj, This, sizeof( *This ) );
|
|
|
|
(*(IDPLobbySPImpl**)ppvObj)->ulInterfaceRef = 0;
|
|
|
|
|
|
|
|
if( IsEqualGUID( &IID_IDPLobbySP, riid ) )
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)*ppvObj;
|
2003-04-10 20:17:34 +02:00
|
|
|
This->lpVtbl = &dpLobbySPVT;
|
2001-04-12 23:10:54 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
/* Unsupported interface */
|
|
|
|
HeapFree( GetProcessHeap(), 0, *ppvObj );
|
|
|
|
*ppvObj = NULL;
|
|
|
|
|
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
|
|
|
IDPLobbySP_AddRef( (LPDPLOBBYSP)*ppvObj );
|
|
|
|
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
static
|
2001-04-12 23:10:54 +02:00
|
|
|
ULONG WINAPI DPLSP_AddRef
|
|
|
|
( LPDPLOBBYSP iface )
|
|
|
|
{
|
|
|
|
ULONG ulInterfaceRefCount, ulObjRefCount;
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
|
|
|
|
ulObjRefCount = InterlockedIncrement( &This->unk->ulObjRef );
|
|
|
|
ulInterfaceRefCount = InterlockedIncrement( &This->ulInterfaceRef );
|
|
|
|
|
2006-10-10 01:07:17 +02:00
|
|
|
TRACE( "ref count incremented to %u:%u for %p\n",
|
2001-04-12 23:10:54 +02:00
|
|
|
ulInterfaceRefCount, ulObjRefCount, This );
|
|
|
|
|
|
|
|
return ulObjRefCount;
|
|
|
|
}
|
|
|
|
|
|
|
|
static
|
|
|
|
ULONG WINAPI DPLSP_Release
|
|
|
|
( LPDPLOBBYSP iface )
|
|
|
|
{
|
|
|
|
ULONG ulInterfaceRefCount, ulObjRefCount;
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
|
|
|
|
ulObjRefCount = InterlockedDecrement( &This->unk->ulObjRef );
|
|
|
|
ulInterfaceRefCount = InterlockedDecrement( &This->ulInterfaceRef );
|
|
|
|
|
2006-10-10 01:07:17 +02:00
|
|
|
TRACE( "ref count decremented to %u:%u for %p\n",
|
2001-04-12 23:10:54 +02:00
|
|
|
ulInterfaceRefCount, ulObjRefCount, This );
|
|
|
|
|
|
|
|
/* Deallocate if this is the last reference to the object */
|
|
|
|
if( ulObjRefCount == 0 )
|
|
|
|
{
|
|
|
|
DPLSP_DestroyDPLobbySP( This );
|
|
|
|
DPLSP_DestroyIUnknown( This );
|
|
|
|
}
|
|
|
|
|
|
|
|
if( ulInterfaceRefCount == 0 )
|
|
|
|
{
|
|
|
|
HeapFree( GetProcessHeap(), 0, This );
|
|
|
|
}
|
|
|
|
|
|
|
|
return ulInterfaceRefCount;
|
|
|
|
}
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
static
|
2001-04-12 23:10:54 +02:00
|
|
|
HRESULT WINAPI IDPLobbySPImpl_AddGroupToGroup
|
2002-06-01 01:06:46 +02:00
|
|
|
( LPDPLOBBYSP iface,
|
|
|
|
LPSPDATA_ADDREMOTEGROUPTOGROUP argtg
|
2001-04-12 23:10:54 +02:00
|
|
|
)
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
FIXME( "(%p)->(%p):stub\n", This, argtg );
|
|
|
|
return DP_OK;
|
|
|
|
}
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
static
|
2001-04-12 23:10:54 +02:00
|
|
|
HRESULT WINAPI IDPLobbySPImpl_AddPlayerToGroup
|
2002-06-01 01:06:46 +02:00
|
|
|
( LPDPLOBBYSP iface,
|
|
|
|
LPSPDATA_ADDREMOTEPLAYERTOGROUP arptg
|
2001-04-12 23:10:54 +02:00
|
|
|
)
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
FIXME( "(%p)->(%p):stub\n", This, arptg );
|
|
|
|
return DP_OK;
|
|
|
|
}
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
static
|
2001-04-12 23:10:54 +02:00
|
|
|
HRESULT WINAPI IDPLobbySPImpl_CreateGroup
|
2002-06-01 01:06:46 +02:00
|
|
|
( LPDPLOBBYSP iface,
|
|
|
|
LPSPDATA_CREATEREMOTEGROUP crg
|
2001-04-12 23:10:54 +02:00
|
|
|
)
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
FIXME( "(%p)->(%p):stub\n", This, crg );
|
|
|
|
return DP_OK;
|
|
|
|
}
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
static
|
2001-04-12 23:10:54 +02:00
|
|
|
HRESULT WINAPI IDPLobbySPImpl_CreateGroupInGroup
|
2002-06-01 01:06:46 +02:00
|
|
|
( LPDPLOBBYSP iface,
|
|
|
|
LPSPDATA_CREATEREMOTEGROUPINGROUP crgig
|
2001-04-12 23:10:54 +02:00
|
|
|
)
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
FIXME( "(%p)->(%p):stub\n", This, crgig );
|
|
|
|
return DP_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static
|
|
|
|
HRESULT WINAPI IDPLobbySPImpl_DeleteGroupFromGroup
|
2002-06-01 01:06:46 +02:00
|
|
|
( LPDPLOBBYSP iface,
|
|
|
|
LPSPDATA_DELETEREMOTEGROUPFROMGROUP drgfg
|
2001-04-12 23:10:54 +02:00
|
|
|
)
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
FIXME( "(%p)->(%p):stub\n", This, drgfg );
|
|
|
|
return DP_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static
|
|
|
|
HRESULT WINAPI IDPLobbySPImpl_DeletePlayerFromGroup
|
2002-06-01 01:06:46 +02:00
|
|
|
( LPDPLOBBYSP iface,
|
|
|
|
LPSPDATA_DELETEREMOTEPLAYERFROMGROUP drpfg
|
2001-04-12 23:10:54 +02:00
|
|
|
)
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
FIXME( "(%p)->(%p):stub\n", This, drpfg );
|
|
|
|
return DP_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static
|
|
|
|
HRESULT WINAPI IDPLobbySPImpl_DestroyGroup
|
2002-06-01 01:06:46 +02:00
|
|
|
( LPDPLOBBYSP iface,
|
|
|
|
LPSPDATA_DESTROYREMOTEGROUP drg
|
2001-04-12 23:10:54 +02:00
|
|
|
)
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
FIXME( "(%p)->(%p):stub\n", This, drg );
|
|
|
|
return DP_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static
|
|
|
|
HRESULT WINAPI IDPLobbySPImpl_EnumSessionsResponse
|
2002-06-01 01:06:46 +02:00
|
|
|
( LPDPLOBBYSP iface,
|
|
|
|
LPSPDATA_ENUMSESSIONSRESPONSE er
|
2001-04-12 23:10:54 +02:00
|
|
|
)
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
FIXME( "(%p)->(%p):stub\n", This, er );
|
|
|
|
return DP_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static
|
|
|
|
HRESULT WINAPI IDPLobbySPImpl_GetSPDataPointer
|
2002-06-01 01:06:46 +02:00
|
|
|
( LPDPLOBBYSP iface,
|
|
|
|
LPVOID* lplpData
|
2001-04-12 23:10:54 +02:00
|
|
|
)
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
FIXME( "(%p)->(%p):stub\n", This, lplpData );
|
|
|
|
return DP_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static
|
|
|
|
HRESULT WINAPI IDPLobbySPImpl_HandleMessage
|
2002-06-01 01:06:46 +02:00
|
|
|
( LPDPLOBBYSP iface,
|
|
|
|
LPSPDATA_HANDLEMESSAGE hm
|
2001-04-12 23:10:54 +02:00
|
|
|
)
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
FIXME( "(%p)->(%p):stub\n", This, hm );
|
|
|
|
return DP_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static
|
|
|
|
HRESULT WINAPI IDPLobbySPImpl_SendChatMessage
|
2002-06-01 01:06:46 +02:00
|
|
|
( LPDPLOBBYSP iface,
|
|
|
|
LPSPDATA_CHATMESSAGE cm
|
2001-04-12 23:10:54 +02:00
|
|
|
)
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
FIXME( "(%p)->(%p):stub\n", This, cm );
|
|
|
|
return DP_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static
|
|
|
|
HRESULT WINAPI IDPLobbySPImpl_SetGroupName
|
2002-06-01 01:06:46 +02:00
|
|
|
( LPDPLOBBYSP iface,
|
|
|
|
LPSPDATA_SETREMOTEGROUPNAME srgn
|
2001-04-12 23:10:54 +02:00
|
|
|
)
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
FIXME( "(%p)->(%p):stub\n", This, srgn );
|
|
|
|
return DP_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static
|
|
|
|
HRESULT WINAPI IDPLobbySPImpl_SetPlayerName
|
2002-06-01 01:06:46 +02:00
|
|
|
( LPDPLOBBYSP iface,
|
|
|
|
LPSPDATA_SETREMOTEPLAYERNAME srpn
|
2001-04-12 23:10:54 +02:00
|
|
|
)
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
FIXME( "(%p)->(%p):stub\n", This, srpn );
|
|
|
|
return DP_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static
|
|
|
|
HRESULT WINAPI IDPLobbySPImpl_SetSessionDesc
|
2002-06-01 01:06:46 +02:00
|
|
|
( LPDPLOBBYSP iface,
|
|
|
|
LPSPDATA_SETSESSIONDESC ssd
|
2001-04-12 23:10:54 +02:00
|
|
|
)
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
FIXME( "(%p)->(%p):stub\n", This, ssd );
|
|
|
|
return DP_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static
|
|
|
|
HRESULT WINAPI IDPLobbySPImpl_SetSPDataPointer
|
2002-06-01 01:06:46 +02:00
|
|
|
( LPDPLOBBYSP iface,
|
|
|
|
LPVOID lpData
|
2001-04-12 23:10:54 +02:00
|
|
|
)
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
FIXME( "(%p)->(%p):stub\n", This, lpData );
|
|
|
|
return DP_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static
|
|
|
|
HRESULT WINAPI IDPLobbySPImpl_StartSession
|
2002-06-01 01:06:46 +02:00
|
|
|
( LPDPLOBBYSP iface,
|
|
|
|
LPSPDATA_STARTSESSIONCOMMAND ssc
|
2001-04-12 23:10:54 +02:00
|
|
|
)
|
|
|
|
{
|
2004-09-06 22:34:29 +02:00
|
|
|
IDPLobbySPImpl *This = (IDPLobbySPImpl *)iface;
|
2001-04-12 23:10:54 +02:00
|
|
|
FIXME( "(%p)->(%p):stub\n", This, ssc );
|
|
|
|
return DP_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-06-01 21:57:42 +02:00
|
|
|
static const IDPLobbySPVtbl dpLobbySPVT =
|
2001-04-12 23:10:54 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
DPLSP_QueryInterface,
|
|
|
|
DPLSP_AddRef,
|
|
|
|
DPLSP_Release,
|
|
|
|
|
|
|
|
IDPLobbySPImpl_AddGroupToGroup,
|
|
|
|
IDPLobbySPImpl_AddPlayerToGroup,
|
|
|
|
IDPLobbySPImpl_CreateGroup,
|
|
|
|
IDPLobbySPImpl_CreateGroupInGroup,
|
|
|
|
IDPLobbySPImpl_DeleteGroupFromGroup,
|
|
|
|
IDPLobbySPImpl_DeletePlayerFromGroup,
|
|
|
|
IDPLobbySPImpl_DestroyGroup,
|
|
|
|
IDPLobbySPImpl_EnumSessionsResponse,
|
|
|
|
IDPLobbySPImpl_GetSPDataPointer,
|
|
|
|
IDPLobbySPImpl_HandleMessage,
|
|
|
|
IDPLobbySPImpl_SendChatMessage,
|
2002-06-01 01:06:46 +02:00
|
|
|
IDPLobbySPImpl_SetGroupName,
|
|
|
|
IDPLobbySPImpl_SetPlayerName,
|
2001-04-12 23:10:54 +02:00
|
|
|
IDPLobbySPImpl_SetSessionDesc,
|
|
|
|
IDPLobbySPImpl_SetSPDataPointer,
|
|
|
|
IDPLobbySPImpl_StartSession
|
|
|
|
|
|
|
|
};
|