ReactOS 0.4.17-dev-934-g091855f
dplobby8.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2003-2005 Raphael Junqueira
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#ifndef __WINE_DPLOBBY8_H
20#define __WINE_DPLOBBY8_H
21
22#include <ole2.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif /* defined(__cplusplus) */
27
28/*****************************************************************************
29 * DirectPlay8Lobby defines
30 */
31#define DPL_MSGID_LOBBY 0x8000
32#define DPL_MSGID_RECEIVE (0x0001 | DPL_MSGID_LOBBY)
33#define DPL_MSGID_CONNECT (0x0002 | DPL_MSGID_LOBBY)
34#define DPL_MSGID_DISCONNECT (0x0003 | DPL_MSGID_LOBBY)
35#define DPL_MSGID_SESSION_STATUS (0x0004 | DPL_MSGID_LOBBY)
36#define DPL_MSGID_CONNECTION_SETTINGS (0x0005 | DPL_MSGID_LOBBY)
37#define DPLHANDLE_ALLCONNECTIONS 0xFFFFFFFF
38#define DPLSESSION_CONNECTED 0x0001
39#define DPLSESSION_COULDNOTCONNECT 0x0002
40#define DPLSESSION_DISCONNECTED 0x0003
41#define DPLSESSION_TERMINATED 0x0004
42#define DPLSESSION_HOSTMIGRATED 0x0005
43#define DPLSESSION_HOSTMIGRATEDHERE 0x0006
44#define DPLAVAILABLE_ALLOWMULTIPLECONNECT 0x0001
45#define DPLCONNECT_LAUNCHNEW 0x0001
46#define DPLCONNECT_LAUNCHNOTFOUND 0x0002
47#define DPLCONNECTSETTINGS_HOST 0x0001
48#define DPLINITIALIZE_DISABLEPARAMVAL 0x0001
49
50/*****************************************************************************
51 * DirectPlay8Lobby structures Typedefs
52 */
53typedef struct _DPL_APPLICATION_INFO {
60
65 IDirectPlay8Address* pdp8HostAddress;
66 IDirectPlay8Address** ppdp8DeviceAddresses;
70
71typedef struct _DPL_CONNECT_INFO {
79
80typedef struct _DPL_PROGRAM_DESC {
93
94typedef struct _DPL_MESSAGE_CONNECT {
102
109
116
117typedef struct _DPL_MESSAGE_RECEIVE {
124
131
132/*****************************************************************************
133 * Predeclare the interfaces
134 */
135DEFINE_GUID(CLSID_DirectPlay8LobbiedApplication, 0x667955ad,0x6b3b,0x43ca,0xb9,0x49,0xbc,0x69,0xb5,0xba,0xff,0x7f);
136DEFINE_GUID(CLSID_DirectPlay8LobbyClient, 0x3b2b6775,0x70b6,0x45af,0x8d,0xea,0xa2,0x09,0xc6,0x95,0x59,0xf3);
137
138DEFINE_GUID(IID_IDirectPlay8LobbiedApplication, 0x819074a3,0x16c,0x11d3,0xae,0x14,0x00,0x60,0x97,0xb0,0x14,0x11);
139typedef struct IDirectPlay8LobbiedApplication *PDIRECTPLAY8LOBBIEDAPPLICATION;
140DEFINE_GUID(IID_IDirectPlay8LobbyClient, 0x819074a2,0x16c,0x11d3,0xae,0x14,0x00,0x60,0x97,0xb0,0x14,0x11);
141typedef struct IDirectPlay8LobbyClient *PDIRECTPLAY8LOBBYCLIENT;
142
143/*****************************************************************************
144 * IDirectPlay8LobbiedApplication interface
145 */
146#define INTERFACE IDirectPlay8LobbiedApplication
147DECLARE_INTERFACE_(IDirectPlay8LobbiedApplication,IUnknown)
148{
149 /*** IUnknown methods ***/
153 /*** IDirectPlay8LobbiedApplication methods ***/
154 STDMETHOD(Initialize)(THIS_ PVOID pvUserContext, PFNDPNMESSAGEHANDLER pfn, DPNHANDLE* pdpnhConnection, DWORD dwFlags) PURE;
155 STDMETHOD(RegisterProgram)(THIS_ PDPL_PROGRAM_DESC pdplProgramDesc, DWORD dwFlags) PURE;
156 STDMETHOD(UnRegisterProgram)(THIS_ GUID* pguidApplication, DWORD dwFlags) PURE;
158 STDMETHOD(SetAppAvailable)(THIS_ BOOL fAvailable, DWORD dwFlags) PURE;
161 STDMETHOD(GetConnectionSettings)(THIS_ DPNHANDLE hConnection, DPL_CONNECTION_SETTINGS* pdplSessionInfo, DWORD* pdwInfoSize, DWORD dwFlags) PURE;
162 STDMETHOD(SetConnectionSettings)(THIS_ DPNHANDLE hConnection, const DPL_CONNECTION_SETTINGS* pdplSessionInfo, DWORD dwFlags) PURE;
163};
164#undef INTERFACE
165
166#if !defined(__cplusplus) || defined(CINTERFACE)
167/*** IUnknown methods ***/
168#define IDirectPlay8LobbiedApplication_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
169#define IDirectPlay8LobbiedApplication_AddRef(p) (p)->lpVtbl->AddRef(p)
170#define IDirectPlay8LobbiedApplication_Release(p) (p)->lpVtbl->Release(p)
171/*** IDirectPlay8LobbiedApplication methods ***/
172#define IDirectPlay8LobbiedApplication_Initialize(p,a,b,c,d) (p)->lpVtbl->Initialize(p,a,b,c,d)
173#define IDirectPlay8LobbiedApplication_RegisterProgram(p,a,b) (p)->lpVtbl->RegisterProgram(p,a,b)
174#define IDirectPlay8LobbiedApplication_UnRegisterProgram(p,a,b) (p)->lpVtbl->UnRegisterProgram(p,a,b)
175#define IDirectPlay8LobbiedApplication_Send(p,a,b,c,d) (p)->lpVtbl->Send(p,a,b,c,d)
176#define IDirectPlay8LobbiedApplication_SetAppAvailable(p,a,b) (p)->lpVtbl->SetAppAvailable(p,a,b)
177#define IDirectPlay8LobbiedApplication_UpdateStatus(p,a,b,c) (p)->lpVtbl->UpdateStatus(p,a,b,c)
178#define IDirectPlay8LobbiedApplication_Close(p,a) (p)->lpVtbl->Close(p,a)
179#define IDirectPlay8LobbiedApplication_GetConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetConnectionSettings(p,a,b,c,d)
180#define IDirectPlay8LobbiedApplication_SetConnectionSettings(p,a,b,c) (p)->lpVtbl->SetConnectionSettings(p,a,b,c)
181#else
182/*** IUnknown methods ***/
183#define IDirectPlay8LobbiedApplication_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
184#define IDirectPlay8LobbiedApplication_AddRef(p) (p)->AddRef()
185#define IDirectPlay8LobbiedApplication_Release(p) (p)->Release()
186/*** IDirectPlay8LobbiedApplication methods ***/
187#define IDirectPlay8LobbiedApplication_Initialize(p,a,b,c,d) (p)->Initialize(a,b,c,d)
188#define IDirectPlay8LobbiedApplication_RegisterProgram(p,a,b) (p)->RegisterProgram(a,b)
189#define IDirectPlay8LobbiedApplication_UnRegisterProgram(p,a,b) (p)->UnRegisterProgram(a,b)
190#define IDirectPlay8LobbiedApplication_Send(p,a,b,c,d) (p)->Send(a,b,c,d)
191#define IDirectPlay8LobbiedApplication_SetAppAvailable(p,a,b) (p)->SetAppAvailable(a,b)
192#define IDirectPlay8LobbiedApplication_UpdateStatus(p,a,b,c) (p)->UpdateStatus(a,b,c)
193#define IDirectPlay8LobbiedApplication_Close(p,a) (p)->Close(a)
194#define IDirectPlay8LobbiedApplication_GetConnectionSettings(p,a,b,c,d) (p)->GetConnectionSettings(a,b,c,d)
195#define IDirectPlay8LobbiedApplication_SetConnectionSettings(p,a,b,c) (p)->SetConnectionSettings(a,b,c)
196#endif
197
198/*****************************************************************************
199 * IDirectPlay8LobbyClient interface
200 */
201#define INTERFACE IDirectPlay8LobbyClient
202DECLARE_INTERFACE_(IDirectPlay8LobbyClient,IUnknown)
203{
204 /*** IUnknown methods ***/
208 /*** IDirectPlay8LobbyClient methods ***/
210 STDMETHOD(EnumLocalPrograms)(THIS_ GUID* pGuidApplication, BYTE* pEnumData, DWORD* pdwEnumData, DWORD* pdwItems, DWORD dwFlags) PURE;
211 STDMETHOD(ConnectApplication)(THIS_ DPL_CONNECT_INFO* pdplConnectionInfo, PVOID pvConnectionContext, DPNHANDLE* hApplication, DWORD dwTimeOut, DWORD dwFlags) PURE;
213 STDMETHOD(ReleaseApplication)(THIS_ DPNHANDLE hConnection, DWORD dwFlags) PURE;
215 STDMETHOD(GetConnectionSettings)(THIS_ DPNHANDLE hConnection, DPL_CONNECTION_SETTINGS* pdplSessionInfo, DWORD* pdwInfoSize, DWORD dwFlags) PURE;
216 STDMETHOD(SetConnectionSettings)(THIS_ DPNHANDLE hConnection, const DPL_CONNECTION_SETTINGS* pdplSessionInfo, DWORD dwFlags) PURE;
217};
218#undef INTERFACE
219
220#if !defined(__cplusplus) || defined(CINTERFACE)
221/*** IUnknown methods ***/
222#define IDirectPlay8LobbyClient_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
223#define IDirectPlay8LobbyClient_AddRef(p) (p)->lpVtbl->AddRef(p)
224#define IDirectPlay8LobbyClient_Release(p) (p)->lpVtbl->Release(p)
225/*** IDirectPlay8LobbyClient methods ***/
226#define IDirectPlay8LobbyClient_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
227#define IDirectPlay8LobbyClient_EnumLocalPrograms(p,a,b,c,d,e) (p)->lpVtbl->EnumLocalPrograms(p,a,b,c,d,e)
228#define IDirectPlay8LobbyClient_ConnectApplication(p,a,b,c,d,e) (p)->lpVtbl->ConnectApplication(p,a,b,c,d,e)
229#define IDirectPlay8LobbyClient_Send(p,a,b,c,d) (p)->lpVtbl->Send(p,a,b,c,d)
230#define IDirectPlay8LobbyClient_ReleaseApplication(p,a,b) (p)->lpVtbl->ReleaseApplication(p,a,b)
231#define IDirectPlay8LobbyClient_Close(p,a) (p)->lpVtbl->Close(p,a)
232#define IDirectPlay8LobbyClient_GetConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetConnectionSettings(p,a,b,c,d)
233#define IDirectPlay8LobbyClient_SetConnectionSettings(p,a,b,c) (p)->lpVtbl->SetConnectionSettings(p,a,b,c)
234#else
235/*** IUnknown methods ***/
236#define IDirectPlay8LobbyClient_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
237#define IDirectPlay8LobbyClient_AddRef(p) (p)->AddRef()
238#define IDirectPlay8LobbyClient_Release(p) (p)->Release()
239/*** IDirectPlay8LobbyClient methods ***/
240#define IDirectPlay8LobbyClient_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
241#define IDirectPlay8LobbyClient_EnumLocalPrograms(p,a,b,c,d,e) (p)->EnumLocalPrograms(a,b,c,d,e)
242#define IDirectPlay8LobbyClient_ConnectApplication(p,a,b,c,d,e) (p)->ConnectApplication(a,b,c,d,e)
243#define IDirectPlay8LobbyClient_Send(p,a,b,c,d) (p)->Send(a,b,c,d)
244#define IDirectPlay8LobbyClient_ReleaseApplication(p,a,b) (p)->ReleaseApplication(a,b)
245#define IDirectPlay8LobbyClient_Close(p,a) (p)->Close(a)
246#define IDirectPlay8LobbyClient_GetConnectionSettings(p,a,b,c,d) (p)->GetConnectionSettings(a,b,c,d)
247#define IDirectPlay8LobbyClient_SetConnectionSettings(p,a,b,c) (p)->SetConnectionSettings(a,b,c)
248#endif
249
250
251/* Export functions */
252
254
255#ifdef __cplusplus
256}
257#endif
258
259#endif
#define DECLARE_INTERFACE_(i, b)
Definition: basetyps.h:78
#define PURE
Definition: basetyps.h:64
#define THIS_
Definition: basetyps.h:65
#define THIS
Definition: basetyps.h:66
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
#define STDMETHOD(m)
Definition: basetyps.h:62
_In_ BOOLEAN Release
Definition: cdrom.h:920
_Check_return_ _In_ PQUERY_INTERFACE QueryInterface
Definition: dispmprt.h:1318
HRESULT(WINAPI * PFNDPNMESSAGEHANDLER)(PVOID, DWORD, PVOID)
Definition: dplay8.h:30
DWORD DPNHANDLE
Definition: dplay8.h:32
struct _DPL_PROGRAM_DESC * PDPL_PROGRAM_DESC
struct _DPL_CONNECT_INFO * PDPL_CONNECT_INFO
struct _DPL_MESSAGE_CONNECT * PDPL_MESSAGE_CONNECT
struct _DPL_PROGRAM_DESC DPL_PROGRAM_DESC
struct _DPL_MESSAGE_CONNECTION_SETTINGS DPL_MESSAGE_CONNECTION_SETTINGS
struct _DPL_MESSAGE_DISCONNECT DPL_MESSAGE_DISCONNECT
struct IDirectPlay8LobbiedApplication * PDIRECTPLAY8LOBBIEDAPPLICATION
Definition: dplobby8.h:139
struct _DPL_CONNECT_INFO DPL_CONNECT_INFO
struct _DPL_MESSAGE_RECEIVE * PDPL_MESSAGE_RECEIVE
struct _DPL_APPLICATION_INFO DPL_APPLICATION_INFO
struct _DPL_CONNECTION_SETTINGS * PDPL_CONNECTION_SETTINGS
struct IDirectPlay8LobbyClient * PDIRECTPLAY8LOBBYCLIENT
Definition: dplobby8.h:141
struct _DPL_MESSAGE_RECEIVE DPL_MESSAGE_RECEIVE
struct _DPL_APPLICATION_INFO * PDPL_APPLICATION_INFO
struct _DPL_CONNECTION_SETTINGS DPL_CONNECTION_SETTINGS
struct _DPL_MESSAGE_CONNECT DPL_MESSAGE_CONNECT
HRESULT WINAPI DirectPlay8LobbyCreate(const GUID *pcIID, LPVOID *ppvInterface, IUnknown *pUnknown)
struct _DPL_MESSAGE_SESSION_STATUS * PDPL_MESSAGE_SESSION_STATUS
struct _DPL_MESSAGE_SESSION_STATUS DPL_MESSAGE_SESSION_STATUS
struct _DPL_MESSAGE_CONNECTION_SETTINGS * PDPL_MESSAGE_CONNECTION_SETTINGS
struct _DPL_MESSAGE_DISCONNECT * PDPL_MESSAGE_DISCONNECT
_In_ PUNKNOWN pUnknown
Definition: drmk.h:76
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
_Must_inspect_result_ _In_ ULONG _Out_writes_bytes_ pBufferSize PVOID _Inout_ PULONG pBufferSize
Definition: fsrtlfuncs.h:1165
REFIID riid
Definition: atlbase.h:39
static ULONG WINAPI AddRef(IStream *iface)
Definition: clist.c:83
_In_ LPWSTR _In_ DWORD _In_ DWORD _In_ DWORD dwFlags
Definition: netsh.h:141
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
Definition: guiddef.h:68
#define REFIID
Definition: guiddef.h:118
DWORD dwStatus
Definition: mediaobj.idl:95
PVOID pBuffer
@ Close
Definition: sacdrv.h:268
PWSTR pwszApplicationName
Definition: dplobby8.h:55
IDirectPlay8Address ** ppdp8DeviceAddresses
Definition: dplobby8.h:66
DPN_APPLICATION_DESC dpnAppDesc
Definition: dplobby8.h:64
IDirectPlay8Address * pdp8HostAddress
Definition: dplobby8.h:65
PVOID pvLobbyConnectData
Definition: dplobby8.h:76
GUID guidApplication
Definition: dplobby8.h:74
PDPL_CONNECTION_SETTINGS pdplConnectionSettings
Definition: dplobby8.h:75
DWORD dwLobbyConnectDataSize
Definition: dplobby8.h:77
PDPL_CONNECTION_SETTINGS pdplConnectionSettings
Definition: dplobby8.h:106
DPNHANDLE hConnectId
Definition: dplobby8.h:96
DWORD dwLobbyConnectDataSize
Definition: dplobby8.h:99
PDPL_CONNECTION_SETTINGS pdplConnectionSettings
Definition: dplobby8.h:97
PVOID pvLobbyConnectData
Definition: dplobby8.h:98
PVOID pvConnectionContext
Definition: dplobby8.h:100
DPNHANDLE hDisconnectId
Definition: dplobby8.h:112
PVOID pvConnectionContext
Definition: dplobby8.h:122
DPNHANDLE hSender
Definition: dplobby8.h:119
GUID guidApplication
Definition: dplobby8.h:83
PWSTR pwszExecutablePath
Definition: dplobby8.h:89
PWSTR pwszExecutableFilename
Definition: dplobby8.h:88
PWSTR pwszApplicationName
Definition: dplobby8.h:84
PWSTR pwszLauncherFilename
Definition: dplobby8.h:90
PWSTR pwszCurrentDirectory
Definition: dplobby8.h:86
PWSTR pwszDescription
Definition: dplobby8.h:87
PWSTR pwszCommandLine
Definition: dplobby8.h:85
PWSTR pwszLauncherPath
Definition: dplobby8.h:91
static VOID UpdateStatus(PSERVICEINFO pServInfo, DWORD NewStatus, DWORD Check)
Definition: tcpsvcs.c:37
uint16_t * PWSTR
Definition: typedefs.h:56
uint32_t ULONG
Definition: typedefs.h:59
#define WINAPI
Definition: msvc.h:6
static void Initialize()
Definition: xlate.c:212
unsigned char BYTE
Definition: xxhash.c:193