winecoreaudio: Use mmdevapi's AudioSessionControl.
[wine.git] / include / dplay.h
blob70431db7f3a596db058f34699f0dc42c8f5ead5f
1 /*
2 * Copyright (C) the Wine project
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.
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.
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
19 #ifndef __WINE_DPLAY_H
20 #define __WINE_DPLAY_H
22 #include <ole2.h>
24 #ifdef __cplusplus
25 extern "C" {
26 #endif /* defined(__cplusplus) */
28 typedef LPVOID (*LPRGLPVOID)[];
29 typedef LPRGLPVOID PRGPVOID, LPRGPVOID, PRGLPVOID, PAPVOID, LPAPVOID, PALPVOID, LPALPVOID;
31 #define VOL volatile
32 typedef VOID * volatile LPVOIDV;
35 /*****************************************************************************
36 * Predeclare the interfaces
38 DEFINE_GUID(CLSID_DirectPlay,0xd1eb6d20, 0x8923, 0x11d0, 0x9d, 0x97, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb);
40 DEFINE_GUID(IID_IDirectPlay, 0x5454e9a0, 0xdb65, 0x11ce, 0x92, 0x1c, 0x00, 0xaa, 0x00, 0x6c, 0x49, 0x72);
41 typedef struct IDirectPlay *LPDIRECTPLAY;
43 DEFINE_GUID(IID_IDirectPlay2, 0x2b74f7c0, 0x9154, 0x11cf, 0xa9, 0xcd, 0x0, 0xaa, 0x0, 0x68, 0x86, 0xe3);
44 typedef struct IDirectPlay2 *LPDIRECTPLAY2;
46 DEFINE_GUID(IID_IDirectPlay2A,0x9d460580, 0xa822, 0x11cf, 0x96, 0xc, 0x0, 0x80, 0xc7, 0x53, 0x4e, 0x82);
47 typedef struct IDirectPlay2 IDirectPlay2A,*LPDIRECTPLAY2A;
49 DEFINE_GUID(IID_IDirectPlay3, 0x133efe40, 0x32dc, 0x11d0, 0x9c, 0xfb, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb);
50 typedef struct IDirectPlay3 *LPDIRECTPLAY3;
52 DEFINE_GUID(IID_IDirectPlay3A,0x133efe41, 0x32dc, 0x11d0, 0x9c, 0xfb, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb);
53 typedef struct IDirectPlay3 IDirectPlay3A,*LPDIRECTPLAY3A;
55 DEFINE_GUID(IID_IDirectPlay4, 0xab1c530, 0x4745, 0x11d1, 0xa7, 0xa1, 0x0, 0x0, 0xf8, 0x3, 0xab, 0xfc);
56 typedef struct IDirectPlay4 *LPDIRECTPLAY4;
58 DEFINE_GUID(IID_IDirectPlay4A,0xab1c531, 0x4745, 0x11d1, 0xa7, 0xa1, 0x0, 0x0, 0xf8, 0x3, 0xab, 0xfc);
59 typedef struct IDirectPlay4 IDirectPlay4A,*LPDIRECTPLAY4A;
63 * GUIDS used by Service Providers shipped with DirectPlay
64 * Use these to identify Service Provider returned by EnumConnections
67 /* GUID for IPX service provider {685BC400-9D2C-11cf-A9CD-00AA006886E3} */
68 DEFINE_GUID(DPSPGUID_IPX, 0x685bc400, 0x9d2c, 0x11cf, 0xa9, 0xcd, 0x0, 0xaa, 0x0, 0x68, 0x86, 0xe3);
70 /* GUID for TCP/IP service provider {36E95EE0-8577-11cf-960C-0080C7534E82} */
71 DEFINE_GUID(DPSPGUID_TCPIP, 0x36E95EE0, 0x8577, 0x11cf, 0x96, 0xc, 0x0, 0x80, 0xc7, 0x53, 0x4e, 0x82);
73 /* GUID for Serial service provider {0F1D6860-88D9-11cf-9C4E-00A0C905425E} */
74 DEFINE_GUID(DPSPGUID_SERIAL, 0xf1d6860, 0x88d9, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
76 /* GUID for Modem service provider {44EAA760-CB68-11cf-9C4E-00A0C905425E} */
77 DEFINE_GUID(DPSPGUID_MODEM, 0x44eaa760, 0xcb68, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
80 /*****************************************************************************
81 * Miscellaneous
84 /* Return Values for Direct Play */
85 #define _FACDP 0x877
86 #define MAKE_DPHRESULT( code ) MAKE_HRESULT( 1, _FACDP, code )
88 #define DP_OK S_OK
89 #define DPERR_ALREADYINITIALIZED MAKE_DPHRESULT( 5 )
90 #define DPERR_ACCESSDENIED MAKE_DPHRESULT( 10 )
91 #define DPERR_ACTIVEPLAYERS MAKE_DPHRESULT( 20 )
92 #define DPERR_BUFFERTOOSMALL MAKE_DPHRESULT( 30 )
93 #define DPERR_CANTADDPLAYER MAKE_DPHRESULT( 40 )
94 #define DPERR_CANTCREATEGROUP MAKE_DPHRESULT( 50 )
95 #define DPERR_CANTCREATEPLAYER MAKE_DPHRESULT( 60 )
96 #define DPERR_CANTCREATESESSION MAKE_DPHRESULT( 70 )
97 #define DPERR_CAPSNOTAVAILABLEYET MAKE_DPHRESULT( 80 )
98 #define DPERR_EXCEPTION MAKE_DPHRESULT( 90 )
99 #define DPERR_GENERIC E_FAIL
100 #define DPERR_INVALIDFLAGS MAKE_DPHRESULT( 120 )
101 #define DPERR_INVALIDOBJECT MAKE_DPHRESULT( 130 )
102 #define DPERR_INVALIDPARAM E_INVALIDARG
103 #define DPERR_INVALIDPARAMS DPERR_INVALIDPARAM
104 #define DPERR_INVALIDPLAYER MAKE_DPHRESULT( 150 )
105 #define DPERR_INVALIDGROUP MAKE_DPHRESULT( 155 )
106 #define DPERR_NOCAPS MAKE_DPHRESULT( 160 )
107 #define DPERR_NOCONNECTION MAKE_DPHRESULT( 170 )
108 #define DPERR_NOMEMORY E_OUTOFMEMORY
109 #define DPERR_OUTOFMEMORY DPERR_NOMEMORY
110 #define DPERR_NOMESSAGES MAKE_DPHRESULT( 190 )
111 #define DPERR_NONAMESERVERFOUND MAKE_DPHRESULT( 200 )
112 #define DPERR_NOPLAYERS MAKE_DPHRESULT( 210 )
113 #define DPERR_NOSESSIONS MAKE_DPHRESULT( 220 )
114 #define DPERR_PENDING E_PENDING
115 #define DPERR_SENDTOOBIG MAKE_DPHRESULT( 230 )
116 #define DPERR_TIMEOUT MAKE_DPHRESULT( 240 )
117 #define DPERR_UNAVAILABLE MAKE_DPHRESULT( 250 )
118 #define DPERR_UNSUPPORTED E_NOTIMPL
119 #define DPERR_BUSY MAKE_DPHRESULT( 270 )
120 #define DPERR_USERCANCEL MAKE_DPHRESULT( 280 )
121 #define DPERR_NOINTERFACE E_NOINTERFACE
122 #define DPERR_CANNOTCREATESERVER MAKE_DPHRESULT( 290 )
123 #define DPERR_PLAYERLOST MAKE_DPHRESULT( 300 )
124 #define DPERR_SESSIONLOST MAKE_DPHRESULT( 310 )
125 #define DPERR_UNINITIALIZED MAKE_DPHRESULT( 320 )
126 #define DPERR_NONEWPLAYERS MAKE_DPHRESULT( 330 )
127 #define DPERR_INVALIDPASSWORD MAKE_DPHRESULT( 340 )
128 #define DPERR_CONNECTING MAKE_DPHRESULT( 350 )
129 #define DPERR_CONNECTIONLOST MAKE_DPHRESULT( 360 )
130 #define DPERR_UNKNOWNMESSAGE MAKE_DPHRESULT( 370 )
131 #define DPERR_CANCELFAILED MAKE_DPHRESULT( 380 )
132 #define DPERR_INVALIDPRIORITY MAKE_DPHRESULT( 390 )
133 #define DPERR_NOTHANDLED MAKE_DPHRESULT( 400 )
134 #define DPERR_CANCELLED MAKE_DPHRESULT( 410 )
135 #define DPERR_ABORTED MAKE_DPHRESULT( 420 )
136 #define DPERR_BUFFERTOOLARGE MAKE_DPHRESULT( 1000 )
137 #define DPERR_CANTCREATEPROCESS MAKE_DPHRESULT( 1010 )
138 #define DPERR_APPNOTSTARTED MAKE_DPHRESULT( 1020 )
139 #define DPERR_INVALIDINTERFACE MAKE_DPHRESULT( 1030 )
140 #define DPERR_NOSERVICEPROVIDER MAKE_DPHRESULT( 1040 )
141 #define DPERR_UNKNOWNAPPLICATION MAKE_DPHRESULT( 1050 )
142 #define DPERR_NOTLOBBIED MAKE_DPHRESULT( 1070 )
143 #define DPERR_SERVICEPROVIDERLOADED MAKE_DPHRESULT( 1080 )
144 #define DPERR_ALREADYREGISTERED MAKE_DPHRESULT( 1090 )
145 #define DPERR_NOTREGISTERED MAKE_DPHRESULT( 1100 )
146 #define DPERR_AUTHENTICATIONFAILED MAKE_DPHRESULT( 2000 )
147 #define DPERR_CANTLOADSSPI MAKE_DPHRESULT( 2010 )
148 #define DPERR_ENCRYPTIONFAILED MAKE_DPHRESULT( 2020 )
149 #define DPERR_SIGNFAILED MAKE_DPHRESULT( 2030 )
150 #define DPERR_CANTLOADSECURITYPACKAGE MAKE_DPHRESULT( 2040 )
151 #define DPERR_ENCRYPTIONNOTSUPPORTED MAKE_DPHRESULT( 2050 )
152 #define DPERR_CANTLOADCAPI MAKE_DPHRESULT( 2060 )
153 #define DPERR_NOTLOGGEDIN MAKE_DPHRESULT( 2070 )
154 #define DPERR_LOGONDENIED MAKE_DPHRESULT( 2080 )
157 /* DPID - DirectPlay player and group ID */
158 typedef DWORD DPID, *LPDPID;
160 /* DPID from whence originate messages - just an ID */
161 #define DPID_SYSMSG 0 /* DPID of system */
162 #define DPID_ALLPLAYERS 0 /* DPID of all players */
163 #define DPID_SERVERPLAYER 1 /* DPID of the server player */
164 #define DPID_UNKNOWN 0xFFFFFFFF /* Player ID is unknown */
166 /* DPCAPS - Used to obtain the capabilities of a DirectPlay object */
167 typedef struct tagDPCAPS
169 DWORD dwSize; /* Size of structure in bytes */
170 DWORD dwFlags;
171 DWORD dwMaxBufferSize;
172 DWORD dwMaxQueueSize; /* Obsolete. */
173 DWORD dwMaxPlayers; /* Maximum players/groups (local + remote) */
174 DWORD dwHundredBaud; /* Bandwidth in 100 bits per second units;
175 * i.e. 24 is 2400, 96 is 9600, etc.
177 DWORD dwLatency; /* Estimated latency; 0 = unknown */
178 DWORD dwMaxLocalPlayers; /* Maximum # of locally created players */
179 DWORD dwHeaderLength; /* Maximum header length in bytes */
180 DWORD dwTimeout; /* Service provider's suggested timeout value
181 * This is how long DirectPlay will wait for
182 * responses to system messages
184 } DPCAPS, *LPDPCAPS;
186 typedef struct tagDPNAME
188 DWORD dwSize;
189 DWORD dwFlags; /* Not used must be 0 */
191 union /*playerShortName */ /* Player's Handle? */
193 LPWSTR lpszShortName;
194 LPSTR lpszShortNameA;
195 } DUMMYUNIONNAME1;
197 union /*playerLongName */ /* Player's formal/real name */
199 LPWSTR lpszLongName;
200 LPSTR lpszLongNameA;
201 } DUMMYUNIONNAME2;
203 } DPNAME, *LPDPNAME;
205 #define DPLONGNAMELEN 52
206 #define DPSHORTNAMELEN 20
207 #define DPSESSIONNAMELEN 32
208 #define DPPASSWORDLEN 16
209 #define DPUSERRESERVED 16
211 typedef struct tagDPSESSIONDESC
213 DWORD dwSize;
214 GUID guidSession;
215 DWORD dwSession;
216 DWORD dwMaxPlayers;
217 DWORD dwCurrentPlayers;
218 DWORD dwFlags;
219 char szSessionName[ DPSESSIONNAMELEN ];
220 char szUserField[ DPUSERRESERVED ];
221 DWORD dwReserved1;
222 char szPassword[ DPPASSWORDLEN ];
223 DWORD dwReserved2;
224 DWORD dwUser1;
225 DWORD dwUser2;
226 DWORD dwUser3;
227 DWORD dwUser4;
228 } DPSESSIONDESC, *LPDPSESSIONDESC;
230 typedef struct tagDPSESSIONDESC2
232 DWORD dwSize;
233 DWORD dwFlags;
234 GUID guidInstance;
235 GUID guidApplication; /* GUID of the DP application, GUID_NULL if
236 * all applications! */
238 DWORD dwMaxPlayers;
239 DWORD dwCurrentPlayers; /* (read only value) */
241 union /* Session name */
243 LPWSTR lpszSessionName;
244 LPSTR lpszSessionNameA;
245 } DUMMYUNIONNAME1;
247 union /* Optional password */
249 LPWSTR lpszPassword;
250 LPSTR lpszPasswordA;
251 } DUMMYUNIONNAME2;
253 DWORD dwReserved1;
254 DWORD dwReserved2;
256 DWORD dwUser1; /* For use by the application */
257 DWORD dwUser2;
258 DWORD dwUser3;
259 DWORD dwUser4;
260 } DPSESSIONDESC2, *LPDPSESSIONDESC2;
261 typedef const DPSESSIONDESC2* LPCDPSESSIONDESC2;
263 #define DPOPEN_JOIN 0x00000001
264 #define DPOPEN_CREATE 0x00000002
265 #define DPOPEN_RETURNSTATUS DPENUMSESSIONS_RETURNSTATUS
267 #define DPSESSION_NEWPLAYERSDISABLED 0x00000001
268 #define DPSESSION_MIGRATEHOST 0x00000004
269 #define DPSESSION_NOMESSAGEID 0x00000008
270 #define DPSESSION_JOINDISABLED 0x00000020
271 #define DPSESSION_KEEPALIVE 0x00000040
272 #define DPSESSION_NODATAMESSAGES 0x00000080
273 #define DPSESSION_SECURESERVER 0x00000100
274 #define DPSESSION_PRIVATE 0x00000200
275 #define DPSESSION_PASSWORDREQUIRED 0x00000400
276 #define DPSESSION_MULTICASTSERVER 0x00000800
277 #define DPSESSION_CLIENTSERVER 0x00001000
278 #define DPSESSION_DIRECTPLAYPROTOCOL 0x00002000
279 #define DPSESSION_NOPRESERVEORDER 0x00004000
280 #define DPSESSION_OPTIMIZELATENCY 0x00008000
282 typedef struct tagDPLCONNECTION
284 DWORD dwSize;
285 DWORD dwFlags;
286 LPDPSESSIONDESC2 lpSessionDesc; /* Ptr to session desc to use for connect */
287 LPDPNAME lpPlayerName; /* Ptr to player name structure */
288 GUID guidSP; /* GUID of Service Provider to use */
289 LPVOID lpAddress; /* Ptr to Address of Service Provider to use */
290 DWORD dwAddressSize; /* Size of address data */
291 } DPLCONNECTION, *LPDPLCONNECTION;
293 /* DPLCONNECTION flags (for dwFlags) */
294 #define DPLCONNECTION_CREATESESSION DPOPEN_CREATE
295 #define DPLCONNECTION_JOINSESSION DPOPEN_JOIN
297 typedef struct tagDPCHAT
299 DWORD dwSize;
300 DWORD dwFlags;
301 union
302 { /* Message string */
303 LPWSTR lpszMessage; /* Unicode */
304 LPSTR lpszMessageA; /* ANSI */
305 } DUMMYUNIONNAME;
306 } DPCHAT, *LPDPCHAT;
308 typedef struct
310 UINT len;
311 PUCHAR pData;
312 } SGBUFFER, *PSGBUFFER, *LPSGBUFFER;
315 typedef struct tagDPSECURITYDESC
317 DWORD dwSize; /* Size of structure */
318 DWORD dwFlags; /* Not used. Must be zero. */
319 union
320 { /* SSPI provider name */
321 LPWSTR lpszSSPIProvider; /* Unicode */
322 LPSTR lpszSSPIProviderA; /* ANSI */
323 } DUMMYUNIONNAME1;
324 union
325 { /* CAPI provider name */
326 LPWSTR lpszCAPIProvider; /* Unicode */
327 LPSTR lpszCAPIProviderA; /* ANSI */
328 } DUMMYUNIONNAME2;
329 DWORD dwCAPIProviderType; /* Crypto Service Provider type */
330 DWORD dwEncryptionAlgorithm; /* Encryption Algorithm type */
331 } DPSECURITYDESC, *LPDPSECURITYDESC;
333 typedef const DPSECURITYDESC *LPCDPSECURITYDESC;
335 typedef struct
337 DWORD dwSize;
338 DWORD dwFlags;
339 union
341 LPWSTR lpszAccountID;
342 LPSTR lpszAccountIDA;
343 } DUMMYUNIONNAME;
344 } DPACCOUNTDESC, *LPDPACCOUNTDESC;
346 typedef const DPACCOUNTDESC *LPCDPACCOUNTDESC;
348 typedef struct tagDPCREDENTIALS
350 DWORD dwSize; /* Size of structure */
351 DWORD dwFlags; /* Not used. Must be zero. */
352 union
353 { /* User name of the account */
354 LPWSTR lpszUsername; /* Unicode */
355 LPSTR lpszUsernameA; /* ANSI */
356 } DUMMYUNIONNAME1;
357 union
358 { /* Password of the account */
359 LPWSTR lpszPassword; /* Unicode */
360 LPSTR lpszPasswordA; /* ANSI */
361 } DUMMYUNIONNAME2;
362 union
363 { /* Domain name of the account */
364 LPWSTR lpszDomain; /* Unicode */
365 LPSTR lpszDomainA; /* ANSI */
366 } DUMMYUNIONNAME3;
367 } DPCREDENTIALS, *LPDPCREDENTIALS;
369 typedef const DPCREDENTIALS *LPCDPCREDENTIALS;
373 typedef BOOL (CALLBACK *LPDPENUMDPCALLBACKW)(
374 LPGUID lpguidSP,
375 LPWSTR lpSPName,
376 DWORD dwMajorVersion,
377 DWORD dwMinorVersion,
378 LPVOID lpContext);
380 typedef BOOL (CALLBACK *LPDPENUMDPCALLBACKA)(
381 LPGUID lpguidSP,
382 LPSTR lpSPName, /* ptr to str w/ driver description */
383 DWORD dwMajorVersion, /* Major # of driver spec in lpguidSP */
384 DWORD dwMinorVersion, /* Minor # of driver spec in lpguidSP */
385 LPVOID lpContext); /* User given */
387 #ifndef __LPCGUID_DEFINED__
388 #define __LPCGUID_DEFINED__
389 typedef const GUID *LPCGUID;
390 #endif
392 typedef const DPNAME *LPCDPNAME;
394 typedef BOOL (CALLBACK *LPDPENUMCONNECTIONSCALLBACK)(
395 LPCGUID lpguidSP,
396 LPVOID lpConnection,
397 DWORD dwConnectionSize,
398 LPCDPNAME lpName,
399 DWORD dwFlags,
400 LPVOID lpContext);
402 typedef BOOL (CALLBACK *LPDPENUMSESSIONSCALLBACK)(
403 LPDPSESSIONDESC lpDPSessionDesc,
404 LPVOID lpContext,
405 LPDWORD lpdwTimeOut,
406 DWORD dwFlags);
409 extern HRESULT WINAPI DirectPlayEnumerateA( LPDPENUMDPCALLBACKA, LPVOID );
410 extern HRESULT WINAPI DirectPlayEnumerateW( LPDPENUMDPCALLBACKW, LPVOID );
411 extern HRESULT WINAPI DirectPlayCreate( LPGUID lpGUID, LPDIRECTPLAY *lplpDP, IUnknown *pUnk );
413 typedef BOOL (CALLBACK *LPDPENUMPLAYERSCALLBACK)(
414 DPID dpId,
415 LPSTR lpFriendlyName,
416 LPSTR lpFormalName,
417 DWORD dwFlags,
418 LPVOID lpContext );
420 typedef BOOL (CALLBACK *LPDPENUMPLAYERSCALLBACK2)(
421 DPID dpId,
422 DWORD dwPlayerType,
423 LPCDPNAME lpName,
424 DWORD dwFlags,
425 LPVOID lpContext );
427 typedef BOOL (CALLBACK *LPDPENUMSESSIONSCALLBACK2)(
428 LPCDPSESSIONDESC2 lpThisSD,
429 LPDWORD lpdwTimeOut,
430 DWORD dwFlags,
431 LPVOID lpContext );
433 #define DPESC_TIMEDOUT 0x00000001
435 /*****************************************************************************
436 * IDirectPlay interface
438 #define INTERFACE IDirectPlay
439 DECLARE_INTERFACE_(IDirectPlay,IUnknown)
441 /*** IUnknown methods ***/
442 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
443 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
444 STDMETHOD_(ULONG,Release)(THIS) PURE;
445 /*** IDirectPlay methods ***/
446 STDMETHOD(AddPlayerToGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
447 STDMETHOD(Close)(THIS) PURE;
448 STDMETHOD(CreatePlayer)(THIS_ LPDPID lpidPlayer, LPSTR lpPlayerName, LPSTR, LPHANDLE) PURE;
449 STDMETHOD(CreateGroup)(THIS_ LPDPID lpidGroup, LPSTR lpGroupName, LPSTR) PURE;
450 STDMETHOD(DeletePlayerFromGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
451 STDMETHOD(DestroyPlayer)(THIS_ DPID idPlayer) PURE;
452 STDMETHOD(DestroyGroup)(THIS_ DPID idGroup) PURE;
453 STDMETHOD(EnableNewPlayers)(THIS_ BOOL) PURE;
454 STDMETHOD(EnumGroupPlayers)(THIS_ DPID idGroup, LPDPENUMPLAYERSCALLBACK lpEnumPlayersCallback, LPVOID lpContext, DWORD dwFlags) PURE;
455 STDMETHOD(EnumGroups)(THIS_ DWORD, LPDPENUMPLAYERSCALLBACK lpEnumPlayersCallback, LPVOID lpContext, DWORD dwFlags) PURE;
456 STDMETHOD(EnumPlayers)(THIS_ DWORD, LPDPENUMPLAYERSCALLBACK lpEnumPlayersCallback, LPVOID lpContext, DWORD dwFlags) PURE;
457 STDMETHOD(EnumSessions)(THIS_ LPDPSESSIONDESC lpsd, DWORD dwTimeout, LPDPENUMSESSIONSCALLBACK lpEnumSessionsCallback, LPVOID lpContext, DWORD dwFlags) PURE;
458 STDMETHOD(GetCaps)(THIS_ LPDPCAPS lpDPCaps) PURE;
459 STDMETHOD(GetMessageCount)(THIS_ DPID idPlayer, LPDWORD lpdwCount) PURE;
460 STDMETHOD(GetPlayerCaps)(THIS_ DPID idPlayer, LPDPCAPS lpPlayerCaps) PURE;
461 STDMETHOD(GetPlayerName)(THIS_ DPID idPlayer, LPSTR, LPDWORD, LPSTR, LPDWORD) PURE;
462 STDMETHOD(Initialize)(THIS_ LPGUID lpGUID) PURE;
463 STDMETHOD(Open)(THIS_ LPDPSESSIONDESC lpsd) PURE;
464 STDMETHOD(Receive)(THIS_ LPDPID lpidFrom, LPDPID lpidTo, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
465 STDMETHOD(SaveSession)(THIS_ LPSTR) PURE;
466 STDMETHOD(Send)(THIS_ DPID idFrom, DPID idTo, DWORD dwFlags, LPVOID lpData, DWORD dwDataSize) PURE;
467 STDMETHOD(SetPlayerName)(THIS_ DPID idPlayer, LPSTR lpPlayerName, LPSTR) PURE;
469 #undef INTERFACE
471 #if !defined(__cplusplus) || defined(CINTERFACE)
472 /*** IUnknown methods ***/
473 #define IDirectPlay_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
474 #define IDirectPlay_AddRef(p) (p)->lpVtbl->AddRef(p)
475 #define IDirectPlay_Release(p) (p)->lpVtbl->Release(p)
476 /*** IDirectPlay methods ***/
477 #define IDirectPlay_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
478 #define IDirectPlay_Close(p) (p)->lpVtbl->Close(p)
479 #define IDirectPlay_CreatePlayer(p,a,b,c,d) (p)->lpVtbl->CreatePlayer(p,a,b,c,d)
480 #define IDirectPlay_CreateGroup(p,a,b,c) (p)->lpVtbl->CreateGroup(p,a,b,c)
481 #define IDirectPlay_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
482 #define IDirectPlay_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
483 #define IDirectPlay_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
484 #define IDirectPlay_EnableNewPlayers(p,a) (p)->lpVtbl->EnableNewPlayers(p,a)
485 #define IDirectPlay_EnumGroupPlayers(p,a,b,c,d) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d)
486 #define IDirectPlay_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
487 #define IDirectPlay_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
488 #define IDirectPlay_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
489 #define IDirectPlay_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
490 #define IDirectPlay_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b)
491 #define IDirectPlay_GetPlayerCaps(p,a,b) (p)->lpVtbl->GetPlayerCaps(p,a,b)
492 #define IDirectPlay_GetPlayerName(p,a,b,c,d,e) (p)->lpVtbl->GetPlayerName(p,a,b,c,d,e)
493 #define IDirectPlay_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
494 #define IDirectPlay_Open(p,a) (p)->lpVtbl->Open(p,a)
495 #define IDirectPlay_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
496 #define IDirectPlay_SaveSession(p,a) (p)->lpVtbl->SaveSession(p,a)
497 #define IDirectPlay_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
498 #define IDirectPlay_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
499 #else
500 /*** IUnknown methods ***/
501 #define IDirectPlay_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
502 #define IDirectPlay_AddRef(p) (p)->AddRef()
503 #define IDirectPlay_Release(p) (p)->Release()
504 /*** IDirectPlay methods ***/
505 #define IDirectPlay_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b)
506 #define IDirectPlay_Close(p) (p)->Close()
507 #define IDirectPlay_CreatePlayer(p,a,b,c,d) (p)->CreatePlayer(a,b,c,d)
508 #define IDirectPlay_CreateGroup(p,a,b,c) (p)->CreateGroup(a,b,c)
509 #define IDirectPlay_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b)
510 #define IDirectPlay_DestroyPlayer(p,a) (p)->DestroyPlayer(a)
511 #define IDirectPlay_DestroyGroup(p,a) (p)->DestroyGroup(a)
512 #define IDirectPlay_EnableNewPlayers(p,a) (p)->EnableNewPlayers(a)
513 #define IDirectPlay_EnumGroupPlayers(p,a,b,c,d) (p)->EnumGroupPlayers(a,b,c,d)
514 #define IDirectPlay_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d)
515 #define IDirectPlay_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d)
516 #define IDirectPlay_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e)
517 #define IDirectPlay_GetCaps(p,a) (p)->GetCaps(a)
518 #define IDirectPlay_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b)
519 #define IDirectPlay_GetPlayerCaps(p,a,b) (p)->GetPlayerCaps(a,b)
520 #define IDirectPlay_GetPlayerName(p,a,b,c,d,e) (p)->GetPlayerName(a,b,c,d,e)
521 #define IDirectPlay_Initialize(p,a) (p)->Initialize(a)
522 #define IDirectPlay_Open(p,a) (p)->Open(a)
523 #define IDirectPlay_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e)
524 #define IDirectPlay_SaveSession(p,a) (p)->SaveSession(a)
525 #define IDirectPlay_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e)
526 #define IDirectPlay_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c)
527 #endif
530 /*****************************************************************************
531 * IDirectPlay2 and IDirectPlay2A interface
533 #define INTERFACE IDirectPlay2
534 DECLARE_INTERFACE_(IDirectPlay2,IUnknown)
536 /*** IUnknown methods ***/
537 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
538 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
539 STDMETHOD_(ULONG,Release)(THIS) PURE;
540 /*** IDirectPlay2 methods ***/
541 STDMETHOD(AddPlayerToGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
542 STDMETHOD(Close)(THIS) PURE;
543 STDMETHOD(CreateGroup)(THIS_ LPDPID lpidGroup, LPDPNAME lpGroupName, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
544 STDMETHOD(CreatePlayer)(THIS_ LPDPID lpidPlayer, LPDPNAME lpPlayerName, HANDLE hEvent, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
545 STDMETHOD(DeletePlayerFromGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
546 STDMETHOD(DestroyGroup)(THIS_ DPID idGroup) PURE;
547 STDMETHOD(DestroyPlayer)(THIS_ DPID idPlayer) PURE;
548 STDMETHOD(EnumGroupPlayers)(THIS_ DPID idGroup, LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
549 STDMETHOD(EnumGroups)(THIS_ LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
550 STDMETHOD(EnumPlayers)(THIS_ LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
551 STDMETHOD(EnumSessions)(THIS_ LPDPSESSIONDESC2 lpsd, DWORD dwTimeout, LPDPENUMSESSIONSCALLBACK2 lpEnumSessionsCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
552 STDMETHOD(GetCaps)(THIS_ LPDPCAPS lpDPCaps, DWORD dwFlags) PURE;
553 STDMETHOD(GetGroupData)(THIS_ DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags) PURE;
554 STDMETHOD(GetGroupName)(THIS_ DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
555 STDMETHOD(GetMessageCount)(THIS_ DPID idPlayer, LPDWORD lpdwCount) PURE;
556 STDMETHOD(GetPlayerAddress)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
557 STDMETHOD(GetPlayerCaps)(THIS_ DPID idPlayer, LPDPCAPS lpPlayerCaps, DWORD dwFlags) PURE;
558 STDMETHOD(GetPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags) PURE;
559 STDMETHOD(GetPlayerName)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
560 STDMETHOD(GetSessionDesc)(THIS_ LPVOID lpData, LPDWORD lpdwDataSize) PURE;
561 STDMETHOD(Initialize)(THIS_ LPGUID lpGUID) PURE;
562 STDMETHOD(Open)(THIS_ LPDPSESSIONDESC2 lpsd, DWORD dwFlags) PURE;
563 STDMETHOD(Receive)(THIS_ LPDPID lpidFrom, LPDPID lpidTo, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
564 STDMETHOD(Send)(THIS_ DPID idFrom, DPID idTo, DWORD dwFlags, LPVOID lpData, DWORD dwDataSize) PURE;
565 STDMETHOD(SetGroupData)(THIS_ DPID idGroup, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
566 STDMETHOD(SetGroupName)(THIS_ DPID idGroup, LPDPNAME lpGroupName, DWORD dwFlags) PURE;
567 STDMETHOD(SetPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
568 STDMETHOD(SetPlayerName)(THIS_ DPID idPlayer, LPDPNAME lpPlayerName, DWORD dwFlags) PURE;
569 STDMETHOD(SetSessionDesc)(THIS_ LPDPSESSIONDESC2 lpSessDesc, DWORD dwFlags) PURE;
571 #undef INTERFACE
573 #if !defined(__cplusplus) || defined(CINTERFACE)
574 /*** IUnknown methods ***/
575 #define IDirectPlay2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
576 #define IDirectPlay2_AddRef(p) (p)->lpVtbl->AddRef(p)
577 #define IDirectPlay2_Release(p) (p)->lpVtbl->Release(p)
578 /*** IDirectPlay2 methods ***/
579 #define IDirectPlay2_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
580 #define IDirectPlay2_Close(p) (p)->lpVtbl->Close(p)
581 #define IDirectPlay2_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e)
582 #define IDirectPlay2_CreatePlayer(p,a,b,c,d,e,f) (p)->lpVtbl->CreatePlayer(p,a,b,c,d,e,f)
583 #define IDirectPlay2_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
584 #define IDirectPlay2_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
585 #define IDirectPlay2_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
586 #define IDirectPlay2_EnumGroupPlayers(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d,e)
587 #define IDirectPlay2_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
588 #define IDirectPlay2_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
589 #define IDirectPlay2_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
590 #define IDirectPlay2_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
591 #define IDirectPlay2_GetGroupData(p,a,b,c,d) (p)->lpVtbl->GetGroupData(p,a,b,c,d)
592 #define IDirectPlay2_GetGroupName(p,a,b,c) (p)->lpVtbl->GetGroupName(p,a,b,c)
593 #define IDirectPlay2_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b)
594 #define IDirectPlay2_GetPlayerAddress(p,a,b,c) (p)->lpVtbl->GetPlayerAddress(p,a,b,c)
595 #define IDirectPlay2_GetPlayerCaps(p,a,b,c) (p)->lpVtbl->GetPlayerCaps(p,a,b,c)
596 #define IDirectPlay2_GetPlayerData(p,a,b,c,d) (p)->lpVtbl->GetPlayerData(p,a,b,c,d)
597 #define IDirectPlay2_GetPlayerName(p,a,b,c) (p)->lpVtbl->GetPlayerName(p,a,b,c)
598 #define IDirectPlay2_GetSessionDesc(p,a,b) (p)->lpVtbl->GetSessionDesc(p,a,b)
599 #define IDirectPlay2_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
600 #define IDirectPlay2_Open(p,a,b) (p)->lpVtbl->Open(p,a,b)
601 #define IDirectPlay2_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
602 #define IDirectPlay2_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
603 #define IDirectPlay2_SetGroupData(p,a,b,c,d) (p)->lpVtbl->SetGroupData(p,a,b,c,d)
604 #define IDirectPlay2_SetGroupName(p,a,b,c) (p)->lpVtbl->SetGroupName(p,a,b,c)
605 #define IDirectPlay2_SetPlayerData(p,a,b,c,d) (p)->lpVtbl->SetPlayerData(p,a,b,c,d)
606 #define IDirectPlay2_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
607 #define IDirectPlay2_SetSessionDesc(p,a,b) (p)->lpVtbl->SetSessionDesc(p,a,b)
608 #else
609 /*** IUnknown methods ***/
610 #define IDirectPlay2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
611 #define IDirectPlay2_AddRef(p) (p)->AddRef()
612 #define IDirectPlay2_Release(p) (p)->Release()
613 /*** IDirectPlay2 methods ***/
614 #define IDirectPlay2_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b)
615 #define IDirectPlay2_Close(p) (p)->Close()
616 #define IDirectPlay2_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e)
617 #define IDirectPlay2_CreatePlayer(p,a,b,c,d,e,f) (p)->CreatePlayer(a,b,c,d,e,f)
618 #define IDirectPlay2_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b)
619 #define IDirectPlay2_DestroyGroup(p,a) (p)->DestroyGroup(a)
620 #define IDirectPlay2_DestroyPlayer(p,a) (p)->DestroyPlayer(a)
621 #define IDirectPlay2_EnumGroupPlayers(p,a,b,c,d,e) (p)->EnumGroupPlayers(a,b,c,d,e)
622 #define IDirectPlay2_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d)
623 #define IDirectPlay2_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d)
624 #define IDirectPlay2_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e)
625 #define IDirectPlay2_GetCaps(p,a,b) (p)->GetCaps(a,b)
626 #define IDirectPlay2_GetGroupData(p,a,b,c,d) (p)->GetGroupData(a,b,c,d)
627 #define IDirectPlay2_GetGroupName(p,a,b,c) (p)->GetGroupName(a,b,c)
628 #define IDirectPlay2_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b)
629 #define IDirectPlay2_GetPlayerAddress(p,a,b,c) (p)->GetPlayerAddress(a,b,c)
630 #define IDirectPlay2_GetPlayerCaps(p,a,b,c) (p)->GetPlayerCaps(a,b,c)
631 #define IDirectPlay2_GetPlayerData(p,a,b,c,d) (p)->GetPlayerData(a,b,c,d)
632 #define IDirectPlay2_GetPlayerName(p,a,b,c) (p)->GetPlayerName(a,b,c)
633 #define IDirectPlay2_GetSessionDesc(p,a,b) (p)->GetSessionDesc(a,b)
634 #define IDirectPlay2_Initialize(p,a) (p)->Initialize(a)
635 #define IDirectPlay2_Open(p,a,b) (p)->Open(a,b)
636 #define IDirectPlay2_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e)
637 #define IDirectPlay2_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e)
638 #define IDirectPlay2_SetGroupData(p,a,b,c,d) (p)->SetGroupData(a,b,c,d)
639 #define IDirectPlay2_SetGroupName(p,a,b,c) (p)->SetGroupName(a,b,c)
640 #define IDirectPlay2_SetPlayerData(p,a,b,c,d) (p)->SetPlayerData(a,b,c,d)
641 #define IDirectPlay2_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c)
642 #define IDirectPlay2_SetSessionDesc(p,a,b) (p)->SetSessionDesc(a,b)
643 #endif
646 /*****************************************************************************
647 * IDirectPlay3 and IDirectPlay3A interface
649 #define INTERFACE IDirectPlay3
650 DECLARE_INTERFACE_(IDirectPlay3,IDirectPlay2)
652 /*** IUnknown methods ***/
653 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
654 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
655 STDMETHOD_(ULONG,Release)(THIS) PURE;
656 /*** IDirectPlay2 methods ***/
657 STDMETHOD(AddPlayerToGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
658 STDMETHOD(Close)(THIS) PURE;
659 STDMETHOD(CreateGroup)(THIS_ LPDPID lpidGroup, LPDPNAME lpGroupName, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
660 STDMETHOD(CreatePlayer)(THIS_ LPDPID lpidPlayer, LPDPNAME lpPlayerName, HANDLE hEvent, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
661 STDMETHOD(DeletePlayerFromGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
662 STDMETHOD(DestroyGroup)(THIS_ DPID idGroup) PURE;
663 STDMETHOD(DestroyPlayer)(THIS_ DPID idPlayer) PURE;
664 STDMETHOD(EnumGroupPlayers)(THIS_ DPID idGroup, LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
665 STDMETHOD(EnumGroups)(THIS_ LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
666 STDMETHOD(EnumPlayers)(THIS_ LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
667 STDMETHOD(EnumSessions)(THIS_ LPDPSESSIONDESC2 lpsd, DWORD dwTimeout, LPDPENUMSESSIONSCALLBACK2 lpEnumSessionsCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
668 STDMETHOD(GetCaps)(THIS_ LPDPCAPS lpDPCaps, DWORD dwFlags) PURE;
669 STDMETHOD(GetGroupData)(THIS_ DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags) PURE;
670 STDMETHOD(GetGroupName)(THIS_ DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
671 STDMETHOD(GetMessageCount)(THIS_ DPID idPlayer, LPDWORD lpdwCount) PURE;
672 STDMETHOD(GetPlayerAddress)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
673 STDMETHOD(GetPlayerCaps)(THIS_ DPID idPlayer, LPDPCAPS lpPlayerCaps, DWORD dwFlags) PURE;
674 STDMETHOD(GetPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags) PURE;
675 STDMETHOD(GetPlayerName)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
676 STDMETHOD(GetSessionDesc)(THIS_ LPVOID lpData, LPDWORD lpdwDataSize) PURE;
677 STDMETHOD(Initialize)(THIS_ LPGUID lpGUID) PURE;
678 STDMETHOD(Open)(THIS_ LPDPSESSIONDESC2 lpsd, DWORD dwFlags) PURE;
679 STDMETHOD(Receive)(THIS_ LPDPID lpidFrom, LPDPID lpidTo, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
680 STDMETHOD(Send)(THIS_ DPID idFrom, DPID idTo, DWORD dwFlags, LPVOID lpData, DWORD dwDataSize) PURE;
681 STDMETHOD(SetGroupData)(THIS_ DPID idGroup, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
682 STDMETHOD(SetGroupName)(THIS_ DPID idGroup, LPDPNAME lpGroupName, DWORD dwFlags) PURE;
683 STDMETHOD(SetPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
684 STDMETHOD(SetPlayerName)(THIS_ DPID idPlayer, LPDPNAME lpPlayerName, DWORD dwFlags) PURE;
685 STDMETHOD(SetSessionDesc)(THIS_ LPDPSESSIONDESC2 lpSessDesc, DWORD dwFlags) PURE;
686 /*** IDirectPlay3 methods ***/
687 STDMETHOD(AddGroupToGroup)(THIS_ DPID idParentGroup, DPID idGroup) PURE;
688 STDMETHOD(CreateGroupInGroup)(THIS_ DPID idParentGroup, LPDPID lpidGroup, LPDPNAME lpGroupName, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
689 STDMETHOD(DeleteGroupFromGroup)(THIS_ DPID idParentGroup, DPID idGroup) PURE;
690 STDMETHOD(EnumConnections)(THIS_ LPCGUID lpguidApplication, LPDPENUMCONNECTIONSCALLBACK lpEnumCallback, LPVOID lpContext, DWORD dwFlags) PURE;
691 STDMETHOD(EnumGroupsInGroup)(THIS_ DPID idGroup, LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumCallback, LPVOID lpContext, DWORD dwFlags) PURE;
692 STDMETHOD(GetGroupConnectionSettings)(THIS_ DWORD dwFlags, DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
693 STDMETHOD(InitializeConnection)(THIS_ LPVOID lpConnection, DWORD dwFlags) PURE;
694 STDMETHOD(SecureOpen)(THIS_ LPCDPSESSIONDESC2 lpsd, DWORD dwFlags, LPCDPSECURITYDESC lpSecurity, LPCDPCREDENTIALS lpCredentials) PURE;
695 STDMETHOD(SendChatMessage)(THIS_ DPID idFrom, DPID idTo, DWORD dwFlags, LPDPCHAT lpChatMessage) PURE;
696 STDMETHOD(SetGroupConnectionSettings)(THIS_ DWORD dwFlags, DPID idGroup, LPDPLCONNECTION lpConnection) PURE;
697 STDMETHOD(StartSession)(THIS_ DWORD dwFlags, DPID idGroup) PURE;
698 STDMETHOD(GetGroupFlags)(THIS_ DPID idGroup, LPDWORD lpdwFlags) PURE;
699 STDMETHOD(GetGroupParent)(THIS_ DPID idGroup, LPDPID lpidParent) PURE;
700 STDMETHOD(GetPlayerAccount)(THIS_ DPID idPlayer, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
701 STDMETHOD(GetPlayerFlags)(THIS_ DPID idPlayer, LPDWORD lpdwFlags) PURE;
703 #undef INTERFACE
705 #if !defined(__cplusplus) || defined(CINTERFACE)
706 /*** IUnknown methods ***/
707 #define IDirectPlay3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
708 #define IDirectPlay3_AddRef(p) (p)->lpVtbl->AddRef(p)
709 #define IDirectPlay3_Release(p) (p)->lpVtbl->Release(p)
710 /*** IDirectPlay2 methods ***/
711 #define IDirectPlay3_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
712 #define IDirectPlay3_Close(p) (p)->lpVtbl->Close(p)
713 #define IDirectPlay3_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e)
714 #define IDirectPlay3_CreatePlayer(p,a,b,c,d,e,f) (p)->lpVtbl->CreatePlayer(p,a,b,c,d,e,f)
715 #define IDirectPlay3_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
716 #define IDirectPlay3_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
717 #define IDirectPlay3_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
718 #define IDirectPlay3_EnumGroupPlayers(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d,e)
719 #define IDirectPlay3_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
720 #define IDirectPlay3_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
721 #define IDirectPlay3_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
722 #define IDirectPlay3_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
723 #define IDirectPlay3_GetGroupData(p,a,b,c,d) (p)->lpVtbl->GetGroupData(p,a,b,c,d)
724 #define IDirectPlay3_GetGroupName(p,a,b,c) (p)->lpVtbl->GetGroupName(p,a,b,c)
725 #define IDirectPlay3_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b)
726 #define IDirectPlay3_GetPlayerAddress(p,a,b,c) (p)->lpVtbl->GetPlayerAddress(p,a,b,c)
727 #define IDirectPlay3_GetPlayerCaps(p,a,b,c) (p)->lpVtbl->GetPlayerCaps(p,a,b,c)
728 #define IDirectPlay3_GetPlayerData(p,a,b,c,d) (p)->lpVtbl->GetPlayerData(p,a,b,c,d)
729 #define IDirectPlay3_GetPlayerName(p,a,b,c) (p)->lpVtbl->GetPlayerName(p,a,b,c)
730 #define IDirectPlay3_GetSessionDesc(p,a,b) (p)->lpVtbl->GetSessionDesc(p,a,b)
731 #define IDirectPlay3_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
732 #define IDirectPlay3_Open(p,a,b) (p)->lpVtbl->Open(p,a,b)
733 #define IDirectPlay3_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
734 #define IDirectPlay3_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
735 #define IDirectPlay3_SetGroupData(p,a,b,c,d) (p)->lpVtbl->SetGroupData(p,a,b,c,d)
736 #define IDirectPlay3_SetGroupName(p,a,b,c) (p)->lpVtbl->SetGroupName(p,a,b,c)
737 #define IDirectPlay3_SetPlayerData(p,a,b,c,d) (p)->lpVtbl->SetPlayerData(p,a,b,c,d)
738 #define IDirectPlay3_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
739 #define IDirectPlay3_SetSessionDesc(p,a,b) (p)->lpVtbl->SetSessionDesc(p,a,b)
740 /*** IDirectPlay3 methods ***/
741 #define IDirectPlay3_AddGroupToGroup(p,a,b) (p)->lpVtbl->AddGroupToGroup(p,a,b)
742 #define IDirectPlay3_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->lpVtbl->CreateGroupInGroup(p,a,b,c,d,e,f)
743 #define IDirectPlay3_DeleteGroupFromGroup(p,a,b) (p)->lpVtbl->DeleteGroupFromGroup(p,a,b)
744 #define IDirectPlay3_EnumConnections(p,a,b,c,d) (p)->lpVtbl->EnumConnections(p,a,b,c,d)
745 #define IDirectPlay3_EnumGroupsInGroup(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupsInGroup(p,a,b,c,d,e)
746 #define IDirectPlay3_GetGroupConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetGroupConnectionSettings(p,a,b,c,d)
747 #define IDirectPlay3_InitializeConnection(p,a,b) (p)->lpVtbl->InitializeConnection(p,a,b)
748 #define IDirectPlay3_SecureOpen(p,a,b,c,d) (p)->lpVtbl->SecureOpen(p,a,b,c,d)
749 #define IDirectPlay3_SendChatMessage(p,a,b,c,d) (p)->lpVtbl->SendChatMessage(p,a,b,c,d)
750 #define IDirectPlay3_SetGroupConnectionSettings(p,a,b,c) (p)->lpVtbl->SetGroupConnectionSettings(p,a,b,c)
751 #define IDirectPlay3_StartSession(p,a,b) (p)->lpVtbl->StartSession(p,a,b)
752 #define IDirectPlay3_GetGroupFlags(p,a,b) (p)->lpVtbl->GetGroupFlags(p,a,b)
753 #define IDirectPlay3_GetGroupParent(p,a,b) (p)->lpVtbl->GetGroupParent(p,a,b)
754 #define IDirectPlay3_GetPlayerAccount(p,a,b,c,d) (p)->lpVtbl->GetPlayerAccount(p,a,b,c,d)
755 #define IDirectPlay3_GetPlayerFlags(p,a,b) (p)->lpVtbl->GetPlayerFlags(p,a,b)
756 #else
757 /*** IUnknown methods ***/
758 #define IDirectPlay3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
759 #define IDirectPlay3_AddRef(p) (p)->AddRef()
760 #define IDirectPlay3_Release(p) (p)->Release()
761 /*** IDirectPlay2 methods ***/
762 #define IDirectPlay3_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b)
763 #define IDirectPlay3_Close(p) (p)->Close()
764 #define IDirectPlay3_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e)
765 #define IDirectPlay3_CreatePlayer(p,a,b,c,d,e,f) (p)->CreatePlayer(a,b,c,d,e,f)
766 #define IDirectPlay3_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b)
767 #define IDirectPlay3_DestroyGroup(p,a) (p)->DestroyGroup(a)
768 #define IDirectPlay3_DestroyPlayer(p,a) (p)->DestroyPlayer(a)
769 #define IDirectPlay3_EnumGroupPlayers(p,a,b,c,d,e) (p)->EnumGroupPlayers(a,b,c,d,e)
770 #define IDirectPlay3_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d)
771 #define IDirectPlay3_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d)
772 #define IDirectPlay3_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e)
773 #define IDirectPlay3_GetCaps(p,a,b) (p)->GetCaps(a,b)
774 #define IDirectPlay3_GetGroupData(p,a,b,c,d) (p)->GetGroupData(a,b,c,d)
775 #define IDirectPlay3_GetGroupName(p,a,b,c) (p)->GetGroupName(a,b,c)
776 #define IDirectPlay3_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b)
777 #define IDirectPlay3_GetPlayerAddress(p,a,b,c) (p)->GetPlayerAddress(a,b,c)
778 #define IDirectPlay3_GetPlayerCaps(p,a,b,c) (p)->GetPlayerCaps(a,b,c)
779 #define IDirectPlay3_GetPlayerData(p,a,b,c,d) (p)->GetPlayerData(a,b,c,d)
780 #define IDirectPlay3_GetPlayerName(p,a,b,c) (p)->GetPlayerName(a,b,c)
781 #define IDirectPlay3_GetSessionDesc(p,a,b) (p)->GetSessionDesc(a,b)
782 #define IDirectPlay3_Initialize(p,a) (p)->Initialize(a)
783 #define IDirectPlay3_Open(p,a,b) (p)->Open(a,b)
784 #define IDirectPlay3_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e)
785 #define IDirectPlay3_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e)
786 #define IDirectPlay3_SetGroupData(p,a,b,c,d) (p)->SetGroupData(a,b,c,d)
787 #define IDirectPlay3_SetGroupName(p,a,b,c) (p)->SetGroupName(a,b,c)
788 #define IDirectPlay3_SetPlayerData(p,a,b,c,d) (p)->SetPlayerData(a,b,c,d)
789 #define IDirectPlay3_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c)
790 #define IDirectPlay3_SetSessionDesc(p,a,b) (p)->SetSessionDesc(a,b)
791 /*** IDirectPlay3 methods ***/
792 #define IDirectPlay3_AddGroupToGroup(p,a,b) (p)->AddGroupToGroup(a,b)
793 #define IDirectPlay3_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->CreateGroupInGroup(a,b,c,d,e,f)
794 #define IDirectPlay3_DeleteGroupFromGroup(p,a,b) (p)->DeleteGroupFromGroup(a,b)
795 #define IDirectPlay3_EnumConnections(p,a,b,c,d) (p)->EnumConnections(a,b,c,d)
796 #define IDirectPlay3_EnumGroupsInGroup(p,a,b,c,d,e) (p)->EnumGroupsInGroup(a,b,c,d,e)
797 #define IDirectPlay3_GetGroupConnectionSettings(p,a,b,c,d) (p)->GetGroupConnectionSettings(a,b,c,d)
798 #define IDirectPlay3_InitializeConnection(p,a,b) (p)->InitializeConnection(a,b)
799 #define IDirectPlay3_SecureOpen(p,a,b,c,d) (p)->SecureOpen(a,b,c,d)
800 #define IDirectPlay3_SendChatMessage(p,a,b,c,d) (p)->SendChatMessage(a,b,c,d)
801 #define IDirectPlay3_SetGroupConnectionSettings(p,a,b,c) (p)->SetGroupConnectionSettings(a,b,c)
802 #define IDirectPlay3_StartSession(p,a,b) (p)->StartSession(a,b)
803 #define IDirectPlay3_GetGroupFlags(p,a,b) (p)->GetGroupFlags(a,b)
804 #define IDirectPlay3_GetGroupParent(p,a,b) (p)->GetGroupParent(a,b)
805 #define IDirectPlay3_GetPlayerAccount(p,a,b,c,d) (p)->GetPlayerAccount(a,b,c,d)
806 #define IDirectPlay3_GetPlayerFlags(p,a,b) (p)->GetPlayerFlags(a,b)
807 #endif
809 /*****************************************************************************
810 * IDirectPlay4 and IDirectPlay4A interface
812 #define INTERFACE IDirectPlay4
813 DECLARE_INTERFACE_(IDirectPlay4,IDirectPlay3)
815 /*** IUnknown methods ***/
816 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
817 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
818 STDMETHOD_(ULONG,Release)(THIS) PURE;
819 /*** IDirectPlay2 methods ***/
820 STDMETHOD(AddPlayerToGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
821 STDMETHOD(Close)(THIS) PURE;
822 STDMETHOD(CreateGroup)(THIS_ LPDPID lpidGroup, LPDPNAME lpGroupName, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
823 STDMETHOD(CreatePlayer)(THIS_ LPDPID lpidPlayer, LPDPNAME lpPlayerName, HANDLE hEvent, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
824 STDMETHOD(DeletePlayerFromGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
825 STDMETHOD(DestroyGroup)(THIS_ DPID idGroup) PURE;
826 STDMETHOD(DestroyPlayer)(THIS_ DPID idPlayer) PURE;
827 STDMETHOD(EnumGroupPlayers)(THIS_ DPID idGroup, LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
828 STDMETHOD(EnumGroups)(THIS_ LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
829 STDMETHOD(EnumPlayers)(THIS_ LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
830 STDMETHOD(EnumSessions)(THIS_ LPDPSESSIONDESC2 lpsd, DWORD dwTimeout, LPDPENUMSESSIONSCALLBACK2 lpEnumSessionsCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
831 STDMETHOD(GetCaps)(THIS_ LPDPCAPS lpDPCaps, DWORD dwFlags) PURE;
832 STDMETHOD(GetGroupData)(THIS_ DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags) PURE;
833 STDMETHOD(GetGroupName)(THIS_ DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
834 STDMETHOD(GetMessageCount)(THIS_ DPID idPlayer, LPDWORD lpdwCount) PURE;
835 STDMETHOD(GetPlayerAddress)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
836 STDMETHOD(GetPlayerCaps)(THIS_ DPID idPlayer, LPDPCAPS lpPlayerCaps, DWORD dwFlags) PURE;
837 STDMETHOD(GetPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags) PURE;
838 STDMETHOD(GetPlayerName)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
839 STDMETHOD(GetSessionDesc)(THIS_ LPVOID lpData, LPDWORD lpdwDataSize) PURE;
840 STDMETHOD(Initialize)(THIS_ LPGUID lpGUID) PURE;
841 STDMETHOD(Open)(THIS_ LPDPSESSIONDESC2 lpsd, DWORD dwFlags) PURE;
842 STDMETHOD(Receive)(THIS_ LPDPID lpidFrom, LPDPID lpidTo, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
843 STDMETHOD(Send)(THIS_ DPID idFrom, DPID idTo, DWORD dwFlags, LPVOID lpData, DWORD dwDataSize) PURE;
844 STDMETHOD(SetGroupData)(THIS_ DPID idGroup, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
845 STDMETHOD(SetGroupName)(THIS_ DPID idGroup, LPDPNAME lpGroupName, DWORD dwFlags) PURE;
846 STDMETHOD(SetPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
847 STDMETHOD(SetPlayerName)(THIS_ DPID idPlayer, LPDPNAME lpPlayerName, DWORD dwFlags) PURE;
848 STDMETHOD(SetSessionDesc)(THIS_ LPDPSESSIONDESC2 lpSessDesc, DWORD dwFlags) PURE;
849 /*** IDirectPlay3 methods ***/
850 STDMETHOD(AddGroupToGroup)(THIS_ DPID idParentGroup, DPID idGroup) PURE;
851 STDMETHOD(CreateGroupInGroup)(THIS_ DPID idParentGroup, LPDPID lpidGroup, LPDPNAME lpGroupName, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
852 STDMETHOD(DeleteGroupFromGroup)(THIS_ DPID idParentGroup, DPID idGroup) PURE;
853 STDMETHOD(EnumConnections)(THIS_ LPCGUID lpguidApplication, LPDPENUMCONNECTIONSCALLBACK lpEnumCallback, LPVOID lpContext, DWORD dwFlags) PURE;
854 STDMETHOD(EnumGroupsInGroup)(THIS_ DPID idGroup, LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumCallback, LPVOID lpContext, DWORD dwFlags) PURE;
855 STDMETHOD(GetGroupConnectionSettings)(THIS_ DWORD dwFlags, DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
856 STDMETHOD(InitializeConnection)(THIS_ LPVOID lpConnection, DWORD dwFlags) PURE;
857 STDMETHOD(SecureOpen)(THIS_ LPCDPSESSIONDESC2 lpsd, DWORD dwFlags, LPCDPSECURITYDESC lpSecurity, LPCDPCREDENTIALS lpCredentials) PURE;
858 STDMETHOD(SendChatMessage)(THIS_ DPID idFrom, DPID idTo, DWORD dwFlags, LPDPCHAT lpChatMessage) PURE;
859 STDMETHOD(SetGroupConnectionSettings)(THIS_ DWORD dwFlags, DPID idGroup, LPDPLCONNECTION lpConnection) PURE;
860 STDMETHOD(StartSession)(THIS_ DWORD dwFlags, DPID idGroup) PURE;
861 STDMETHOD(GetGroupFlags)(THIS_ DPID idGroup, LPDWORD lpdwFlags) PURE;
862 STDMETHOD(GetGroupParent)(THIS_ DPID idGroup, LPDPID lpidParent) PURE;
863 STDMETHOD(GetPlayerAccount)(THIS_ DPID idPlayer, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
864 STDMETHOD(GetPlayerFlags)(THIS_ DPID idPlayer, LPDWORD lpdwFlags) PURE;
865 /*** IDirectPlay4 methods ***/
866 STDMETHOD(GetGroupOwner)(THIS_ DPID , LPDPID ) PURE;
867 STDMETHOD(SetGroupOwner)(THIS_ DPID , DPID ) PURE;
868 STDMETHOD(SendEx)(THIS_ DPID , DPID , DWORD , LPVOID , DWORD , DWORD , DWORD , LPVOID , LPDWORD ) PURE;
869 STDMETHOD(GetMessageQueue)(THIS_ DPID , DPID , DWORD , LPDWORD , LPDWORD ) PURE;
870 STDMETHOD(CancelMessage)(THIS_ DWORD , DWORD ) PURE;
871 STDMETHOD(CancelPriority)(THIS_ DWORD , DWORD , DWORD ) PURE;
873 #undef INTERFACE
875 #if !defined(__cplusplus) || defined(CINTERFACE)
876 /*** IUnknown methods ***/
877 #define IDirectPlayX_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
878 #define IDirectPlayX_AddRef(p) (p)->lpVtbl->AddRef(p)
879 #define IDirectPlayX_Release(p) (p)->lpVtbl->Release(p)
880 /*** IDirectPlay2 methods ***/
881 #define IDirectPlayX_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
882 #define IDirectPlayX_Close(p) (p)->lpVtbl->Close(p)
883 #define IDirectPlayX_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e)
884 #define IDirectPlayX_CreatePlayer(p,a,b,c,d,e,f) (p)->lpVtbl->CreatePlayer(p,a,b,c,d,e,f)
885 #define IDirectPlayX_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
886 #define IDirectPlayX_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
887 #define IDirectPlayX_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
888 #define IDirectPlayX_EnumGroupPlayers(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d,e)
889 #define IDirectPlayX_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
890 #define IDirectPlayX_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
891 #define IDirectPlayX_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
892 #define IDirectPlayX_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
893 #define IDirectPlayX_GetGroupData(p,a,b,c,d) (p)->lpVtbl->GetGroupData(p,a,b,c,d)
894 #define IDirectPlayX_GetGroupName(p,a,b,c) (p)->lpVtbl->GetGroupName(p,a,b,c)
895 #define IDirectPlayX_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b)
896 #define IDirectPlayX_GetPlayerAddress(p,a,b,c) (p)->lpVtbl->GetPlayerAddress(p,a,b,c)
897 #define IDirectPlayX_GetPlayerCaps(p,a,b,c) (p)->lpVtbl->GetPlayerCaps(p,a,b,c)
898 #define IDirectPlayX_GetPlayerData(p,a,b,c,d) (p)->lpVtbl->GetPlayerData(p,a,b,c,d)
899 #define IDirectPlayX_GetPlayerName(p,a,b,c) (p)->lpVtbl->GetPlayerName(p,a,b,c)
900 #define IDirectPlayX_GetSessionDesc(p,a,b) (p)->lpVtbl->GetSessionDesc(p,a,b)
901 #define IDirectPlayX_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
902 #define IDirectPlayX_Open(p,a,b) (p)->lpVtbl->Open(p,a,b)
903 #define IDirectPlayX_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
904 #define IDirectPlayX_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
905 #define IDirectPlayX_SetGroupData(p,a,b,c,d) (p)->lpVtbl->SetGroupData(p,a,b,c,d)
906 #define IDirectPlayX_SetGroupName(p,a,b,c) (p)->lpVtbl->SetGroupName(p,a,b,c)
907 #define IDirectPlayX_SetPlayerData(p,a,b,c,d) (p)->lpVtbl->SetPlayerData(p,a,b,c,d)
908 #define IDirectPlayX_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
909 #define IDirectPlayX_SetSessionDesc(p,a,b) (p)->lpVtbl->SetSessionDesc(p,a,b)
910 /*** IDirectPlay3 methods ***/
911 #define IDirectPlayX_AddGroupToGroup(p,a,b) (p)->lpVtbl->AddGroupToGroup(p,a,b)
912 #define IDirectPlayX_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->lpVtbl->CreateGroupInGroup(p,a,b,c,d,e,f)
913 #define IDirectPlayX_DeleteGroupFromGroup(p,a,b) (p)->lpVtbl->DeleteGroupFromGroup(p,a,b)
914 #define IDirectPlayX_EnumConnections(p,a,b,c,d) (p)->lpVtbl->EnumConnections(p,a,b,c,d)
915 #define IDirectPlayX_EnumGroupsInGroup(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupsInGroup(p,a,b,c,d,e)
916 #define IDirectPlayX_GetGroupConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetGroupConnectionSettings(p,a,b,c,d)
917 #define IDirectPlayX_InitializeConnection(p,a,b) (p)->lpVtbl->InitializeConnection(p,a,b)
918 #define IDirectPlayX_SecureOpen(p,a,b,c,d) (p)->lpVtbl->SecureOpen(p,a,b,c,d)
919 #define IDirectPlayX_SendChatMessage(p,a,b,c,d) (p)->lpVtbl->SendChatMessage(p,a,b,c,d)
920 #define IDirectPlayX_SetGroupConnectionSettings(p,a,b,c) (p)->lpVtbl->SetGroupConnectionSettings(p,a,b,c)
921 #define IDirectPlayX_StartSession(p,a,b) (p)->lpVtbl->StartSession(p,a,b)
922 #define IDirectPlayX_GetGroupFlags(p,a,b) (p)->lpVtbl->GetGroupFlags(p,a,b)
923 #define IDirectPlayX_GetGroupParent(p,a,b) (p)->lpVtbl->GetGroupParent(p,a,b)
924 #define IDirectPlayX_GetPlayerAccount(p,a,b,c,d) (p)->lpVtbl->GetPlayerAccount(p,a,b,c,d)
925 #define IDirectPlayX_GetPlayerFlags(p,a,b) (p)->lpVtbl->GetPlayerFlags(p,a,b)
926 /*** IDirectPlay4 methods ***/
927 #define IDirectPlayX_GetGroupOwner(p,a,b) (p)->lpVtbl->GetGroupOwner(p,a,b)
928 #define IDirectPlayX_SetGroupOwner(p,a,b) (p)->lpVtbl->SetGroupOwner(p,a,b)
929 #define IDirectPlayX_SendEx(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->SendEx(p,a,b,c,d,e,f,g,h,i)
930 #define IDirectPlayX_GetMessageQueue(p,a,b,c,d,e) (p)->lpVtbl->GetMessageQueue(p,a,b,c,d,e)
931 #define IDirectPlayX_CancelMessage(p,a,b) (p)->lpVtbl->CancelMessage(p,a,b)
932 #define IDirectPlayX_CancelPriority(p,a,b,c) (p)->lpVtbl->CancelPriority(p,a,b,c)
933 #else
934 /*** IUnknown methods ***/
935 #define IDirectPlayX_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
936 #define IDirectPlayX_AddRef(p) (p)->AddRef()
937 #define IDirectPlayX_Release(p) (p)->Release()
938 /*** IDirectPlay2 methods ***/
939 #define IDirectPlayX_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b)
940 #define IDirectPlayX_Close(p) (p)->Close()
941 #define IDirectPlayX_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e)
942 #define IDirectPlayX_CreatePlayer(p,a,b,c,d,e,f) (p)->CreatePlayer(a,b,c,d,e,f)
943 #define IDirectPlayX_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b)
944 #define IDirectPlayX_DestroyGroup(p,a) (p)->DestroyGroup(a)
945 #define IDirectPlayX_DestroyPlayer(p,a) (p)->DestroyPlayer(a)
946 #define IDirectPlayX_EnumGroupPlayers(p,a,b,c,d,e) (p)->EnumGroupPlayers(a,b,c,d,e)
947 #define IDirectPlayX_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d)
948 #define IDirectPlayX_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d)
949 #define IDirectPlayX_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e)
950 #define IDirectPlayX_GetCaps(p,a,b) (p)->GetCaps(a,b)
951 #define IDirectPlayX_GetGroupData(p,a,b,c,d) (p)->GetGroupData(a,b,c,d)
952 #define IDirectPlayX_GetGroupName(p,a,b,c) (p)->GetGroupName(a,b,c)
953 #define IDirectPlayX_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b)
954 #define IDirectPlayX_GetPlayerAddress(p,a,b,c) (p)->GetPlayerAddress(a,b,c)
955 #define IDirectPlayX_GetPlayerCaps(p,a,b,c) (p)->GetPlayerCaps(a,b,c)
956 #define IDirectPlayX_GetPlayerData(p,a,b,c,d) (p)->GetPlayerData(a,b,c,d)
957 #define IDirectPlayX_GetPlayerName(p,a,b,c) (p)->GetPlayerName(a,b,c)
958 #define IDirectPlayX_GetSessionDesc(p,a,b) (p)->GetSessionDesc(a,b)
959 #define IDirectPlayX_Initialize(p,a) (p)->Initialize(a)
960 #define IDirectPlayX_Open(p,a,b) (p)->Open(a,b)
961 #define IDirectPlayX_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e)
962 #define IDirectPlayX_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e)
963 #define IDirectPlayX_SetGroupData(p,a,b,c,d) (p)->SetGroupData(a,b,c,d)
964 #define IDirectPlayX_SetGroupName(p,a,b,c) (p)->SetGroupName(a,b,c)
965 #define IDirectPlayX_SetPlayerData(p,a,b,c,d) (p)->SetPlayerData(a,b,c,d)
966 #define IDirectPlayX_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c)
967 #define IDirectPlayX_SetSessionDesc(p,a,b) (p)->SetSessionDesc(a,b)
968 /*** IDirectPlay3 methods ***/
969 #define IDirectPlayX_AddGroupToGroup(p,a,b) (p)->AddGroupToGroup(a,b)
970 #define IDirectPlayX_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->CreateGroupInGroup(a,b,c,d,e,f)
971 #define IDirectPlayX_DeleteGroupFromGroup(p,a,b) (p)->DeleteGroupFromGroup(a,b)
972 #define IDirectPlayX_EnumConnections(p,a,b,c,d) (p)->EnumConnections(a,b,c,d)
973 #define IDirectPlayX_EnumGroupsInGroup(p,a,b,c,d,e) (p)->EnumGroupsInGroup(a,b,c,d,e)
974 #define IDirectPlayX_GetGroupConnectionSettings(p,a,b,c,d) (p)->GetGroupConnectionSettings(a,b,c,d)
975 #define IDirectPlayX_InitializeConnection(p,a,b) (p)->InitializeConnection(a,b)
976 #define IDirectPlayX_SecureOpen(p,a,b,c,d) (p)->SecureOpen(a,b,c,d)
977 #define IDirectPlayX_SendChatMessage(p,a,b,c,d) (p)->SendChatMessage(a,b,c,d)
978 #define IDirectPlayX_SetGroupConnectionSettings(p,a,b,c) (p)->SetGroupConnectionSettings(a,b,c)
979 #define IDirectPlayX_StartSession(p,a,b) (p)->StartSession(a,b)
980 #define IDirectPlayX_GetGroupFlags(p,a,b) (p)->GetGroupFlags(a,b)
981 #define IDirectPlayX_GetGroupParent(p,a,b) (p)->GetGroupParent(a,b)
982 #define IDirectPlayX_GetPlayerAccount(p,a,b,c,d) (p)->GetPlayerAccount(a,b,c,d)
983 #define IDirectPlayX_GetPlayerFlags(p,a,b) (p)->GetPlayerFlags(a,b)
984 /*** IDirectPlay4 methods ***/
985 #define IDirectPlayX_GetGroupOwner(p,a,b) (p)->GetGroupOwner(a,b)
986 #define IDirectPlayX_SetGroupOwner(p,a,b) (p)->SetGroupOwner(a,b)
987 #define IDirectPlayX_SendEx(p,a,b,c,d,e,f,g,h,i) (p)->SendEx(a,b,c,d,e,f,g,h,i)
988 #define IDirectPlayX_GetMessageQueue(p,a,b,c,d,e) (p)->GetMessageQueue(a,b,c,d,e)
989 #define IDirectPlayX_CancelMessage(p,a,b) (p)->CancelMessage(a,b)
990 #define IDirectPlayX_CancelPriority(p,a,b,c) (p)->CancelPriority(a,b,c)
991 #endif
994 /* For DirectPlay::EnumConnections */
995 #define DPCONNECTION_DIRECTPLAY 0x00000001
996 #define DPCONNECTION_DIRECTPLAYLOBBY 0x00000002
998 /* For DirectPlay::EnumPlayers and DirectPlay::EnumGroups */
999 #define DPENUMPLAYERS_ALL 0x00000000
1000 #define DPENUMPLAYERS_LOCAL 0x00000008
1001 #define DPENUMPLAYERS_REMOTE 0x00000010
1002 #define DPENUMPLAYERS_GROUP 0x00000020
1003 #define DPENUMPLAYERS_SESSION 0x00000080
1004 #define DPENUMPLAYERS_SERVERPLAYER 0x00000100
1005 #define DPENUMPLAYERS_SPECTATOR 0x00000200
1006 #define DPENUMPLAYERS_OWNER 0x00002000
1008 #define DPENUMGROUPS_ALL DPENUMPLAYERS_ALL
1009 #define DPENUMGROUPS_LOCAL DPENUMPLAYERS_LOCAL
1010 #define DPENUMGROUPS_REMOTE DPENUMPLAYERS_REMOTE
1011 #define DPENUMGROUPS_SESSION DPENUMPLAYERS_SESSION
1012 #define DPENUMGROUPS_SHORTCUT 0x00000400
1013 #define DPENUMGROUPS_STAGINGAREA 0x00000800
1014 #define DPENUMGROUPS_HIDDEN 0x00001000
1017 /* For DirectPlay::CreatePlayer */
1018 #define DPPLAYER_SERVERPLAYER DPENUMPLAYERS_SERVERPLAYER
1019 #define DPPLAYER_SPECTATOR DPENUMPLAYERS_SPECTATOR
1020 #define DPPLAYER_LOCAL DPENUMPLAYERS_LOCAL
1021 #define DPPLAYER_OWNER DPENUMPLAYERS_OWNER
1023 /* For DirectPlay::CreateGroup */
1024 #define DPGROUP_STAGINGAREA DPENUMGROUPS_STAGINGAREA
1025 #define DPGROUP_LOCAL DPENUMGROUPS_LOCAL
1026 #define DPGROUP_HIDDEN DPENUMGROUPS_HIDDEN
1028 /* For DirectPlay::EnumSessions */
1029 #define DPENUMSESSIONS_AVAILABLE 0x00000001
1030 #define DPENUMSESSIONS_ALL 0x00000002
1031 #define DPENUMSESSIONS_ASYNC 0x00000010
1032 #define DPENUMSESSIONS_STOPASYNC 0x00000020
1033 #define DPENUMSESSIONS_PASSWORDREQUIRED 0x00000040
1034 #define DPENUMSESSIONS_RETURNSTATUS 0x00000080
1036 /* For DirectPlay::GetCaps and DirectPlay::GetPlayerCaps */
1037 #define DPGETCAPS_GUARANTEED 0x00000001
1039 /* For DirectPlay::GetGroupData and DirectPlay::GetPlayerData */
1040 #define DPGET_REMOTE 0x00000000
1041 #define DPGET_LOCAL 0x00000001
1043 /* For DirectPlay::Receive */
1044 #define DPRECEIVE_ALL 0x00000001
1045 #define DPRECEIVE_TOPLAYER 0x00000002
1046 #define DPRECEIVE_FROMPLAYER 0x00000004
1047 #define DPRECEIVE_PEEK 0x00000008
1049 /* For DirectPlay::Send */
1050 #define DPSEND_NONGUARANTEED 0x00000000
1051 #define DPSEND_GUARANTEED 0x00000001
1052 #define DPSEND_HIGHPRIORITY 0x00000002
1053 #define DPSEND_OPENSTREAM 0x00000008
1054 #define DPSEND_CLOSESTREAM 0x00000010
1055 #define DPSEND_SIGNED 0x00000020
1056 #define DPSEND_ENCRYPTED 0x00000040
1057 #define DPSEND_LOBBYSYSTEMMESSAGE 0x00000080
1058 #define DPSEND_ASYNC 0x00000200
1059 #define DPSEND_NOSENDCOMPLETEMSG 0x00000400
1061 #define DPSEND_MAX_PRI 0x0000FFFF
1062 #define DPSEND_MAX_PRIORITY DPSEND_MAX_PRI
1065 /* For DirectPlay::SetGroupData, DirectPlay::SetGroupName,
1066 * DirectPlay::SetPlayerData, DirectPlay::SetPlayerName and
1067 * DirectPlay::SetSessionDesc.
1069 #define DPSET_REMOTE 0x00000000
1070 #define DPSET_LOCAL 0x00000001
1071 #define DPSET_GUARANTEED 0x00000002
1073 /* For DirectPlay::GetMessageQueue */
1074 #define DPMESSAGEQUEUE_SEND 0x00000001
1075 #define DPMESSAGEQUEUE_RECEIVE 0x00000002
1077 /* DirectPlay::Connect */
1078 #define DPCONNECT_RETURNSTATUS (DPENUMSESSIONS_RETURNSTATUS)
1080 /* DirectPlay::GetCaps and DirectPlay::GetPlayerCaps */
1081 #define DPCAPS_ISHOST 0x00000002
1082 #define DPCAPS_GROUPOPTIMIZED 0x00000008
1083 #define DPCAPS_KEEPALIVEOPTIMIZED 0x00000010
1084 #define DPCAPS_GUARANTEEDOPTIMIZED 0x00000020
1085 #define DPCAPS_GUARANTEEDSUPPORTED 0x00000040
1086 #define DPCAPS_SIGNINGSUPPORTED 0x00000080
1087 #define DPCAPS_ENCRYPTIONSUPPORTED 0x00000100
1088 #define DPPLAYERCAPS_LOCAL 0x00000800
1089 #define DPCAPS_ASYNCCANCELSUPPORTED 0x00001000
1090 #define DPCAPS_ASYNCCANCELALLSUPPORTED 0x00002000
1091 #define DPCAPS_SENDTIMEOUTSUPPORTED 0x00004000
1092 #define DPCAPS_SENDPRIORITYSUPPORTED 0x00008000
1093 #define DPCAPS_ASYNCSUPPORTED 0x00010000
1095 /** DirectPlay system messages **/
1097 /* A new player or group has been created in the session */
1098 #define DPSYS_CREATEPLAYERORGROUP 0x0003
1100 /* A player or group has been deleted from the session */
1101 #define DPSYS_DESTROYPLAYERORGROUP 0x0005
1103 /* A player has been added to a group */
1104 #define DPSYS_ADDPLAYERTOGROUP 0x0007
1106 /* A player has been deleted from a group */
1107 #define DPSYS_DELETEPLAYERFROMGROUP 0x0021
1109 /* Session lost for this object - ie lost contact with all players */
1110 #define DPSYS_SESSIONLOST 0x0031
1112 /* The current host has left the session */
1113 #define DPSYS_HOST 0x0101
1115 /* Player or group data has changed */
1116 #define DPSYS_SETPLAYERORGROUPDATA 0x0102
1118 /* The name of a player or group has changed */
1119 #define DPSYS_SETPLAYERORGROUPNAME 0x0103
1121 /* The session description has changed */
1122 #define DPSYS_SETSESSIONDESC 0x0104
1124 /* A group has been added to a group */
1125 #define DPSYS_ADDGROUPTOGROUP 0x0105
1127 /* A group has been deleted from a group */
1128 #define DPSYS_DELETEGROUPFROMGROUP 0x0106
1130 /* A secure player to player message has arrived */
1131 #define DPSYS_SECUREMESSAGE 0x0107
1133 /* Start a new session */
1134 #define DPSYS_STARTSESSION 0x0108
1136 /* A chat message has arrived */
1137 #define DPSYS_CHAT 0x0109
1139 /* The owner of a group has changed */
1140 #define DPSYS_SETGROUPOWNER 0x010A
1142 /* An async send is done (finished normally, failed or cancelled) */
1143 #define DPSYS_SENDCOMPLETE 0x010d
1145 /** DirectPlay System Messages **/
1147 #define DPPLAYERTYPE_GROUP 0x00000000
1148 #define DPPLAYERTYPE_PLAYER 0x00000001
1151 /* NOTE: DPMSG_HOST and DPMSG_GENERIC share the same format */
1152 typedef struct tagDPMSG_GENERIC
1154 DWORD dwType; /* Use message type as described above */
1155 } DPMSG_GENERIC, *LPDPMSG_GENERIC,
1156 DPMSG_HOST, *LPDPMSG_HOST,
1157 DPMSG_SESSIONLOST, *LPDPMSG_SESSIONLOST;
1159 typedef struct tagDPMSG_CREATEPLAYERORGROUP
1161 DWORD dwType; /* Use message type as described above */
1162 DWORD dwPlayerType; /* Use DPPLAYERTYPE_GROUP or DPPLAYERTYPE_PLAYER */
1163 DPID dpId; /* ID of the player/group */
1164 DWORD dwCurrentPlayers; /* Current number of players/groups in session */
1165 LPVOID lpData; /* Pointer to data */
1166 DWORD dwDataSize; /* Size of data */
1167 DPNAME dpnName; /* Name info */
1169 /* dpIdParent and dwFlags are only valid in DirectPlay3 and later. What
1170 * does that mean about the message size before? -PH */
1171 DPID dpIdParent; /* id of parent group */
1172 DWORD dwFlags; /* Flags for the player/group */
1173 } DPMSG_CREATEPLAYERORGROUP, *LPDPMSG_CREATEPLAYERORGROUP;
1175 typedef struct tagDPMSG_DESTROYPLAYERORGROUP
1177 DWORD dwType; /* Use message type as described above */
1178 DWORD dwPlayerType; /* Use DPPLAYERTYPE_GROUP or DPPLAYERTYPE_PLAYER */
1179 DPID dpId; /* ID of player/group to be deleted */
1180 LPVOID lpLocalData; /* Pointer to local data */
1181 DWORD dwLocalDataSize; /* Sizeof local data */
1182 LPVOID lpRemoteData; /* Pointer to remote data */
1183 DWORD dwRemoteDataSize; /* Sizeof remote data */
1185 /* dpnName, dpIdParent and dwFlags are only valid in DirectPlay3 and later. What
1186 * does that mean about the message size before? -PH */
1187 DPNAME dpnName; /* Name info */
1188 DPID dpIdParent; /* id of parent group */
1189 DWORD dwFlags; /* Flags for the player/group */
1190 } DPMSG_DESTROYPLAYERORGROUP, *LPDPMSG_DESTROYPLAYERORGROUP;
1192 /* NOTE: DPMSG_ADDPLAYERTOGROUP and DPMSG_DELETEPLAYERFROMGROUP are the same */
1193 typedef struct tagDPMSG_ADDPLAYERTOGROUP
1195 DWORD dwType; /* Use message type as described above */
1196 DPID dpIdGroup; /* Group ID to add player into */
1197 DPID dpIdPlayer; /* ID of player to add */
1198 } DPMSG_ADDPLAYERTOGROUP, *LPDPMSG_ADDPLAYERTOGROUP,
1199 DPMSG_DELETEPLAYERFROMGROUP, *LPDPMSG_DELETEPLAYERFROMGROUP;
1201 /* NOTE: DPMSG_ADDGROUPTOGROUP and DPMSG_DELETEGROUPFROMGROUP are the same */
1202 typedef struct tagDPMSG_ADDGROUPTOGROUP
1204 DWORD dwType; /* Use message type as described above */
1205 DPID dpIdParentGroup; /* Group ID to add group into */
1206 DPID dpIdGroup; /* ID of group to add */
1207 } DPMSG_ADDGROUPTOGROUP, *LPDPMSG_ADDGROUPTOGROUP,
1208 DPMSG_DELETEGROUPFROMGROUP, *LPDPMSG_DELETEGROUPFROMGROUP;
1210 typedef struct tagDPMSG_SETPLAYERORGROUPDATA
1212 DWORD dwType; /* Use message type as described above */
1213 DWORD dwPlayerType; /* Use DPPLAYERTYPE_GROUP or DPPLAYERTYPE_PLAYER */
1214 DPID dpId; /* ID of player/group */
1215 LPVOID lpData; /* Pointer to data */
1216 DWORD dwDataSize; /* Size of data */
1217 } DPMSG_SETPLAYERORGROUPDATA, *LPDPMSG_SETPLAYERORGROUPDATA;
1219 typedef struct tagDPMSG_SETPLAYERORGROUPNAME
1221 DWORD dwType; /* Use message type as described above */
1222 DWORD dwPlayerType; /* Use DPPLAYERTYPE_GROUP or DPPLAYERTYPE_PLAYER */
1223 DPID dpId; /* ID of player/group */
1224 DPNAME dpnName; /* New name */
1225 } DPMSG_SETPLAYERORGROUPNAME, *LPDPMSG_SETPLAYERORGROUPNAME;
1227 typedef struct tagDPMSG_SETSESSIONDESC
1229 DWORD dwType; /* Use message type as described above */
1230 DPSESSIONDESC2 dpDesc; /* New session desc */
1231 } DPMSG_SETSESSIONDESC, *LPDPMSG_SETSESSIONDESC;
1233 typedef struct tagDPMSG_SECUREMESSAGE
1235 DWORD dwType; /* Use message type as described above */
1236 DWORD dwFlags; /* Signed/Encrypted */
1237 DPID dpIdFrom; /* ID of from player */
1238 LPVOID lpData; /* Message sent */
1239 DWORD dwDataSize; /* Size of message */
1240 } DPMSG_SECUREMESSAGE, *LPDPMSG_SECUREMESSAGE;
1242 typedef struct tagDPMSG_STARTSESSION
1244 DWORD dwType; /* Use message type as described above */
1245 LPDPLCONNECTION lpConn; /* DPLCONNECTION structure */
1246 } DPMSG_STARTSESSION, *LPDPMSG_STARTSESSION;
1248 typedef struct tagDPMSG_CHAT
1250 DWORD dwType; /* Use message type as described above */
1251 DWORD dwFlags; /* Message flags */
1252 DPID idFromPlayer; /* ID of sender */
1253 DPID idToPlayer; /* ID of who msg is for */
1254 DPID idToGroup; /* ID of what group msg is for */
1255 LPDPCHAT lpChat; /* Chat message */
1256 } DPMSG_CHAT, *LPDPMSG_CHAT;
1258 typedef struct tagDPMSG_SETGROUPOWNER
1260 DWORD dwType; /* Use message type as described above */
1261 DPID idGroup; /* Group ID */
1262 DPID idNewOwner; /* ID of player who now owns group */
1263 DPID idOldOwner; /* ID of player who used to own group */
1264 } DPMSG_SETGROUPOWNER, *LPDPMSG_SETGROUPOWNER;
1266 typedef struct
1268 DWORD dwType; /* Use message type as described above */
1269 DPID idFrom; /* ID from */
1270 DPID idTo; /* ID to */
1271 DWORD dwFlags;
1272 DWORD dwPriority;
1273 DWORD dwTimeout;
1274 LPVOID lpvContext;
1275 DWORD dwMsgID;
1276 HRESULT hr;
1277 DWORD dwSendTime; /* When sent ? */
1278 } DPMSG_SENDCOMPLETE, *LPDPMSG_SENDCOMPLETE;
1282 #ifdef __cplusplus
1283 } /* extern "C" */
1284 #endif /* defined(__cplusplus) */
1286 #endif /* __WINE_DPLAY_H */