mirror of
https://github.com/reactos/wine.git
synced 2024-12-01 15:40:43 +00:00
3d7cd87698
- Break out dpl and dp service provider intialization - Add missing definition of E_PENDING - Resolve a few fixmes - Fix includes for dplay.h
495 lines
16 KiB
C
495 lines
16 KiB
C
#ifndef __WINE_LOBBY_SP_H
|
|
#define __WINE_LOBBY_SP_H
|
|
|
|
#include "dplobby.h"
|
|
|
|
/* GUID for IDPLobbySP {5A4E5A20-2CED-11d0-A889-00A0C905433C} */
|
|
DEFINE_GUID(IID_IDPLobbySP, 0x5a4e5a20, 0x2ced, 0x11d0, 0xa8, 0x89, 0x0, 0xa0, 0xc9, 0x5, 0x43, 0x3c);
|
|
typedef struct IDPLobbySP IDPLobbySP, *LPDPLOBBYSP;
|
|
|
|
/* For SP. Top 16 bits is dplay, bottom 16 is SP */
|
|
#define DPLSP_MAJORVERSION 0x00050000
|
|
|
|
typedef struct SPDATA_ADDGROUPTOGROUP
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwParentID;
|
|
DWORD dwGroupID;
|
|
} SPDATA_ADDGROUPTOGROUP, *LPSPDATA_ADDGROUPTOGROUP;
|
|
|
|
typedef struct SPDATA_ADDPLAYERTOGROUP
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwGroupID;
|
|
DWORD dwPlayerID;
|
|
} SPDATA_ADDPLAYERTOGROUP, *LPSPDATA_ADDPLAYERTOGROUP;
|
|
|
|
typedef struct SPDATA_ADDREMOTEGROUPTOGROUP
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwAnchorID;
|
|
DWORD dwGroupID;
|
|
DWORD dwParentID;
|
|
LPDPNAME lpName;
|
|
DWORD dwGroupFlags;
|
|
} SPDATA_ADDREMOTEGROUPTOGROUP, *LPSPDATA_ADDREMOTEGROUPTOGROUP;
|
|
|
|
typedef struct SPDATA_ADDREMOTEPLAYERTOGROUP
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwGroupID;
|
|
DWORD dwPlayerID;
|
|
DWORD dwPlayerFlags;
|
|
LPDPNAME lpName;
|
|
} SPDATA_ADDREMOTEPLAYERTOGROUP, *LPSPDATA_ADDREMOTEPLAYERTOGROUP;
|
|
|
|
typedef struct SPDATA_BUILDPARENTALHEIRARCHY
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwGroupID;
|
|
DWORD dwMessage;
|
|
DWORD dwParentID;
|
|
} SPDATA_BUILDPARENTALHEIRARCHY, *LPSPDATA_BUILDPARENTALHEIRARCHY;
|
|
|
|
typedef struct SPDATA_CLOSE
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
} SPDATA_CLOSE, *LPSPDATA_CLOSE;
|
|
|
|
typedef struct SPDATA_CREATEGROUP
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwGroupID;
|
|
LPDPNAME lpName;
|
|
LPVOID lpData;
|
|
DWORD dwDataSize;
|
|
DWORD dwFlags;
|
|
} SPDATA_CREATEGROUP, *LPSPDATA_CREATEGROUP;
|
|
|
|
typedef struct SPDATA_CREATEGROUPINGROUP
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwParentID;
|
|
DWORD dwGroupID;
|
|
LPDPNAME lpName;
|
|
LPVOID lpData;
|
|
DWORD dwDataSize;
|
|
DWORD dwFlags;
|
|
} SPDATA_CREATEGROUPINGROUP, *LPSPDATA_CREATEGROUPINGROUP;
|
|
|
|
typedef struct SPDATA_CREATEREMOTEGROUP
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwGroupID;
|
|
LPDPNAME lpName;
|
|
LPVOID lpData;
|
|
DWORD dwDataSize;
|
|
DWORD dwFlags;
|
|
} SPDATA_CREATEREMOTEGROUP, *LPSPDATA_CREATEREMOTEGROUP;
|
|
|
|
typedef struct SPDATA_CREATEREMOTEGROUPINGROUP
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwParentID;
|
|
DWORD dwGroupID;
|
|
LPDPNAME lpName;
|
|
DWORD dwFlags;
|
|
} SPDATA_CREATEREMOTEGROUPINGROUP, *LPSPDATA_CREATEREMOTEGROUPINGROUP;
|
|
|
|
typedef struct SPDATA_CREATEPLAYER
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwPlayerID;
|
|
LPDPNAME lpName;
|
|
LPVOID lpData;
|
|
DWORD dwDataSize;
|
|
DWORD dwFlags;
|
|
} SPDATA_CREATEPLAYER, *LPSPDATA_CREATEPLAYER;
|
|
|
|
typedef struct SPDATA_DELETEGROUPFROMGROUP
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwParentID;
|
|
DWORD dwGroupID;
|
|
} SPDATA_DELETEGROUPFROMGROUP, *LPSPDATA_DELETEGROUPFROMGROUP;
|
|
|
|
typedef struct SPDATA_DELETEPLAYERFROMGROUP
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwGroupID;
|
|
DWORD dwPlayerID;
|
|
} SPDATA_DELETEPLAYERFROMGROUP, *LPSPDATA_DELETEPLAYERFROMGROUP;
|
|
|
|
typedef struct SPDATA_DELETEREMOTEGROUPFROMGROUP
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwParentID;
|
|
DWORD dwGroupID;
|
|
} SPDATA_DELETEREMOTEGROUPFROMGROUP, *LPSPDATA_DELETEREMOTEGROUPFROMGROUP;
|
|
|
|
typedef struct SPDATA_DELETEREMOTEPLAYERFROMGROUP
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwGroupID;
|
|
DWORD dwPlayerID;
|
|
} SPDATA_DELETEREMOTEPLAYERFROMGROUP, *LPSPDATA_DELETEREMOTEPLAYERFROMGROUP;
|
|
|
|
typedef struct SPDATA_DESTROYGROUP
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwGroupID;
|
|
} SPDATA_DESTROYGROUP, *LPSPDATA_DESTROYGROUP;
|
|
|
|
typedef struct SPDATA_DESTROYREMOTEGROUP
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwGroupID;
|
|
} SPDATA_DESTROYREMOTEGROUP, *LPSPDATA_DESTROYREMOTEGROUP;
|
|
|
|
typedef struct SPDATA_DESTROYPLAYER
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwPlayerID;
|
|
} SPDATA_DESTROYPLAYER, *LPSPDATA_DESTROYPLAYER;
|
|
|
|
typedef struct SPDATA_ENUMSESSIONS
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
LPDPSESSIONDESC2 lpsd;
|
|
DWORD dwTimeout;
|
|
DWORD dwFlags;
|
|
} SPDATA_ENUMSESSIONS, *LPSPDATA_ENUMSESSIONS;
|
|
|
|
typedef struct SPDATA_ENUMSESSIONSRESPONSE
|
|
{
|
|
DWORD dwSize;
|
|
LPDPSESSIONDESC2 lpsd;
|
|
} SPDATA_ENUMSESSIONSRESPONSE, *LPSPDATA_ENUMSESSIONSRESPONSE;
|
|
|
|
typedef struct SPDATA_GETCAPS
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwFlags;
|
|
LPDPCAPS lpcaps;
|
|
} SPDATA_GETCAPS, *LPSPDATA_GETCAPS;
|
|
|
|
typedef struct SPDATA_GETGROUPCONNECTIONSETTINGS
|
|
{
|
|
DWORD dwSize;
|
|
DWORD dwFlags;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwGroupID;
|
|
LPDWORD lpdwBufferSize;
|
|
LPVOID lpBuffer;
|
|
} SPDATA_GETGROUPCONNECTIONSETTINGS, *LPSPDATA_GETGROUPCONNECTIONSETTINGS;
|
|
|
|
typedef struct SPDATA_GETGROUPDATA
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwGroupID;
|
|
LPDWORD lpdwDataSize;
|
|
LPVOID lpData;
|
|
} SPDATA_GETGROUPDATA, *LPSPDATA_GETGROUPDATA;
|
|
|
|
typedef struct SPDATA_GETPLAYERCAPS
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwFlags;
|
|
DWORD dwPlayerID;
|
|
LPDPCAPS lpcaps;
|
|
} SPDATA_GETPLAYERCAPS, *LPSPDATA_GETPLAYERCAPS;
|
|
|
|
typedef struct SPDATA_GETPLAYERDATA
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwPlayerID;
|
|
LPDWORD lpdwDataSize;
|
|
LPVOID lpData;
|
|
} SPDATA_GETPLAYERDATA, *LPSPDATA_GETPLAYERDATA;
|
|
|
|
typedef struct SPDATA_HANDLEMESSAGE
|
|
{
|
|
DWORD dwSize;
|
|
DWORD dwFromID;
|
|
DWORD dwToID;
|
|
LPVOID lpBuffer;
|
|
DWORD dwBufSize;
|
|
} SPDATA_HANDLEMESSAGE, *LPSPDATA_HANDLEMESSAGE;
|
|
|
|
typedef struct SPDATA_OPEN
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
LPDPSESSIONDESC2 lpsd;
|
|
DWORD dwFlags;
|
|
LPCDPCREDENTIALS lpCredentials;
|
|
} SPDATA_OPEN, *LPSPDATA_OPEN;
|
|
|
|
typedef struct SPDATA_SEND
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwFromID;
|
|
DWORD dwToID;
|
|
DWORD dwFlags;
|
|
LPVOID lpBuffer;
|
|
DWORD dwBufSize;
|
|
} SPDATA_SEND, *LPSPDATA_SEND;
|
|
|
|
typedef struct SPDATA_CHATMESSAGE
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwFromID;
|
|
DWORD dwToID;
|
|
DWORD dwFlags;
|
|
LPDPCHAT lpChat;
|
|
} SPDATA_CHATMESSAGE, *LPSPDATA_CHATMESSAGE;
|
|
|
|
typedef struct SPDATA_SETGROUPCONNECTIONSETTINGS
|
|
{
|
|
DWORD dwSize;
|
|
DWORD dwFlags;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwGroupID;
|
|
LPDPLCONNECTION lpConn;
|
|
} SPDATA_SETGROUPCONNECTIONSETTINGS, *LPSPDATA_SETGROUPCONNECTIONSETTINGS;
|
|
|
|
typedef struct SPDATA_SETGROUPDATA
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwGroupID;
|
|
LPVOID lpData;
|
|
DWORD dwDataSize;
|
|
DWORD dwFlags;
|
|
} SPDATA_SETGROUPDATA, *LPSPDATA_SETGROUPDATA;
|
|
|
|
typedef struct SPDATA_SETGROUPNAME
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwGroupID;
|
|
LPDPNAME lpName;
|
|
DWORD dwFlags;
|
|
} SPDATA_SETGROUPNAME, *LPSPDATA_SETGROUPNAME;
|
|
|
|
typedef struct SPDATA_SETREMOTEGROUPNAME
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwGroupID;
|
|
LPDPNAME lpName;
|
|
DWORD dwFlags;
|
|
} SPDATA_SETREMOTEGROUPNAME, *LPSPDATA_SETREMOTEGROUPNAME;
|
|
|
|
typedef struct SPDATA_SETPLAYERDATA
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwPlayerID;
|
|
LPVOID lpData;
|
|
DWORD dwDataSize;
|
|
DWORD dwFlags;
|
|
} SPDATA_SETPLAYERDATA, *LPSPDATA_SETPLAYERDATA;
|
|
|
|
typedef struct SPDATA_SETPLAYERNAME
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwPlayerID;
|
|
LPDPNAME lpName;
|
|
DWORD dwFlags;
|
|
} SPDATA_SETPLAYERNAME, *LPSPDATA_SETPLAYERNAME;
|
|
|
|
typedef struct SPDATA_SETREMOTEPLAYERNAME
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwPlayerID;
|
|
LPDPNAME lpName;
|
|
DWORD dwFlags;
|
|
} SPDATA_SETREMOTEPLAYERNAME, *LPSPDATA_SETREMOTEPLAYERNAME;
|
|
|
|
typedef struct SPDATA_SETSESSIONDESC
|
|
{
|
|
DWORD dwSize;
|
|
LPDPSESSIONDESC2 lpsd;
|
|
} SPDATA_SETSESSIONDESC, *LPSPDATA_SETSESSIONDESC;
|
|
|
|
typedef struct SPDATA_SHUTDOWN
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
} SPDATA_SHUTDOWN, *LPSPDATA_SHUTDOWN;
|
|
|
|
typedef struct SPDATA_STARTSESSION
|
|
{
|
|
DWORD dwSize;
|
|
LPDPLOBBYSP lpISP;
|
|
DWORD dwFlags;
|
|
DWORD dwGroupID;
|
|
} SPDATA_STARTSESSION, *LPSPDATA_STARTSESSION;
|
|
|
|
typedef struct SPDATA_STARTSESSIONCOMMAND
|
|
{
|
|
DWORD dwFlags;
|
|
DWORD dwGroupID;
|
|
DWORD dwHostID;
|
|
LPDPLCONNECTION lpConn;
|
|
} SPDATA_STARTSESSIONCOMMAND, *LPSPDATA_STARTSESSIONCOMMAND;
|
|
|
|
/* Prototypes for callbacks returned by DPLSPInit */
|
|
typedef HRESULT (WINAPI *LPSP_ADDGROUPTOGROUP)(LPSPDATA_ADDGROUPTOGROUP);
|
|
typedef HRESULT (WINAPI *LPSP_ADDPLAYERTOGROUP)(LPSPDATA_ADDPLAYERTOGROUP);
|
|
typedef HRESULT (WINAPI *LPSP_BUILDPARENTALHEIRARCHY)(LPSPDATA_BUILDPARENTALHEIRARCHY);
|
|
typedef HRESULT (WINAPI *LPSP_CLOSE)(LPSPDATA_CLOSE);
|
|
typedef HRESULT (WINAPI *LPSP_CREATEGROUP)(LPSPDATA_CREATEGROUP);
|
|
typedef HRESULT (WINAPI *LPSP_CREATEGROUPINGROUP)(LPSPDATA_CREATEGROUPINGROUP);
|
|
typedef HRESULT (WINAPI *LPSP_CREATEPLAYER)(LPSPDATA_CREATEPLAYER);
|
|
typedef HRESULT (WINAPI *LPSP_DELETEGROUPFROMGROUP)(LPSPDATA_DELETEGROUPFROMGROUP);
|
|
typedef HRESULT (WINAPI *LPSP_DELETEPLAYERFROMGROUP)(LPSPDATA_DELETEPLAYERFROMGROUP);
|
|
typedef HRESULT (WINAPI *LPSP_DESTROYGROUP)(LPSPDATA_DESTROYGROUP);
|
|
typedef HRESULT (WINAPI *LPSP_DESTROYPLAYER)(LPSPDATA_DESTROYPLAYER);
|
|
typedef HRESULT (WINAPI *LPSP_ENUMSESSIONS)(LPSPDATA_ENUMSESSIONS);
|
|
typedef HRESULT (WINAPI *LPSP_GETCAPS)(LPSPDATA_GETCAPS);
|
|
typedef HRESULT (WINAPI *LPSP_GETGROUPCONNECTIONSETTINGS)(LPSPDATA_GETGROUPCONNECTIONSETTINGS);
|
|
typedef HRESULT (WINAPI *LPSP_GETGROUPDATA)(LPSPDATA_GETGROUPDATA);
|
|
typedef HRESULT (WINAPI *LPSP_GETPLAYERCAPS)(LPSPDATA_GETPLAYERCAPS);
|
|
typedef HRESULT (WINAPI *LPSP_GETPLAYERDATA)(LPSPDATA_GETPLAYERDATA);
|
|
typedef HRESULT (WINAPI *LPSP_HANDLEMESSAGE)(LPSPDATA_HANDLEMESSAGE);
|
|
typedef HRESULT (WINAPI *LPSP_OPEN)(LPSPDATA_OPEN);
|
|
typedef HRESULT (WINAPI *LPSP_SEND)(LPSPDATA_SEND);
|
|
typedef HRESULT (WINAPI *LPSP_SENDCHATMESSAGE)(LPSPDATA_CHATMESSAGE);
|
|
typedef HRESULT (WINAPI *LPSP_SETGROUPCONNECTIONSETTINGS)(LPSPDATA_SETGROUPCONNECTIONSETTINGS);
|
|
typedef HRESULT (WINAPI *LPSP_SETGROUPDATA)(LPSPDATA_SETGROUPDATA);
|
|
typedef HRESULT (WINAPI *LPSP_SETGROUPNAME)(LPSPDATA_SETGROUPNAME);
|
|
typedef HRESULT (WINAPI *LPSP_SETPLAYERDATA)(LPSPDATA_SETPLAYERDATA);
|
|
typedef HRESULT (WINAPI *LPSP_SETPLAYERNAME)(LPSPDATA_SETPLAYERNAME);
|
|
typedef HRESULT (WINAPI *LPSP_SHUTDOWN)(LPSPDATA_SHUTDOWN);
|
|
typedef HRESULT (WINAPI *LPSP_STARTSESSION)(LPSPDATA_STARTSESSION);
|
|
|
|
/* Callback table for dplay to call into service provider */
|
|
typedef struct SP_CALLBACKS
|
|
{
|
|
DWORD dwSize;
|
|
DWORD dwFlags;
|
|
LPSP_ADDGROUPTOGROUP AddGroupToGroup;
|
|
LPSP_ADDPLAYERTOGROUP AddPlayerToGroup;
|
|
LPSP_BUILDPARENTALHEIRARCHY BuildParentalHeirarchy;
|
|
LPSP_CLOSE Close;
|
|
LPSP_CREATEGROUP CreateGroup;
|
|
LPSP_CREATEGROUPINGROUP CreateGroupInGroup;
|
|
LPSP_CREATEPLAYER CreatePlayer;
|
|
LPSP_DELETEGROUPFROMGROUP DeleteGroupFromGroup;
|
|
LPSP_DELETEPLAYERFROMGROUP DeletePlayerFromGroup;
|
|
LPSP_DESTROYGROUP DestroyGroup;
|
|
LPSP_DESTROYPLAYER DestroyPlayer;
|
|
LPSP_ENUMSESSIONS EnumSessions;
|
|
LPSP_GETCAPS GetCaps;
|
|
LPSP_GETGROUPCONNECTIONSETTINGS GetGroupConnectionSettings;
|
|
LPSP_GETGROUPDATA GetGroupData;
|
|
LPSP_GETPLAYERCAPS GetPlayerCaps;
|
|
LPSP_GETPLAYERDATA GetPlayerData;
|
|
LPSP_OPEN Open;
|
|
LPSP_SEND Send;
|
|
LPSP_SENDCHATMESSAGE SendChatMessage;
|
|
LPSP_SETGROUPCONNECTIONSETTINGS SetGroupConnectionSettings;
|
|
LPSP_SETGROUPDATA SetGroupData;
|
|
LPSP_SETGROUPNAME SetGroupName;
|
|
LPSP_SETPLAYERDATA SetPlayerData;
|
|
LPSP_SETPLAYERNAME SetPlayerName;
|
|
LPSP_SHUTDOWN Shutdown;
|
|
LPSP_STARTSESSION StartSession;
|
|
} SP_CALLBACKS, *LPSP_CALLBACKS;
|
|
|
|
typedef struct SPDATA_INIT
|
|
{
|
|
LPSP_CALLBACKS lpCB;
|
|
DWORD dwSPVersion;
|
|
LPDPLOBBYSP lpISP;
|
|
LPDPADDRESS lpAddress;
|
|
} SPDATA_INIT, *LPSPDATA_INIT;
|
|
|
|
typedef HRESULT (WINAPI *LPSP_INIT)(LPSPDATA_INIT);
|
|
HRESULT WINAPI DPLSPInit(LPSPDATA_INIT);
|
|
|
|
/* Define the COM interface */
|
|
#define ICOM_INTERFACE IDPLobbySP
|
|
#define IDPLobbySP_METHODS \
|
|
ICOM_METHOD1(HRESULT, AddGroupToGroup, LPSPDATA_ADDREMOTEGROUPTOGROUP, argtg ) \
|
|
ICOM_METHOD1(HRESULT, AddPlayerToGroup, LPSPDATA_ADDREMOTEPLAYERTOGROUP, arptg ) \
|
|
ICOM_METHOD1(HRESULT, CreateGroup, LPSPDATA_CREATEREMOTEGROUP, crg ) \
|
|
ICOM_METHOD1(HRESULT, CreateGroupInGroup, LPSPDATA_CREATEREMOTEGROUPINGROUP, crgig ) \
|
|
ICOM_METHOD1(HRESULT, DeleteGroupFromGroup, LPSPDATA_DELETEREMOTEGROUPFROMGROUP, drgfg ) \
|
|
ICOM_METHOD1(HRESULT, DeletePlayerFromGroup, LPSPDATA_DELETEREMOTEPLAYERFROMGROUP, drpfg ) \
|
|
ICOM_METHOD1(HRESULT, DestroyGroup, LPSPDATA_DESTROYREMOTEGROUP, drg ) \
|
|
ICOM_METHOD1(HRESULT, EnumSessionsResponse, LPSPDATA_ENUMSESSIONSRESPONSE, er ) \
|
|
ICOM_METHOD1(HRESULT, GetSPDataPointer, LPVOID*, lplpData ) \
|
|
ICOM_METHOD1(HRESULT, HandleMessage, LPSPDATA_HANDLEMESSAGE, hm ) \
|
|
ICOM_METHOD1(HRESULT, SendChatMessage, LPSPDATA_CHATMESSAGE, cm ) \
|
|
ICOM_METHOD1(HRESULT, SetGroupName, LPSPDATA_SETREMOTEGROUPNAME, srgn ) \
|
|
ICOM_METHOD1(HRESULT, SetPlayerName, LPSPDATA_SETREMOTEPLAYERNAME, srpn ) \
|
|
ICOM_METHOD1(HRESULT, SetSessionDesc, LPSPDATA_SETSESSIONDESC, ssd ) \
|
|
ICOM_METHOD1(HRESULT, SetSPDataPointer, LPVOID, lpData ) \
|
|
ICOM_METHOD1(HRESULT, StartSession, LPSPDATA_STARTSESSIONCOMMAND, ssc )
|
|
|
|
#define IDPLobbySP_IMETHODS \
|
|
IUnknown_IMETHODS \
|
|
IDPLobbySP_METHODS
|
|
|
|
ICOM_DEFINE(IDPLobbySP,IUnknown)
|
|
#undef ICOM_INTERFACE
|
|
|
|
/*** IUnknown methods ***/
|
|
#define IDPLobbySP_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|
#define IDPLobbySP_AddRef(p) ICOM_CALL (AddRef,p)
|
|
#define IDPLobbySP_Release(p) ICOM_CALL (Release,p)
|
|
|
|
/*** IDPLobbySP methods ***/
|
|
#define IDPLobbySP_AddGroupToGroup(p,a) ICOM_CALL1(AddGroupToGroup,p,a)
|
|
#define IDPLobbySP_AddPlayerToGroup(p,a) ICOM_CALL1(AddPlayerToGroup,p,a)
|
|
#define IDPLobbySP_CreateGroup(p,a) ICOM_CALL1(CreateGroup,p,a)
|
|
#define IDPLobbySP_CreateGroupInGroup(p,a) ICOM_CALL1(CreateGroupInGroup,p,a)
|
|
#define IDPLobbySP_DeleteGroupFromGroup(p,a) ICOM_CALL1(DeleteGroupFromGroup,p,a)
|
|
#define IDPLobbySP_DeletePlayerFromGroup(p,a) ICOM_CALL1(DeletePlayerFromGroup,p,a)
|
|
#define IDPLobbySP_DestroyGroup(p,a) ICOM_CALL1(DestroyGroup,p,a)
|
|
#define IDPLobbySP_EnumSessionsResponse(p,a) ICOM_CALL1(EnumSessionsResponse,p,a)
|
|
#define IDPLobbySP_GetSPDataPointer(p,a) ICOM_CALL1(GetSPDataPointer,p,a)
|
|
#define IDPLobbySP_HandleMessage(p,a) ICOM_CALL1(HandleMessage,p,a)
|
|
#define IDPLobbySP_SetGroupName(p,a) ICOM_CALL1(SetGroupName,p,a)
|
|
#define IDPLobbySP_SetPlayerName(p,a) ICOM_CALL1(SetPlayerName,p,a)
|
|
#define IDPLobbySP_SetSessionDesc(p,a) ICOM_CALL1(SetSessionDesc,p,a)
|
|
#define IDPLobbySP_StartSession(p,a) ICOM_CALL1(StartSession,p,a)
|
|
#define IDPLobbySP_SetSPDataPointer(p,a) ICOM_CALL1(SetSPDataPointer,p,a)
|
|
|
|
/* This variable is exported from the DLL at ordinal 6 to be accessed by the
|
|
* SP directly. This is the same variable that the DP SP will use.
|
|
*/
|
|
extern DWORD gdwDPlaySPRefCount;
|
|
|
|
#endif
|