VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/dplobby8.h@ 33223

Last change on this file since 33223 was 16477, checked in by vboxsync, 16 years ago

LGPL disclaimer by filemuncher

  • Property svn:eol-style set to native
File size: 14.0 KB
Line 
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/*
20 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef __WINE_DPLOBBY8_H
29#define __WINE_DPLOBBY8_H
30
31#include <ole2.h>
32
33#ifdef __cplusplus
34extern "C" {
35#endif /* defined(__cplusplus) */
36
37/*****************************************************************************
38 * DirectPlay8Lobby defines
39 */
40#define DPL_MSGID_LOBBY 0x8000
41#define DPL_MSGID_RECEIVE (0x0001 | DPL_MSGID_LOBBY)
42#define DPL_MSGID_CONNECT (0x0002 | DPL_MSGID_LOBBY)
43#define DPL_MSGID_DISCONNECT (0x0003 | DPL_MSGID_LOBBY)
44#define DPL_MSGID_SESSION_STATUS (0x0004 | DPL_MSGID_LOBBY)
45#define DPL_MSGID_CONNECTION_SETTINGS (0x0005 | DPL_MSGID_LOBBY)
46#define DPLHANDLE_ALLCONNECTIONS 0xFFFFFFFF
47#define DPLSESSION_CONNECTED 0x0001
48#define DPLSESSION_COULDNOTCONNECT 0x0002
49#define DPLSESSION_DISCONNECTED 0x0003
50#define DPLSESSION_TERMINATED 0x0004
51#define DPLSESSION_HOSTMIGRATED 0x0005
52#define DPLSESSION_HOSTMIGRATEDHERE 0x0006
53#define DPLAVAILABLE_ALLOWMULTIPLECONNECT 0x0001
54#define DPLCONNECT_LAUNCHNEW 0x0001
55#define DPLCONNECT_LAUNCHNOTFOUND 0x0002
56#define DPLCONNECTSETTINGS_HOST 0x0001
57#define DPLINITIALIZE_DISABLEPARAMVAL 0x0001
58
59/*****************************************************************************
60 * DirectPlay8Lobby structures Typedefs
61 */
62typedef struct _DPL_APPLICATION_INFO {
63 GUID guidApplication;
64 PWSTR pwszApplicationName;
65 DWORD dwNumRunning;
66 DWORD dwNumWaiting;
67 DWORD dwFlags;
68} DPL_APPLICATION_INFO, *PDPL_APPLICATION_INFO;
69
70typedef struct _DPL_CONNECTION_SETTINGS {
71 DWORD dwSize;
72 DWORD dwFlags;
73 DPN_APPLICATION_DESC dpnAppDesc;
74 IDirectPlay8Address* pdp8HostAddress;
75 IDirectPlay8Address** ppdp8DeviceAddresses;
76 DWORD cNumDeviceAddresses;
77 PWSTR pwszPlayerName;
78} DPL_CONNECTION_SETTINGS, *PDPL_CONNECTION_SETTINGS;
79
80typedef struct _DPL_CONNECT_INFO {
81 DWORD dwSize;
82 DWORD dwFlags;
83 GUID guidApplication;
84 PDPL_CONNECTION_SETTINGS pdplConnectionSettings;
85 PVOID pvLobbyConnectData;
86 DWORD dwLobbyConnectDataSize;
87} DPL_CONNECT_INFO, *PDPL_CONNECT_INFO;
88
89typedef struct _DPL_PROGRAM_DESC {
90 DWORD dwSize;
91 DWORD dwFlags;
92 GUID guidApplication;
93 PWSTR pwszApplicationName;
94 PWSTR pwszCommandLine;
95 PWSTR pwszCurrentDirectory;
96 PWSTR pwszDescription;
97 PWSTR pwszExecutableFilename;
98 PWSTR pwszExecutablePath;
99 PWSTR pwszLauncherFilename;
100 PWSTR pwszLauncherPath;
101} DPL_PROGRAM_DESC, *PDPL_PROGRAM_DESC;
102
103typedef struct _DPL_MESSAGE_CONNECT {
104 DWORD dwSize;
105 DPNHANDLE hConnectId;
106 PDPL_CONNECTION_SETTINGS pdplConnectionSettings;
107 PVOID pvLobbyConnectData;
108 DWORD dwLobbyConnectDataSize;
109 PVOID pvConnectionContext;
110} DPL_MESSAGE_CONNECT, *PDPL_MESSAGE_CONNECT;
111
112typedef struct _DPL_MESSAGE_CONNECTION_SETTINGS {
113 DWORD dwSize;
114 DPNHANDLE hSender;
115 PDPL_CONNECTION_SETTINGS pdplConnectionSettings;
116 PVOID pvConnectionContext;
117} DPL_MESSAGE_CONNECTION_SETTINGS, *PDPL_MESSAGE_CONNECTION_SETTINGS;
118
119typedef struct _DPL_MESSAGE_DISCONNECT {
120 DWORD dwSize;
121 DPNHANDLE hDisconnectId;
122 HRESULT hrReason;
123 PVOID pvConnectionContext;
124} DPL_MESSAGE_DISCONNECT, *PDPL_MESSAGE_DISCONNECT;
125
126typedef struct _DPL_MESSAGE_RECEIVE {
127 DWORD dwSize;
128 DPNHANDLE hSender;
129 BYTE* pBuffer;
130 DWORD dwBufferSize;
131 PVOID pvConnectionContext;
132} DPL_MESSAGE_RECEIVE, *PDPL_MESSAGE_RECEIVE;
133
134typedef struct _DPL_MESSAGE_SESSION_STATUS {
135 DWORD dwSize;
136 DPNHANDLE hSender;
137 DWORD dwStatus;
138 PVOID pvConnectionContext;
139} DPL_MESSAGE_SESSION_STATUS, *PDPL_MESSAGE_SESSION_STATUS;
140
141/*****************************************************************************
142 * Predeclare the interfaces
143 */
144DEFINE_GUID(CLSID_DirectPlay8LobbiedApplication, 0x667955ad,0x6b3b,0x43ca,0xb9,0x49,0xbc,0x69,0xb5,0xba,0xff,0x7f);
145DEFINE_GUID(CLSID_DirectPlay8LobbyClient, 0x3b2b6775,0x70b6,0x45af,0x8d,0xea,0xa2,0x09,0xc6,0x95,0x59,0xf3);
146
147DEFINE_GUID(IID_IDirectPlay8LobbiedApplication, 0x819074a3,0x16c,0x11d3,0xae,0x14,0x00,0x60,0x97,0xb0,0x14,0x11);
148typedef struct IDirectPlay8LobbiedApplication *PDIRECTPLAY8LOBBIEDAPPLICATION;
149DEFINE_GUID(IID_IDirectPlay8LobbyClient, 0x819074a2,0x16c,0x11d3,0xae,0x14,0x00,0x60,0x97,0xb0,0x14,0x11);
150typedef struct IDirectPlay8LobbyClient *PDIRECTPLAY8LOBBYCLIENT;
151
152/*****************************************************************************
153 * IDirectPlay8LobbiedApplication interface
154 */
155#define INTERFACE IDirectPlay8LobbiedApplication
156DECLARE_INTERFACE_(IDirectPlay8LobbiedApplication,IUnknown)
157{
158 /*** IUnknown methods ***/
159 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
160 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
161 STDMETHOD_(ULONG,Release)(THIS) PURE;
162 /*** IDirectPlay8LobbiedApplication methods ***/
163 STDMETHOD(Initialize)(THIS_ CONST PVOID pvUserContext, CONST PFNDPNMESSAGEHANDLER pfn, DPNHANDLE* CONST pdpnhConnection, CONST DWORD dwFlags) PURE;
164 STDMETHOD(RegisterProgram)(THIS_ PDPL_PROGRAM_DESC pdplProgramDesc, CONST DWORD dwFlags) PURE;
165 STDMETHOD(UnRegisterProgram)(THIS_ GUID* pguidApplication, CONST DWORD dwFlags) PURE;
166 STDMETHOD(Send)(THIS_ CONST DPNHANDLE hConnection, BYTE* CONST pBuffer, CONST DWORD pBufferSize, CONST DWORD dwFlags) PURE;
167 STDMETHOD(SetAppAvailable)(THIS_ CONST BOOL fAvailable, CONST DWORD dwFlags) PURE;
168 STDMETHOD(UpdateStatus)(THIS_ CONST DPNHANDLE hConnection, CONST DWORD dwStatus, CONST DWORD dwFlags) PURE;
169 STDMETHOD(Close)(THIS_ CONST DWORD dwFlags) PURE;
170 STDMETHOD(GetConnectionSettings)(THIS_ CONST DPNHANDLE hConnection, DPL_CONNECTION_SETTINGS* CONST pdplSessionInfo, DWORD* pdwInfoSize, CONST DWORD dwFlags) PURE;
171 STDMETHOD(SetConnectionSettings)(THIS_ CONST DPNHANDLE hConnection, CONST DPL_CONNECTION_SETTINGS* CONST pdplSessionInfo, CONST DWORD dwFlags) PURE;
172};
173#undef INTERFACE
174
175#if !defined(__cplusplus) || defined(CINTERFACE)
176/*** IUnknown methods ***/
177#define IDirectPlay8LobbiedApplication_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
178#define IDirectPlay8LobbiedApplication_AddRef(p) (p)->lpVtbl->AddRef(p)
179#define IDirectPlay8LobbiedApplication_Release(p) (p)->lpVtbl->Release(p)
180/*** IDirectPlay8LobbiedApplication methods ***/
181#define IDirectPlay8LobbiedApplication_Initialize(p,a,b,c,d) (p)->lpVtbl->Initialize(p,a,b,c,d)
182#define IDirectPlay8LobbiedApplication_RegisterProgram(p,a,b) (p)->lpVtbl->RegisterProgram(p,a,b)
183#define IDirectPlay8LobbiedApplication_UnRegisterProgram(p,a,b) (p)->lpVtbl->UnRegisterProgram(p,a,b)
184#define IDirectPlay8LobbiedApplication_Send(p,a,b,c,d) (p)->lpVtbl->Send(p,a,b,c,d)
185#define IDirectPlay8LobbiedApplication_SetAppAvailable(p,a,b) (p)->lpVtbl->SetAppAvailable(p,a,b)
186#define IDirectPlay8LobbiedApplication_UpdateStatus(p,a,b,c) (p)->lpVtbl->UpdateStatus(p,a,b,c)
187#define IDirectPlay8LobbiedApplication_Close(p,a) (p)->lpVtbl->Close(p,a)
188#define IDirectPlay8LobbiedApplication_GetConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetConnectionSettings(p,a,b,c,d)
189#define IDirectPlay8LobbiedApplication_SetConnectionSettings(p,a,b,c) (p)->lpVtbl->SetConnectionSettings(p,a,b,c)
190#else
191/*** IUnknown methods ***/
192#define IDirectPlay8LobbiedApplication_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
193#define IDirectPlay8LobbiedApplication_AddRef(p) (p)->AddRef()
194#define IDirectPlay8LobbiedApplication_Release(p) (p)->Release()
195/*** IDirectPlay8LobbiedApplication methods ***/
196#define IDirectPlay8LobbiedApplication_Initialize(p,a,b,c,d) (p)->Initialize(a,b,c,d)
197#define IDirectPlay8LobbiedApplication_RegisterProgram(p,a,b) (p)->RegisterProgram(a,b)
198#define IDirectPlay8LobbiedApplication_UnRegisterProgram(p,a,b) (p)->UnRegisterProgram(a,b)
199#define IDirectPlay8LobbiedApplication_Send(p,a,b,c,d) (p)->Send(a,b,c,d)
200#define IDirectPlay8LobbiedApplication_SetAppAvailable(p,a,b) (p)->SetAppAvailable(a,b)
201#define IDirectPlay8LobbiedApplication_UpdateStatus(p,a,b,c) (p)->UpdateStatus(a,b,c)
202#define IDirectPlay8LobbiedApplication_Close(p,a) (p)->Close(a)
203#define IDirectPlay8LobbiedApplication_GetConnectionSettings(p,a,b,c,d) (p)->GetConnectionSettings(a,b,c,d)
204#define IDirectPlay8LobbiedApplication_SetConnectionSettings(p,a,b,c) (p)->SetConnectionSettings(a,b,c)
205#endif
206
207/*****************************************************************************
208 * IDirectPlay8LobbyClient interface
209 */
210#define INTERFACE IDirectPlay8LobbyClient
211DECLARE_INTERFACE_(IDirectPlay8LobbyClient,IUnknown)
212{
213 /*** IUnknown methods ***/
214 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
215 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
216 STDMETHOD_(ULONG,Release)(THIS) PURE;
217 /*** IDirectPlay8LobbyClient methods ***/
218 STDMETHOD(Initialize)(THIS_ CONST PVOID pvUserContext, CONST PFNDPNMESSAGEHANDLER pfn, CONST DWORD dwFlags) PURE;
219 STDMETHOD(EnumLocalPrograms)(THIS_ GUID* CONST pGuidApplication, BYTE* CONST pEnumData, DWORD* CONST pdwEnumData, DWORD* CONST pdwItems, CONST DWORD dwFlags) PURE;
220 STDMETHOD(ConnectApplication)(THIS_ DPL_CONNECT_INFO* CONST pdplConnectionInfo, CONST PVOID pvConnectionContext, DPNHANDLE* CONST hApplication, CONST DWORD dwTimeOut, CONST DWORD dwFlags) PURE;
221 STDMETHOD(Send)(THIS_ CONST DPNHANDLE hConnection, BYTE* CONST pBuffer, CONST DWORD pBufferSize, CONST DWORD dwFlags) PURE;
222 STDMETHOD(ReleaseApplication)(THIS_ CONST DPNHANDLE hConnection, CONST DWORD dwFlags) PURE;
223 STDMETHOD(Close)(THIS_ CONST DWORD dwFlags) PURE;
224 STDMETHOD(GetConnectionSettings)(THIS_ CONST DPNHANDLE hConnection, DPL_CONNECTION_SETTINGS* CONST pdplSessionInfo, DWORD* pdwInfoSize, CONST DWORD dwFlags) PURE;
225 STDMETHOD(SetConnectionSettings)(THIS_ CONST DPNHANDLE hConnection, CONST DPL_CONNECTION_SETTINGS* CONST pdplSessionInfo, CONST DWORD dwFlags) PURE;
226};
227#undef INTERFACE
228
229#if !defined(__cplusplus) || defined(CINTERFACE)
230/*** IUnknown methods ***/
231#define IDirectPlay8LobbyClient_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
232#define IDirectPlay8LobbyClient_AddRef(p) (p)->lpVtbl->AddRef(p)
233#define IDirectPlay8LobbyClient_Release(p) (p)->lpVtbl->Release(p)
234/*** IDirectPlay8LobbyClient methods ***/
235#define IDirectPlay8LobbyClient_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
236#define IDirectPlay8LobbyClient_EnumLocalPrograms(p,a,b,c,d,e) (p)->lpVtbl->EnumLocalPrograms(p,a,b,c,d,e)
237#define IDirectPlay8LobbyClient_ConnectApplication(p,a,b,c,d,e) (p)->lpVtbl->ConnectApplication(p,a,b,c,d,e)
238#define IDirectPlay8LobbyClient_Send(p,a,b,c,d) (p)->lpVtbl->Send(p,a,b,c,d)
239#define IDirectPlay8LobbyClient_ReleaseApplication(p,a,b) (p)->lpVtbl->ReleaseApplication(p,a,b)
240#define IDirectPlay8LobbyClient_Close(p,a) (p)->lpVtbl->Close(p,a)
241#define IDirectPlay8LobbyClient_GetConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetConnectionSettings(p,a,b,c,d)
242#define IDirectPlay8LobbyClient_SetConnectionSettings(p,a,b,c) (p)->lpVtbl->SetConnectionSettings(p,a,b,c)
243#else
244/*** IUnknown methods ***/
245#define IDirectPlay8LobbyClient_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
246#define IDirectPlay8LobbyClient_AddRef(p) (p)->AddRef()
247#define IDirectPlay8LobbyClient_Release(p) (p)->Release()
248/*** IDirectPlay8LobbyClient methods ***/
249#define IDirectPlay8LobbyClient_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
250#define IDirectPlay8LobbyClient_EnumLocalPrograms(p,a,b,c,d,e) (p)->EnumLocalPrograms(a,b,c,d,e)
251#define IDirectPlay8LobbyClient_ConnectApplication(p,a,b,c,d,e) (p)->ConnectApplication(a,b,c,d,e)
252#define IDirectPlay8LobbyClient_Send(p,a,b,c,d) (p)->Send(a,b,c,d)
253#define IDirectPlay8LobbyClient_ReleaseApplication(p,a,b) (p)->ReleaseApplication(a,b)
254#define IDirectPlay8LobbyClient_Close(p,a) (p)->Close(a)
255#define IDirectPlay8LobbyClient_GetConnectionSettings(p,a,b,c,d) (p)->GetConnectionSettings(a,b,c,d)
256#define IDirectPlay8LobbyClient_SetConnectionSettings(p,a,b,c) (p)->SetConnectionSettings(a,b,c)
257#endif
258
259
260/* Export functions */
261
262HRESULT WINAPI DirectPlay8LobbyCreate(CONST GUID* pcIID, LPVOID* ppvInterface, IUnknown* pUnknown);
263
264#ifdef __cplusplus
265}
266#endif
267
268#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette