comctl32/listview: A basic test for column width default value.
[wine/multimedia.git] / include / dplay.h
blob2294ba851fac7a0d4d84cdc56cec5d7308e9677d
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 tagDPCREDENTIALS
337 DWORD dwSize; /* Size of structure */
338 DWORD dwFlags; /* Not used. Must be zero. */
339 union
340 { /* User name of the account */
341 LPWSTR lpszUsername; /* Unicode */
342 LPSTR lpszUsernameA; /* ANSI */
343 } DUMMYUNIONNAME1;
344 union
345 { /* Password of the account */
346 LPWSTR lpszPassword; /* Unicode */
347 LPSTR lpszPasswordA; /* ANSI */
348 } DUMMYUNIONNAME2;
349 union
350 { /* Domain name of the account */
351 LPWSTR lpszDomain; /* Unicode */
352 LPSTR lpszDomainA; /* ANSI */
353 } DUMMYUNIONNAME3;
354 } DPCREDENTIALS, *LPDPCREDENTIALS;
356 typedef const DPCREDENTIALS *LPCDPCREDENTIALS;
360 typedef BOOL (CALLBACK *LPDPENUMDPCALLBACKW)(
361 LPGUID lpguidSP,
362 LPWSTR lpSPName,
363 DWORD dwMajorVersion,
364 DWORD dwMinorVersion,
365 LPVOID lpContext);
367 typedef BOOL (CALLBACK *LPDPENUMDPCALLBACKA)(
368 LPGUID lpguidSP,
369 LPSTR lpSPName, /* ptr to str w/ driver description */
370 DWORD dwMajorVersion, /* Major # of driver spec in lpguidSP */
371 DWORD dwMinorVersion, /* Minor # of driver spec in lpguidSP */
372 LPVOID lpContext); /* User given */
374 #ifndef __LPCGUID_DEFINED__
375 #define __LPCGUID_DEFINED__
376 typedef const GUID *LPCGUID;
377 #endif
379 typedef const DPNAME *LPCDPNAME;
381 typedef BOOL (CALLBACK *LPDPENUMCONNECTIONSCALLBACK)(
382 LPCGUID lpguidSP,
383 LPVOID lpConnection,
384 DWORD dwConnectionSize,
385 LPCDPNAME lpName,
386 DWORD dwFlags,
387 LPVOID lpContext);
389 typedef BOOL (CALLBACK *LPDPENUMSESSIONSCALLBACK)(
390 LPDPSESSIONDESC lpDPSessionDesc,
391 LPVOID lpContext,
392 LPDWORD lpdwTimeOut,
393 DWORD dwFlags);
396 extern HRESULT WINAPI DirectPlayEnumerateA( LPDPENUMDPCALLBACKA, LPVOID );
397 extern HRESULT WINAPI DirectPlayEnumerateW( LPDPENUMDPCALLBACKW, LPVOID );
398 extern HRESULT WINAPI DirectPlayCreate( LPGUID lpGUID, LPDIRECTPLAY *lplpDP, IUnknown *pUnk );
400 typedef BOOL (CALLBACK *LPDPENUMPLAYERSCALLBACK)(
401 DPID dpId,
402 LPSTR lpFriendlyName,
403 LPSTR lpFormalName,
404 DWORD dwFlags,
405 LPVOID lpContext );
407 typedef BOOL (CALLBACK *LPDPENUMPLAYERSCALLBACK2)(
408 DPID dpId,
409 DWORD dwPlayerType,
410 LPCDPNAME lpName,
411 DWORD dwFlags,
412 LPVOID lpContext );
414 typedef BOOL (CALLBACK *LPDPENUMSESSIONSCALLBACK2)(
415 LPCDPSESSIONDESC2 lpThisSD,
416 LPDWORD lpdwTimeOut,
417 DWORD dwFlags,
418 LPVOID lpContext );
420 #define DPESC_TIMEDOUT 0x00000001
422 /*****************************************************************************
423 * IDirectPlay interface
425 #define INTERFACE IDirectPlay
426 DECLARE_INTERFACE_(IDirectPlay,IUnknown)
428 /*** IUnknown methods ***/
429 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
430 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
431 STDMETHOD_(ULONG,Release)(THIS) PURE;
432 /*** IDirectPlay methods ***/
433 STDMETHOD(AddPlayerToGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
434 STDMETHOD(Close)(THIS) PURE;
435 STDMETHOD(CreatePlayer)(THIS_ LPDPID lpidPlayer, LPSTR lpPlayerName, LPSTR, LPHANDLE) PURE;
436 STDMETHOD(CreateGroup)(THIS_ LPDPID lpidGroup, LPSTR lpGroupName, LPSTR) PURE;
437 STDMETHOD(DeletePlayerFromGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
438 STDMETHOD(DestroyPlayer)(THIS_ DPID idPlayer) PURE;
439 STDMETHOD(DestroyGroup)(THIS_ DPID idGroup) PURE;
440 STDMETHOD(EnableNewPlayers)(THIS_ BOOL) PURE;
441 STDMETHOD(EnumGroupPlayers)(THIS_ DPID idGroup, LPDPENUMPLAYERSCALLBACK lpEnumPlayersCallback, LPVOID lpContext, DWORD dwFlags) PURE;
442 STDMETHOD(EnumGroups)(THIS_ DWORD, LPDPENUMPLAYERSCALLBACK lpEnumPlayersCallback, LPVOID lpContext, DWORD dwFlags) PURE;
443 STDMETHOD(EnumPlayers)(THIS_ DWORD, LPDPENUMPLAYERSCALLBACK lpEnumPlayersCallback, LPVOID lpContext, DWORD dwFlags) PURE;
444 STDMETHOD(EnumSessions)(THIS_ LPDPSESSIONDESC lpsd, DWORD dwTimeout, LPDPENUMSESSIONSCALLBACK lpEnumSessionsCallback, LPVOID lpContext, DWORD dwFlags) PURE;
445 STDMETHOD(GetCaps)(THIS_ LPDPCAPS lpDPCaps) PURE;
446 STDMETHOD(GetMessageCount)(THIS_ DPID idPlayer, LPDWORD lpdwCount) PURE;
447 STDMETHOD(GetPlayerCaps)(THIS_ DPID idPlayer, LPDPCAPS lpPlayerCaps) PURE;
448 STDMETHOD(GetPlayerName)(THIS_ DPID idPlayer, LPSTR, LPDWORD, LPSTR, LPDWORD) PURE;
449 STDMETHOD(Initialize)(THIS_ LPGUID lpGUID) PURE;
450 STDMETHOD(Open)(THIS_ LPDPSESSIONDESC lpsd) PURE;
451 STDMETHOD(Receive)(THIS_ LPDPID lpidFrom, LPDPID lpidTo, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
452 STDMETHOD(SaveSession)(THIS_ LPSTR) PURE;
453 STDMETHOD(Send)(THIS_ DPID idFrom, DPID idTo, DWORD dwFlags, LPVOID lpData, DWORD dwDataSize) PURE;
454 STDMETHOD(SetPlayerName)(THIS_ DPID idPlayer, LPSTR lpPlayerName, LPSTR) PURE;
456 #undef INTERFACE
458 #if !defined(__cplusplus) || defined(CINTERFACE)
459 /*** IUnknown methods ***/
460 #define IDirectPlay_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
461 #define IDirectPlay_AddRef(p) (p)->lpVtbl->AddRef(p)
462 #define IDirectPlay_Release(p) (p)->lpVtbl->Release(p)
463 /*** IDirectPlay methods ***/
464 #define IDirectPlay_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
465 #define IDirectPlay_Close(p) (p)->lpVtbl->Close(p)
466 #define IDirectPlay_CreatePlayer(p,a,b,c,d) (p)->lpVtbl->CreatePlayer(p,a,b,c,d)
467 #define IDirectPlay_CreateGroup(p,a,b,c) (p)->lpVtbl->CreateGroup(p,a,b,c)
468 #define IDirectPlay_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
469 #define IDirectPlay_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
470 #define IDirectPlay_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
471 #define IDirectPlay_EnableNewPlayers(p,a) (p)->lpVtbl->EnableNewPlayers(p,a)
472 #define IDirectPlay_EnumGroupPlayers(p,a,b,c,d) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d)
473 #define IDirectPlay_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
474 #define IDirectPlay_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
475 #define IDirectPlay_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
476 #define IDirectPlay_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
477 #define IDirectPlay_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b)
478 #define IDirectPlay_GetPlayerCaps(p,a,b) (p)->lpVtbl->GetPlayerCaps(p,a,b)
479 #define IDirectPlay_GetPlayerName(p,a,b,c,d,e) (p)->lpVtbl->GetPlayerName(p,a,b,c,d,e)
480 #define IDirectPlay_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
481 #define IDirectPlay_Open(p,a) (p)->lpVtbl->Open(p,a)
482 #define IDirectPlay_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
483 #define IDirectPlay_SaveSession(p,a) (p)->lpVtbl->SaveSession(p,a)
484 #define IDirectPlay_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
485 #define IDirectPlay_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
486 #else
487 /*** IUnknown methods ***/
488 #define IDirectPlay_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
489 #define IDirectPlay_AddRef(p) (p)->AddRef()
490 #define IDirectPlay_Release(p) (p)->Release()
491 /*** IDirectPlay methods ***/
492 #define IDirectPlay_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b)
493 #define IDirectPlay_Close(p) (p)->Close()
494 #define IDirectPlay_CreatePlayer(p,a,b,c,d) (p)->CreatePlayer(a,b,c,d)
495 #define IDirectPlay_CreateGroup(p,a,b,c) (p)->CreateGroup(a,b,c)
496 #define IDirectPlay_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b)
497 #define IDirectPlay_DestroyPlayer(p,a) (p)->DestroyPlayer(a)
498 #define IDirectPlay_DestroyGroup(p,a) (p)->DestroyGroup(a)
499 #define IDirectPlay_EnableNewPlayers(p,a) (p)->EnableNewPlayers(a)
500 #define IDirectPlay_EnumGroupPlayers(p,a,b,c,d) (p)->EnumGroupPlayers(a,b,c,d)
501 #define IDirectPlay_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d)
502 #define IDirectPlay_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d)
503 #define IDirectPlay_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e)
504 #define IDirectPlay_GetCaps(p,a) (p)->GetCaps(a)
505 #define IDirectPlay_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b)
506 #define IDirectPlay_GetPlayerCaps(p,a,b) (p)->GetPlayerCaps(a,b)
507 #define IDirectPlay_GetPlayerName(p,a,b,c,d,e) (p)->GetPlayerName(a,b,c,d,e)
508 #define IDirectPlay_Initialize(p,a) (p)->Initialize(a)
509 #define IDirectPlay_Open(p,a) (p)->Open(a)
510 #define IDirectPlay_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e)
511 #define IDirectPlay_SaveSession(p,a) (p)->SaveSession(a)
512 #define IDirectPlay_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e)
513 #define IDirectPlay_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c)
514 #endif
517 /*****************************************************************************
518 * IDirectPlay2 and IDirectPlay2A interface
520 #define INTERFACE IDirectPlay2
521 DECLARE_INTERFACE_(IDirectPlay2,IUnknown)
523 /*** IUnknown methods ***/
524 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
525 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
526 STDMETHOD_(ULONG,Release)(THIS) PURE;
527 /*** IDirectPlay2 methods ***/
528 STDMETHOD(AddPlayerToGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
529 STDMETHOD(Close)(THIS) PURE;
530 STDMETHOD(CreateGroup)(THIS_ LPDPID lpidGroup, LPDPNAME lpGroupName, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
531 STDMETHOD(CreatePlayer)(THIS_ LPDPID lpidPlayer, LPDPNAME lpPlayerName, HANDLE hEvent, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
532 STDMETHOD(DeletePlayerFromGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
533 STDMETHOD(DestroyGroup)(THIS_ DPID idGroup) PURE;
534 STDMETHOD(DestroyPlayer)(THIS_ DPID idPlayer) PURE;
535 STDMETHOD(EnumGroupPlayers)(THIS_ DPID idGroup, LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
536 STDMETHOD(EnumGroups)(THIS_ LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
537 STDMETHOD(EnumPlayers)(THIS_ LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
538 STDMETHOD(EnumSessions)(THIS_ LPDPSESSIONDESC2 lpsd, DWORD dwTimeout, LPDPENUMSESSIONSCALLBACK2 lpEnumSessionsCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
539 STDMETHOD(GetCaps)(THIS_ LPDPCAPS lpDPCaps, DWORD dwFlags) PURE;
540 STDMETHOD(GetGroupData)(THIS_ DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags) PURE;
541 STDMETHOD(GetGroupName)(THIS_ DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
542 STDMETHOD(GetMessageCount)(THIS_ DPID idPlayer, LPDWORD lpdwCount) PURE;
543 STDMETHOD(GetPlayerAddress)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
544 STDMETHOD(GetPlayerCaps)(THIS_ DPID idPlayer, LPDPCAPS lpPlayerCaps, DWORD dwFlags) PURE;
545 STDMETHOD(GetPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags) PURE;
546 STDMETHOD(GetPlayerName)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
547 STDMETHOD(GetSessionDesc)(THIS_ LPVOID lpData, LPDWORD lpdwDataSize) PURE;
548 STDMETHOD(Initialize)(THIS_ LPGUID lpGUID) PURE;
549 STDMETHOD(Open)(THIS_ LPDPSESSIONDESC2 lpsd, DWORD dwFlags) PURE;
550 STDMETHOD(Receive)(THIS_ LPDPID lpidFrom, LPDPID lpidTo, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
551 STDMETHOD(Send)(THIS_ DPID idFrom, DPID idTo, DWORD dwFlags, LPVOID lpData, DWORD dwDataSize) PURE;
552 STDMETHOD(SetGroupData)(THIS_ DPID idGroup, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
553 STDMETHOD(SetGroupName)(THIS_ DPID idGroup, LPDPNAME lpGroupName, DWORD dwFlags) PURE;
554 STDMETHOD(SetPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
555 STDMETHOD(SetPlayerName)(THIS_ DPID idPlayer, LPDPNAME lpPlayerName, DWORD dwFlags) PURE;
556 STDMETHOD(SetSessionDesc)(THIS_ LPDPSESSIONDESC2 lpSessDesc, DWORD dwFlags) PURE;
558 #undef INTERFACE
560 #if !defined(__cplusplus) || defined(CINTERFACE)
561 /*** IUnknown methods ***/
562 #define IDirectPlay2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
563 #define IDirectPlay2_AddRef(p) (p)->lpVtbl->AddRef(p)
564 #define IDirectPlay2_Release(p) (p)->lpVtbl->Release(p)
565 /*** IDirectPlay2 methods ***/
566 #define IDirectPlay2_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
567 #define IDirectPlay2_Close(p) (p)->lpVtbl->Close(p)
568 #define IDirectPlay2_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e)
569 #define IDirectPlay2_CreatePlayer(p,a,b,c,d,e,f) (p)->lpVtbl->CreatePlayer(p,a,b,c,d,e,f)
570 #define IDirectPlay2_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
571 #define IDirectPlay2_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
572 #define IDirectPlay2_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
573 #define IDirectPlay2_EnumGroupPlayers(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d,e)
574 #define IDirectPlay2_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
575 #define IDirectPlay2_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
576 #define IDirectPlay2_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
577 #define IDirectPlay2_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
578 #define IDirectPlay2_GetGroupData(p,a,b,c,d) (p)->lpVtbl->GetGroupData(p,a,b,c,d)
579 #define IDirectPlay2_GetGroupName(p,a,b,c) (p)->lpVtbl->GetGroupName(p,a,b,c)
580 #define IDirectPlay2_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b)
581 #define IDirectPlay2_GetPlayerAddress(p,a,b,c) (p)->lpVtbl->GetPlayerAddress(p,a,b,c)
582 #define IDirectPlay2_GetPlayerCaps(p,a,b,c) (p)->lpVtbl->GetPlayerCaps(p,a,b,c)
583 #define IDirectPlay2_GetPlayerData(p,a,b,c,d) (p)->lpVtbl->GetPlayerData(p,a,b,c,d)
584 #define IDirectPlay2_GetPlayerName(p,a,b,c) (p)->lpVtbl->GetPlayerName(p,a,b,c)
585 #define IDirectPlay2_GetSessionDesc(p,a,b) (p)->lpVtbl->GetSessionDesc(p,a,b)
586 #define IDirectPlay2_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
587 #define IDirectPlay2_Open(p,a,b) (p)->lpVtbl->Open(p,a,b)
588 #define IDirectPlay2_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
589 #define IDirectPlay2_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
590 #define IDirectPlay2_SetGroupData(p,a,b,c,d) (p)->lpVtbl->SetGroupData(p,a,b,c,d)
591 #define IDirectPlay2_SetGroupName(p,a,b,c) (p)->lpVtbl->SetGroupName(p,a,b,c)
592 #define IDirectPlay2_SetPlayerData(p,a,b,c,d) (p)->lpVtbl->SetPlayerData(p,a,b,c,d)
593 #define IDirectPlay2_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
594 #define IDirectPlay2_SetSessionDesc(p,a,b) (p)->lpVtbl->SetSessionDesc(p,a,b)
595 #else
596 /*** IUnknown methods ***/
597 #define IDirectPlay2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
598 #define IDirectPlay2_AddRef(p) (p)->AddRef()
599 #define IDirectPlay2_Release(p) (p)->Release()
600 /*** IDirectPlay2 methods ***/
601 #define IDirectPlay2_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b)
602 #define IDirectPlay2_Close(p) (p)->Close()
603 #define IDirectPlay2_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e)
604 #define IDirectPlay2_CreatePlayer(p,a,b,c,d,e,f) (p)->CreatePlayer(a,b,c,d,e,f)
605 #define IDirectPlay2_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b)
606 #define IDirectPlay2_DestroyGroup(p,a) (p)->DestroyGroup(a)
607 #define IDirectPlay2_DestroyPlayer(p,a) (p)->DestroyPlayer(a)
608 #define IDirectPlay2_EnumGroupPlayers(p,a,b,c,d,e) (p)->EnumGroupPlayers(a,b,c,d,e)
609 #define IDirectPlay2_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d)
610 #define IDirectPlay2_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d)
611 #define IDirectPlay2_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e)
612 #define IDirectPlay2_GetCaps(p,a,b) (p)->GetCaps(a,b)
613 #define IDirectPlay2_GetGroupData(p,a,b,c,d) (p)->GetGroupData(a,b,c,d)
614 #define IDirectPlay2_GetGroupName(p,a,b,c) (p)->GetGroupName(a,b,c)
615 #define IDirectPlay2_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b)
616 #define IDirectPlay2_GetPlayerAddress(p,a,b,c) (p)->GetPlayerAddress(a,b,c)
617 #define IDirectPlay2_GetPlayerCaps(p,a,b,c) (p)->GetPlayerCaps(a,b,c)
618 #define IDirectPlay2_GetPlayerData(p,a,b,c,d) (p)->GetPlayerData(a,b,c,d)
619 #define IDirectPlay2_GetPlayerName(p,a,b,c) (p)->GetPlayerName(a,b,c)
620 #define IDirectPlay2_GetSessionDesc(p,a,b) (p)->GetSessionDesc(a,b)
621 #define IDirectPlay2_Initialize(p,a) (p)->Initialize(a)
622 #define IDirectPlay2_Open(p,a,b) (p)->Open(a,b)
623 #define IDirectPlay2_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e)
624 #define IDirectPlay2_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e)
625 #define IDirectPlay2_SetGroupData(p,a,b,c,d) (p)->SetGroupData(a,b,c,d)
626 #define IDirectPlay2_SetGroupName(p,a,b,c) (p)->SetGroupName(a,b,c)
627 #define IDirectPlay2_SetPlayerData(p,a,b,c,d) (p)->SetPlayerData(a,b,c,d)
628 #define IDirectPlay2_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c)
629 #define IDirectPlay2_SetSessionDesc(p,a,b) (p)->SetSessionDesc(a,b)
630 #endif
633 /*****************************************************************************
634 * IDirectPlay3 and IDirectPlay3A interface
636 #define INTERFACE IDirectPlay3
637 DECLARE_INTERFACE_(IDirectPlay3,IDirectPlay2)
639 /*** IUnknown methods ***/
640 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
641 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
642 STDMETHOD_(ULONG,Release)(THIS) PURE;
643 /*** IDirectPlay2 methods ***/
644 STDMETHOD(AddPlayerToGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
645 STDMETHOD(Close)(THIS) PURE;
646 STDMETHOD(CreateGroup)(THIS_ LPDPID lpidGroup, LPDPNAME lpGroupName, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
647 STDMETHOD(CreatePlayer)(THIS_ LPDPID lpidPlayer, LPDPNAME lpPlayerName, HANDLE hEvent, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
648 STDMETHOD(DeletePlayerFromGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
649 STDMETHOD(DestroyGroup)(THIS_ DPID idGroup) PURE;
650 STDMETHOD(DestroyPlayer)(THIS_ DPID idPlayer) PURE;
651 STDMETHOD(EnumGroupPlayers)(THIS_ DPID idGroup, LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
652 STDMETHOD(EnumGroups)(THIS_ LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
653 STDMETHOD(EnumPlayers)(THIS_ LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
654 STDMETHOD(EnumSessions)(THIS_ LPDPSESSIONDESC2 lpsd, DWORD dwTimeout, LPDPENUMSESSIONSCALLBACK2 lpEnumSessionsCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
655 STDMETHOD(GetCaps)(THIS_ LPDPCAPS lpDPCaps, DWORD dwFlags) PURE;
656 STDMETHOD(GetGroupData)(THIS_ DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags) PURE;
657 STDMETHOD(GetGroupName)(THIS_ DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
658 STDMETHOD(GetMessageCount)(THIS_ DPID idPlayer, LPDWORD lpdwCount) PURE;
659 STDMETHOD(GetPlayerAddress)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
660 STDMETHOD(GetPlayerCaps)(THIS_ DPID idPlayer, LPDPCAPS lpPlayerCaps, DWORD dwFlags) PURE;
661 STDMETHOD(GetPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags) PURE;
662 STDMETHOD(GetPlayerName)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
663 STDMETHOD(GetSessionDesc)(THIS_ LPVOID lpData, LPDWORD lpdwDataSize) PURE;
664 STDMETHOD(Initialize)(THIS_ LPGUID lpGUID) PURE;
665 STDMETHOD(Open)(THIS_ LPDPSESSIONDESC2 lpsd, DWORD dwFlags) PURE;
666 STDMETHOD(Receive)(THIS_ LPDPID lpidFrom, LPDPID lpidTo, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
667 STDMETHOD(Send)(THIS_ DPID idFrom, DPID idTo, DWORD dwFlags, LPVOID lpData, DWORD dwDataSize) PURE;
668 STDMETHOD(SetGroupData)(THIS_ DPID idGroup, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
669 STDMETHOD(SetGroupName)(THIS_ DPID idGroup, LPDPNAME lpGroupName, DWORD dwFlags) PURE;
670 STDMETHOD(SetPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
671 STDMETHOD(SetPlayerName)(THIS_ DPID idPlayer, LPDPNAME lpPlayerName, DWORD dwFlags) PURE;
672 STDMETHOD(SetSessionDesc)(THIS_ LPDPSESSIONDESC2 lpSessDesc, DWORD dwFlags) PURE;
673 /*** IDirectPlay3 methods ***/
674 STDMETHOD(AddGroupToGroup)(THIS_ DPID idParentGroup, DPID idGroup) PURE;
675 STDMETHOD(CreateGroupInGroup)(THIS_ DPID idParentGroup, LPDPID lpidGroup, LPDPNAME lpGroupName, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
676 STDMETHOD(DeleteGroupFromGroup)(THIS_ DPID idParentGroup, DPID idGroup) PURE;
677 STDMETHOD(EnumConnections)(THIS_ LPCGUID lpguidApplication, LPDPENUMCONNECTIONSCALLBACK lpEnumCallback, LPVOID lpContext, DWORD dwFlags) PURE;
678 STDMETHOD(EnumGroupsInGroup)(THIS_ DPID idGroup, LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumCallback, LPVOID lpContext, DWORD dwFlags) PURE;
679 STDMETHOD(GetGroupConnectionSettings)(THIS_ DWORD dwFlags, DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
680 STDMETHOD(InitializeConnection)(THIS_ LPVOID lpConnection, DWORD dwFlags) PURE;
681 STDMETHOD(SecureOpen)(THIS_ LPCDPSESSIONDESC2 lpsd, DWORD dwFlags, LPCDPSECURITYDESC lpSecurity, LPCDPCREDENTIALS lpCredentials) PURE;
682 STDMETHOD(SendChatMessage)(THIS_ DPID idFrom, DPID idTo, DWORD dwFlags, LPDPCHAT lpChatMessage) PURE;
683 STDMETHOD(SetGroupConnectionSettings)(THIS_ DWORD dwFlags, DPID idGroup, LPDPLCONNECTION lpConnection) PURE;
684 STDMETHOD(StartSession)(THIS_ DWORD dwFlags, DPID idGroup) PURE;
685 STDMETHOD(GetGroupFlags)(THIS_ DPID idGroup, LPDWORD lpdwFlags) PURE;
686 STDMETHOD(GetGroupParent)(THIS_ DPID idGroup, LPDPID lpidParent) PURE;
687 STDMETHOD(GetPlayerAccount)(THIS_ DPID idPlayer, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
688 STDMETHOD(GetPlayerFlags)(THIS_ DPID idPlayer, LPDWORD lpdwFlags) PURE;
690 #undef INTERFACE
692 #if !defined(__cplusplus) || defined(CINTERFACE)
693 /*** IUnknown methods ***/
694 #define IDirectPlay3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
695 #define IDirectPlay3_AddRef(p) (p)->lpVtbl->AddRef(p)
696 #define IDirectPlay3_Release(p) (p)->lpVtbl->Release(p)
697 /*** IDirectPlay2 methods ***/
698 #define IDirectPlay3_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
699 #define IDirectPlay3_Close(p) (p)->lpVtbl->Close(p)
700 #define IDirectPlay3_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e)
701 #define IDirectPlay3_CreatePlayer(p,a,b,c,d,e,f) (p)->lpVtbl->CreatePlayer(p,a,b,c,d,e,f)
702 #define IDirectPlay3_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
703 #define IDirectPlay3_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
704 #define IDirectPlay3_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
705 #define IDirectPlay3_EnumGroupPlayers(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d,e)
706 #define IDirectPlay3_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
707 #define IDirectPlay3_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
708 #define IDirectPlay3_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
709 #define IDirectPlay3_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
710 #define IDirectPlay3_GetGroupData(p,a,b,c,d) (p)->lpVtbl->GetGroupData(p,a,b,c,d)
711 #define IDirectPlay3_GetGroupName(p,a,b,c) (p)->lpVtbl->GetGroupName(p,a,b,c)
712 #define IDirectPlay3_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b)
713 #define IDirectPlay3_GetPlayerAddress(p,a,b,c) (p)->lpVtbl->GetPlayerAddress(p,a,b,c)
714 #define IDirectPlay3_GetPlayerCaps(p,a,b,c) (p)->lpVtbl->GetPlayerCaps(p,a,b,c)
715 #define IDirectPlay3_GetPlayerData(p,a,b,c,d) (p)->lpVtbl->GetPlayerData(p,a,b,c,d)
716 #define IDirectPlay3_GetPlayerName(p,a,b,c) (p)->lpVtbl->GetPlayerName(p,a,b,c)
717 #define IDirectPlay3_GetSessionDesc(p,a,b) (p)->lpVtbl->GetSessionDesc(p,a,b)
718 #define IDirectPlay3_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
719 #define IDirectPlay3_Open(p,a,b) (p)->lpVtbl->Open(p,a,b)
720 #define IDirectPlay3_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
721 #define IDirectPlay3_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
722 #define IDirectPlay3_SetGroupData(p,a,b,c,d) (p)->lpVtbl->SetGroupData(p,a,b,c,d)
723 #define IDirectPlay3_SetGroupName(p,a,b,c) (p)->lpVtbl->SetGroupName(p,a,b,c)
724 #define IDirectPlay3_SetPlayerData(p,a,b,c,d) (p)->lpVtbl->SetPlayerData(p,a,b,c,d)
725 #define IDirectPlay3_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
726 #define IDirectPlay3_SetSessionDesc(p,a,b) (p)->lpVtbl->SetSessionDesc(p,a,b)
727 /*** IDirectPlay3 methods ***/
728 #define IDirectPlay3_AddGroupToGroup(p,a,b) (p)->lpVtbl->AddGroupToGroup(p,a,b)
729 #define IDirectPlay3_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->lpVtbl->CreateGroupInGroup(p,a,b,c,d,e,f)
730 #define IDirectPlay3_DeleteGroupFromGroup(p,a,b) (p)->lpVtbl->DeleteGroupFromGroup(p,a,b)
731 #define IDirectPlay3_EnumConnections(p,a,b,c,d) (p)->lpVtbl->EnumConnections(p,a,b,c,d)
732 #define IDirectPlay3_EnumGroupsInGroup(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupsInGroup(p,a,b,c,d,e)
733 #define IDirectPlay3_GetGroupConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetGroupConnectionSettings(p,a,b,c,d)
734 #define IDirectPlay3_InitializeConnection(p,a,b) (p)->lpVtbl->InitializeConnection(p,a,b)
735 #define IDirectPlay3_SecureOpen(p,a,b,c,d) (p)->lpVtbl->SecureOpen(p,a,b,c,d)
736 #define IDirectPlay3_SendChatMessage(p,a,b,c,d) (p)->lpVtbl->SendChatMessage(p,a,b,c,d)
737 #define IDirectPlay3_SetGroupConnectionSettings(p,a,b,c) (p)->lpVtbl->SetGroupConnectionSettings(p,a,b,c)
738 #define IDirectPlay3_StartSession(p,a,b) (p)->lpVtbl->StartSession(p,a,b)
739 #define IDirectPlay3_GetGroupFlags(p,a,b) (p)->lpVtbl->GetGroupFlags(p,a,b)
740 #define IDirectPlay3_GetGroupParent(p,a,b) (p)->lpVtbl->GetGroupParent(p,a,b)
741 #define IDirectPlay3_GetPlayerAccount(p,a,b,c,d) (p)->lpVtbl->GetPlayerAccount(p,a,b,c,d)
742 #define IDirectPlay3_GetPlayerFlags(p,a,b) (p)->lpVtbl->GetPlayerFlags(p,a,b)
743 #else
744 /*** IUnknown methods ***/
745 #define IDirectPlay3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
746 #define IDirectPlay3_AddRef(p) (p)->AddRef()
747 #define IDirectPlay3_Release(p) (p)->Release()
748 /*** IDirectPlay2 methods ***/
749 #define IDirectPlay3_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b)
750 #define IDirectPlay3_Close(p) (p)->Close()
751 #define IDirectPlay3_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e)
752 #define IDirectPlay3_CreatePlayer(p,a,b,c,d,e,f) (p)->CreatePlayer(a,b,c,d,e,f)
753 #define IDirectPlay3_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b)
754 #define IDirectPlay3_DestroyGroup(p,a) (p)->DestroyGroup(a)
755 #define IDirectPlay3_DestroyPlayer(p,a) (p)->DestroyPlayer(a)
756 #define IDirectPlay3_EnumGroupPlayers(p,a,b,c,d,e) (p)->EnumGroupPlayers(a,b,c,d,e)
757 #define IDirectPlay3_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d)
758 #define IDirectPlay3_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d)
759 #define IDirectPlay3_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e)
760 #define IDirectPlay3_GetCaps(p,a,b) (p)->GetCaps(a,b)
761 #define IDirectPlay3_GetGroupData(p,a,b,c,d) (p)->GetGroupData(a,b,c,d)
762 #define IDirectPlay3_GetGroupName(p,a,b,c) (p)->GetGroupName(a,b,c)
763 #define IDirectPlay3_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b)
764 #define IDirectPlay3_GetPlayerAddress(p,a,b,c) (p)->GetPlayerAddress(a,b,c)
765 #define IDirectPlay3_GetPlayerCaps(p,a,b,c) (p)->GetPlayerCaps(a,b,c)
766 #define IDirectPlay3_GetPlayerData(p,a,b,c,d) (p)->GetPlayerData(a,b,c,d)
767 #define IDirectPlay3_GetPlayerName(p,a,b,c) (p)->GetPlayerName(a,b,c)
768 #define IDirectPlay3_GetSessionDesc(p,a,b) (p)->GetSessionDesc(a,b)
769 #define IDirectPlay3_Initialize(p,a) (p)->Initialize(a)
770 #define IDirectPlay3_Open(p,a,b) (p)->Open(a,b)
771 #define IDirectPlay3_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e)
772 #define IDirectPlay3_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e)
773 #define IDirectPlay3_SetGroupData(p,a,b,c,d) (p)->SetGroupData(a,b,c,d)
774 #define IDirectPlay3_SetGroupName(p,a,b,c) (p)->SetGroupName(a,b,c)
775 #define IDirectPlay3_SetPlayerData(p,a,b,c,d) (p)->SetPlayerData(a,b,c,d)
776 #define IDirectPlay3_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c)
777 #define IDirectPlay3_SetSessionDesc(p,a,b) (p)->SetSessionDesc(a,b)
778 /*** IDirectPlay3 methods ***/
779 #define IDirectPlay3_AddGroupToGroup(p,a,b) (p)->AddGroupToGroup(a,b)
780 #define IDirectPlay3_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->CreateGroupInGroup(a,b,c,d,e,f)
781 #define IDirectPlay3_DeleteGroupFromGroup(p,a,b) (p)->DeleteGroupFromGroup(a,b)
782 #define IDirectPlay3_EnumConnections(p,a,b,c,d) (p)->EnumConnections(a,b,c,d)
783 #define IDirectPlay3_EnumGroupsInGroup(p,a,b,c,d,e) (p)->EnumGroupsInGroup(a,b,c,d,e)
784 #define IDirectPlay3_GetGroupConnectionSettings(p,a,b,c,d) (p)->GetGroupConnectionSettings(a,b,c,d)
785 #define IDirectPlay3_InitializeConnection(p,a,b) (p)->InitializeConnection(a,b)
786 #define IDirectPlay3_SecureOpen(p,a,b,c,d) (p)->SecureOpen(a,b,c,d)
787 #define IDirectPlay3_SendChatMessage(p,a,b,c,d) (p)->SendChatMessage(a,b,c,d)
788 #define IDirectPlay3_SetGroupConnectionSettings(p,a,b,c) (p)->SetGroupConnectionSettings(a,b,c)
789 #define IDirectPlay3_StartSession(p,a,b) (p)->StartSession(a,b)
790 #define IDirectPlay3_GetGroupFlags(p,a,b) (p)->GetGroupFlags(a,b)
791 #define IDirectPlay3_GetGroupParent(p,a,b) (p)->GetGroupParent(a,b)
792 #define IDirectPlay3_GetPlayerAccount(p,a,b,c,d) (p)->GetPlayerAccount(a,b,c,d)
793 #define IDirectPlay3_GetPlayerFlags(p,a,b) (p)->GetPlayerFlags(a,b)
794 #endif
796 /*****************************************************************************
797 * IDirectPlay4 and IDirectPlay4A interface
799 #define INTERFACE IDirectPlay4
800 DECLARE_INTERFACE_(IDirectPlay4,IDirectPlay3)
802 /*** IUnknown methods ***/
803 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
804 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
805 STDMETHOD_(ULONG,Release)(THIS) PURE;
806 /*** IDirectPlay2 methods ***/
807 STDMETHOD(AddPlayerToGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
808 STDMETHOD(Close)(THIS) PURE;
809 STDMETHOD(CreateGroup)(THIS_ LPDPID lpidGroup, LPDPNAME lpGroupName, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
810 STDMETHOD(CreatePlayer)(THIS_ LPDPID lpidPlayer, LPDPNAME lpPlayerName, HANDLE hEvent, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
811 STDMETHOD(DeletePlayerFromGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
812 STDMETHOD(DestroyGroup)(THIS_ DPID idGroup) PURE;
813 STDMETHOD(DestroyPlayer)(THIS_ DPID idPlayer) PURE;
814 STDMETHOD(EnumGroupPlayers)(THIS_ DPID idGroup, LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
815 STDMETHOD(EnumGroups)(THIS_ LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
816 STDMETHOD(EnumPlayers)(THIS_ LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
817 STDMETHOD(EnumSessions)(THIS_ LPDPSESSIONDESC2 lpsd, DWORD dwTimeout, LPDPENUMSESSIONSCALLBACK2 lpEnumSessionsCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
818 STDMETHOD(GetCaps)(THIS_ LPDPCAPS lpDPCaps, DWORD dwFlags) PURE;
819 STDMETHOD(GetGroupData)(THIS_ DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags) PURE;
820 STDMETHOD(GetGroupName)(THIS_ DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
821 STDMETHOD(GetMessageCount)(THIS_ DPID idPlayer, LPDWORD lpdwCount) PURE;
822 STDMETHOD(GetPlayerAddress)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
823 STDMETHOD(GetPlayerCaps)(THIS_ DPID idPlayer, LPDPCAPS lpPlayerCaps, DWORD dwFlags) PURE;
824 STDMETHOD(GetPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags) PURE;
825 STDMETHOD(GetPlayerName)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
826 STDMETHOD(GetSessionDesc)(THIS_ LPVOID lpData, LPDWORD lpdwDataSize) PURE;
827 STDMETHOD(Initialize)(THIS_ LPGUID lpGUID) PURE;
828 STDMETHOD(Open)(THIS_ LPDPSESSIONDESC2 lpsd, DWORD dwFlags) PURE;
829 STDMETHOD(Receive)(THIS_ LPDPID lpidFrom, LPDPID lpidTo, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
830 STDMETHOD(Send)(THIS_ DPID idFrom, DPID idTo, DWORD dwFlags, LPVOID lpData, DWORD dwDataSize) PURE;
831 STDMETHOD(SetGroupData)(THIS_ DPID idGroup, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
832 STDMETHOD(SetGroupName)(THIS_ DPID idGroup, LPDPNAME lpGroupName, DWORD dwFlags) PURE;
833 STDMETHOD(SetPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
834 STDMETHOD(SetPlayerName)(THIS_ DPID idPlayer, LPDPNAME lpPlayerName, DWORD dwFlags) PURE;
835 STDMETHOD(SetSessionDesc)(THIS_ LPDPSESSIONDESC2 lpSessDesc, DWORD dwFlags) PURE;
836 /*** IDirectPlay3 methods ***/
837 STDMETHOD(AddGroupToGroup)(THIS_ DPID idParentGroup, DPID idGroup) PURE;
838 STDMETHOD(CreateGroupInGroup)(THIS_ DPID idParentGroup, LPDPID lpidGroup, LPDPNAME lpGroupName, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
839 STDMETHOD(DeleteGroupFromGroup)(THIS_ DPID idParentGroup, DPID idGroup) PURE;
840 STDMETHOD(EnumConnections)(THIS_ LPCGUID lpguidApplication, LPDPENUMCONNECTIONSCALLBACK lpEnumCallback, LPVOID lpContext, DWORD dwFlags) PURE;
841 STDMETHOD(EnumGroupsInGroup)(THIS_ DPID idGroup, LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumCallback, LPVOID lpContext, DWORD dwFlags) PURE;
842 STDMETHOD(GetGroupConnectionSettings)(THIS_ DWORD dwFlags, DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
843 STDMETHOD(InitializeConnection)(THIS_ LPVOID lpConnection, DWORD dwFlags) PURE;
844 STDMETHOD(SecureOpen)(THIS_ LPCDPSESSIONDESC2 lpsd, DWORD dwFlags, LPCDPSECURITYDESC lpSecurity, LPCDPCREDENTIALS lpCredentials) PURE;
845 STDMETHOD(SendChatMessage)(THIS_ DPID idFrom, DPID idTo, DWORD dwFlags, LPDPCHAT lpChatMessage) PURE;
846 STDMETHOD(SetGroupConnectionSettings)(THIS_ DWORD dwFlags, DPID idGroup, LPDPLCONNECTION lpConnection) PURE;
847 STDMETHOD(StartSession)(THIS_ DWORD dwFlags, DPID idGroup) PURE;
848 STDMETHOD(GetGroupFlags)(THIS_ DPID idGroup, LPDWORD lpdwFlags) PURE;
849 STDMETHOD(GetGroupParent)(THIS_ DPID idGroup, LPDPID lpidParent) PURE;
850 STDMETHOD(GetPlayerAccount)(THIS_ DPID idPlayer, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
851 STDMETHOD(GetPlayerFlags)(THIS_ DPID idPlayer, LPDWORD lpdwFlags) PURE;
852 /*** IDirectPlay4 methods ***/
853 STDMETHOD(GetGroupOwner)(THIS_ DPID , LPDPID ) PURE;
854 STDMETHOD(SetGroupOwner)(THIS_ DPID , DPID ) PURE;
855 STDMETHOD(SendEx)(THIS_ DPID , DPID , DWORD , LPVOID , DWORD , DWORD , DWORD , LPVOID , LPDWORD ) PURE;
856 STDMETHOD(GetMessageQueue)(THIS_ DPID , DPID , DWORD , LPDWORD , LPDWORD ) PURE;
857 STDMETHOD(CancelMessage)(THIS_ DWORD , DWORD ) PURE;
858 STDMETHOD(CancelPriority)(THIS_ DWORD , DWORD , DWORD ) PURE;
860 #undef INTERFACE
862 #if !defined(__cplusplus) || defined(CINTERFACE)
863 /*** IUnknown methods ***/
864 #define IDirectPlayX_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
865 #define IDirectPlayX_AddRef(p) (p)->lpVtbl->AddRef(p)
866 #define IDirectPlayX_Release(p) (p)->lpVtbl->Release(p)
867 /*** IDirectPlay2 methods ***/
868 #define IDirectPlayX_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
869 #define IDirectPlayX_Close(p) (p)->lpVtbl->Close(p)
870 #define IDirectPlayX_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e)
871 #define IDirectPlayX_CreatePlayer(p,a,b,c,d,e,f) (p)->lpVtbl->CreatePlayer(p,a,b,c,d,e,f)
872 #define IDirectPlayX_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
873 #define IDirectPlayX_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
874 #define IDirectPlayX_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
875 #define IDirectPlayX_EnumGroupPlayers(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d,e)
876 #define IDirectPlayX_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
877 #define IDirectPlayX_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
878 #define IDirectPlayX_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
879 #define IDirectPlayX_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
880 #define IDirectPlayX_GetGroupData(p,a,b,c,d) (p)->lpVtbl->GetGroupData(p,a,b,c,d)
881 #define IDirectPlayX_GetGroupName(p,a,b,c) (p)->lpVtbl->GetGroupName(p,a,b,c)
882 #define IDirectPlayX_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b)
883 #define IDirectPlayX_GetPlayerAddress(p,a,b,c) (p)->lpVtbl->GetPlayerAddress(p,a,b,c)
884 #define IDirectPlayX_GetPlayerCaps(p,a,b,c) (p)->lpVtbl->GetPlayerCaps(p,a,b,c)
885 #define IDirectPlayX_GetPlayerData(p,a,b,c,d) (p)->lpVtbl->GetPlayerData(p,a,b,c,d)
886 #define IDirectPlayX_GetPlayerName(p,a,b,c) (p)->lpVtbl->GetPlayerName(p,a,b,c)
887 #define IDirectPlayX_GetSessionDesc(p,a,b) (p)->lpVtbl->GetSessionDesc(p,a,b)
888 #define IDirectPlayX_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
889 #define IDirectPlayX_Open(p,a,b) (p)->lpVtbl->Open(p,a,b)
890 #define IDirectPlayX_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
891 #define IDirectPlayX_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
892 #define IDirectPlayX_SetGroupData(p,a,b,c,d) (p)->lpVtbl->SetGroupData(p,a,b,c,d)
893 #define IDirectPlayX_SetGroupName(p,a,b,c) (p)->lpVtbl->SetGroupName(p,a,b,c)
894 #define IDirectPlayX_SetPlayerData(p,a,b,c,d) (p)->lpVtbl->SetPlayerData(p,a,b,c,d)
895 #define IDirectPlayX_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
896 #define IDirectPlayX_SetSessionDesc(p,a,b) (p)->lpVtbl->SetSessionDesc(p,a,b)
897 /*** IDirectPlay3 methods ***/
898 #define IDirectPlayX_AddGroupToGroup(p,a,b) (p)->lpVtbl->AddGroupToGroup(p,a,b)
899 #define IDirectPlayX_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->lpVtbl->CreateGroupInGroup(p,a,b,c,d,e,f)
900 #define IDirectPlayX_DeleteGroupFromGroup(p,a,b) (p)->lpVtbl->DeleteGroupFromGroup(p,a,b)
901 #define IDirectPlayX_EnumConnections(p,a,b,c,d) (p)->lpVtbl->EnumConnections(p,a,b,c,d)
902 #define IDirectPlayX_EnumGroupsInGroup(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupsInGroup(p,a,b,c,d,e)
903 #define IDirectPlayX_GetGroupConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetGroupConnectionSettings(p,a,b,c,d)
904 #define IDirectPlayX_InitializeConnection(p,a,b) (p)->lpVtbl->InitializeConnection(p,a,b)
905 #define IDirectPlayX_SecureOpen(p,a,b,c,d) (p)->lpVtbl->SecureOpen(p,a,b,c,d)
906 #define IDirectPlayX_SendChatMessage(p,a,b,c,d) (p)->lpVtbl->SendChatMessage(p,a,b,c,d)
907 #define IDirectPlayX_SetGroupConnectionSettings(p,a,b,c) (p)->lpVtbl->SetGroupConnectionSettings(p,a,b,c)
908 #define IDirectPlayX_StartSession(p,a,b) (p)->lpVtbl->StartSession(p,a,b)
909 #define IDirectPlayX_GetGroupFlags(p,a,b) (p)->lpVtbl->GetGroupFlags(p,a,b)
910 #define IDirectPlayX_GetGroupParent(p,a,b) (p)->lpVtbl->GetGroupParent(p,a,b)
911 #define IDirectPlayX_GetPlayerAccount(p,a,b,c,d) (p)->lpVtbl->GetPlayerAccount(p,a,b,c,d)
912 #define IDirectPlayX_GetPlayerFlags(p,a,b) (p)->lpVtbl->GetPlayerFlags(p,a,b)
913 /*** IDirectPlay4 methods ***/
914 #define IDirectPlayX_GetGroupOwner(p,a,b) (p)->lpVtbl->GetGroupOwner(p,a,b)
915 #define IDirectPlayX_SetGroupOwner(p,a,b) (p)->lpVtbl->SetGroupOwner(p,a,b)
916 #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)
917 #define IDirectPlayX_GetMessageQueue(p,a,b,c,d,e) (p)->lpVtbl->GetMessageQueue(p,a,b,c,d,e)
918 #define IDirectPlayX_CancelMessage(p,a,b) (p)->lpVtbl->CancelMessage(p,a,b)
919 #define IDirectPlayX_CancelPriority(p,a,b,c) (p)->lpVtbl->CancelPriority(p,a,b,c)
920 #else
921 /*** IUnknown methods ***/
922 #define IDirectPlayX_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
923 #define IDirectPlayX_AddRef(p) (p)->AddRef()
924 #define IDirectPlayX_Release(p) (p)->Release()
925 /*** IDirectPlay2 methods ***/
926 #define IDirectPlayX_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b)
927 #define IDirectPlayX_Close(p) (p)->Close()
928 #define IDirectPlayX_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e)
929 #define IDirectPlayX_CreatePlayer(p,a,b,c,d,e,f) (p)->CreatePlayer(a,b,c,d,e,f)
930 #define IDirectPlayX_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b)
931 #define IDirectPlayX_DestroyGroup(p,a) (p)->DestroyGroup(a)
932 #define IDirectPlayX_DestroyPlayer(p,a) (p)->DestroyPlayer(a)
933 #define IDirectPlayX_EnumGroupPlayers(p,a,b,c,d,e) (p)->EnumGroupPlayers(a,b,c,d,e)
934 #define IDirectPlayX_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d)
935 #define IDirectPlayX_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d)
936 #define IDirectPlayX_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e)
937 #define IDirectPlayX_GetCaps(p,a,b) (p)->GetCaps(a,b)
938 #define IDirectPlayX_GetGroupData(p,a,b,c,d) (p)->GetGroupData(a,b,c,d)
939 #define IDirectPlayX_GetGroupName(p,a,b,c) (p)->GetGroupName(a,b,c)
940 #define IDirectPlayX_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b)
941 #define IDirectPlayX_GetPlayerAddress(p,a,b,c) (p)->GetPlayerAddress(a,b,c)
942 #define IDirectPlayX_GetPlayerCaps(p,a,b,c) (p)->GetPlayerCaps(a,b,c)
943 #define IDirectPlayX_GetPlayerData(p,a,b,c,d) (p)->GetPlayerData(a,b,c,d)
944 #define IDirectPlayX_GetPlayerName(p,a,b,c) (p)->GetPlayerName(a,b,c)
945 #define IDirectPlayX_GetSessionDesc(p,a,b) (p)->GetSessionDesc(a,b)
946 #define IDirectPlayX_Initialize(p,a) (p)->Initialize(a)
947 #define IDirectPlayX_Open(p,a,b) (p)->Open(a,b)
948 #define IDirectPlayX_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e)
949 #define IDirectPlayX_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e)
950 #define IDirectPlayX_SetGroupData(p,a,b,c,d) (p)->SetGroupData(a,b,c,d)
951 #define IDirectPlayX_SetGroupName(p,a,b,c) (p)->SetGroupName(a,b,c)
952 #define IDirectPlayX_SetPlayerData(p,a,b,c,d) (p)->SetPlayerData(a,b,c,d)
953 #define IDirectPlayX_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c)
954 #define IDirectPlayX_SetSessionDesc(p,a,b) (p)->SetSessionDesc(a,b)
955 /*** IDirectPlay3 methods ***/
956 #define IDirectPlayX_AddGroupToGroup(p,a,b) (p)->AddGroupToGroup(a,b)
957 #define IDirectPlayX_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->CreateGroupInGroup(a,b,c,d,e,f)
958 #define IDirectPlayX_DeleteGroupFromGroup(p,a,b) (p)->DeleteGroupFromGroup(a,b)
959 #define IDirectPlayX_EnumConnections(p,a,b,c,d) (p)->EnumConnections(a,b,c,d)
960 #define IDirectPlayX_EnumGroupsInGroup(p,a,b,c,d,e) (p)->EnumGroupsInGroup(a,b,c,d,e)
961 #define IDirectPlayX_GetGroupConnectionSettings(p,a,b,c,d) (p)->GetGroupConnectionSettings(a,b,c,d)
962 #define IDirectPlayX_InitializeConnection(p,a,b) (p)->InitializeConnection(a,b)
963 #define IDirectPlayX_SecureOpen(p,a,b,c,d) (p)->SecureOpen(a,b,c,d)
964 #define IDirectPlayX_SendChatMessage(p,a,b,c,d) (p)->SendChatMessage(a,b,c,d)
965 #define IDirectPlayX_SetGroupConnectionSettings(p,a,b,c) (p)->SetGroupConnectionSettings(a,b,c)
966 #define IDirectPlayX_StartSession(p,a,b) (p)->StartSession(a,b)
967 #define IDirectPlayX_GetGroupFlags(p,a,b) (p)->GetGroupFlags(a,b)
968 #define IDirectPlayX_GetGroupParent(p,a,b) (p)->GetGroupParent(a,b)
969 #define IDirectPlayX_GetPlayerAccount(p,a,b,c,d) (p)->GetPlayerAccount(a,b,c,d)
970 #define IDirectPlayX_GetPlayerFlags(p,a,b) (p)->GetPlayerFlags(a,b)
971 /*** IDirectPlay4 methods ***/
972 #define IDirectPlayX_GetGroupOwner(p,a,b) (p)->GetGroupOwner(a,b)
973 #define IDirectPlayX_SetGroupOwner(p,a,b) (p)->SetGroupOwner(a,b)
974 #define IDirectPlayX_SendEx(p,a,b,c,d,e,f,g,h,i) (p)->SendEx(a,b,c,d,e,f,g,h,i)
975 #define IDirectPlayX_GetMessageQueue(p,a,b,c,d,e) (p)->GetMessageQueue(a,b,c,d,e)
976 #define IDirectPlayX_CancelMessage(p,a,b) (p)->CancelMessage(a,b)
977 #define IDirectPlayX_CancelPriority(p,a,b,c) (p)->CancelPriority(a,b,c)
978 #endif
981 /* For DirectPlay::EnumConnections */
982 #define DPCONNECTION_DIRECTPLAY 0x00000001
983 #define DPCONNECTION_DIRECTPLAYLOBBY 0x00000002
985 /* For DirectPlay::EnumPlayers and DirectPlay::EnumGroups */
986 #define DPENUMPLAYERS_ALL 0x00000000
987 #define DPENUMPLAYERS_LOCAL 0x00000008
988 #define DPENUMPLAYERS_REMOTE 0x00000010
989 #define DPENUMPLAYERS_GROUP 0x00000020
990 #define DPENUMPLAYERS_SESSION 0x00000080
991 #define DPENUMPLAYERS_SERVERPLAYER 0x00000100
992 #define DPENUMPLAYERS_SPECTATOR 0x00000200
993 #define DPENUMPLAYERS_OWNER 0x00002000
995 #define DPENUMGROUPS_ALL DPENUMPLAYERS_ALL
996 #define DPENUMGROUPS_LOCAL DPENUMPLAYERS_LOCAL
997 #define DPENUMGROUPS_REMOTE DPENUMPLAYERS_REMOTE
998 #define DPENUMGROUPS_SESSION DPENUMPLAYERS_SESSION
999 #define DPENUMGROUPS_SHORTCUT 0x00000400
1000 #define DPENUMGROUPS_STAGINGAREA 0x00000800
1001 #define DPENUMGROUPS_HIDDEN 0x00001000
1004 /* For DirectPlay::CreatePlayer */
1005 #define DPPLAYER_SERVERPLAYER DPENUMPLAYERS_SERVERPLAYER
1006 #define DPPLAYER_SPECTATOR DPENUMPLAYERS_SPECTATOR
1007 #define DPPLAYER_LOCAL DPENUMPLAYERS_LOCAL
1008 #define DPPLAYER_OWNER DPENUMPLAYERS_OWNER
1010 /* For DirectPlay::CreateGroup */
1011 #define DPGROUP_STAGINGAREA DPENUMGROUPS_STAGINGAREA
1012 #define DPGROUP_LOCAL DPENUMGROUPS_LOCAL
1013 #define DPGROUP_HIDDEN DPENUMGROUPS_HIDDEN
1015 /* For DirectPlay::EnumSessions */
1016 #define DPENUMSESSIONS_AVAILABLE 0x00000001
1017 #define DPENUMSESSIONS_ALL 0x00000002
1018 #define DPENUMSESSIONS_ASYNC 0x00000010
1019 #define DPENUMSESSIONS_STOPASYNC 0x00000020
1020 #define DPENUMSESSIONS_PASSWORDREQUIRED 0x00000040
1021 #define DPENUMSESSIONS_RETURNSTATUS 0x00000080
1023 /* For DirectPlay::GetCaps and DirectPlay::GetPlayerCaps */
1024 #define DPGETCAPS_GUARANTEED 0x00000001
1026 /* For DirectPlay::GetGroupData and DirectPlay::GetPlayerData */
1027 #define DPGET_REMOTE 0x00000000
1028 #define DPGET_LOCAL 0x00000001
1030 /* For DirectPlay::Receive */
1031 #define DPRECEIVE_ALL 0x00000001
1032 #define DPRECEIVE_TOPLAYER 0x00000002
1033 #define DPRECEIVE_FROMPLAYER 0x00000004
1034 #define DPRECEIVE_PEEK 0x00000008
1036 /* For DirectPlay::Send */
1037 #define DPSEND_NONGUARANTEED 0x00000000
1038 #define DPSEND_GUARANTEED 0x00000001
1039 #define DPSEND_HIGHPRIORITY 0x00000002
1040 #define DPSEND_OPENSTREAM 0x00000008
1041 #define DPSEND_CLOSESTREAM 0x00000010
1042 #define DPSEND_SIGNED 0x00000020
1043 #define DPSEND_ENCRYPTED 0x00000040
1044 #define DPSEND_LOBBYSYSTEMMESSAGE 0x00000080
1045 #define DPSEND_ASYNC 0x00000200
1046 #define DPSEND_NOSENDCOMPLETEMSG 0x00000400
1048 #define DPSEND_MAX_PRI 0x0000FFFF
1049 #define DPSEND_MAX_PRIORITY DPSEND_MAX_PRI
1052 /* For DirectPlay::SetGroupData, DirectPlay::SetGroupName,
1053 * DirectPlay::SetPlayerData, DirectPlay::SetPlayerName and
1054 * DirectPlay::SetSessionDesc.
1056 #define DPSET_REMOTE 0x00000000
1057 #define DPSET_LOCAL 0x00000001
1058 #define DPSET_GUARANTEED 0x00000002
1060 /* For DirectPlay::GetMessageQueue */
1061 #define DPMESSAGEQUEUE_SEND 0x00000001
1062 #define DPMESSAGEQUEUE_RECEIVE 0x00000002
1064 /* DirectPlay::Connect */
1065 #define DPCONNECT_RETURNSTATUS (DPENUMSESSIONS_RETURNSTATUS)
1067 /* DirectPlay::GetCaps and DirectPlay::GetPlayerCaps */
1068 #define DPCAPS_ISHOST 0x00000002
1069 #define DPCAPS_GROUPOPTIMIZED 0x00000008
1070 #define DPCAPS_KEEPALIVEOPTIMIZED 0x00000010
1071 #define DPCAPS_GUARANTEEDOPTIMIZED 0x00000020
1072 #define DPCAPS_GUARANTEEDSUPPORTED 0x00000040
1073 #define DPCAPS_SIGNINGSUPPORTED 0x00000080
1074 #define DPCAPS_ENCRYPTIONSUPPORTED 0x00000100
1075 #define DPPLAYERCAPS_LOCAL 0x00000800
1076 #define DPCAPS_ASYNCCANCELSUPPORTED 0x00001000
1077 #define DPCAPS_ASYNCCANCELALLSUPPORTED 0x00002000
1078 #define DPCAPS_SENDTIMEOUTSUPPORTED 0x00004000
1079 #define DPCAPS_SENDPRIORITYSUPPORTED 0x00008000
1080 #define DPCAPS_ASYNCSUPPORTED 0x00010000
1082 /** DirectPlay system messages **/
1084 /* A new player or group has been created in the session */
1085 #define DPSYS_CREATEPLAYERORGROUP 0x0003
1087 /* A player or group has been deleted from the session */
1088 #define DPSYS_DESTROYPLAYERORGROUP 0x0005
1090 /* A player has been added to a group */
1091 #define DPSYS_ADDPLAYERTOGROUP 0x0007
1093 /* A player has been deleted from a group */
1094 #define DPSYS_DELETEPLAYERFROMGROUP 0x0021
1096 /* Session lost for this object - ie lost contact with all players */
1097 #define DPSYS_SESSIONLOST 0x0031
1099 /* The current host has left the session */
1100 #define DPSYS_HOST 0x0101
1102 /* Player or group data has changed */
1103 #define DPSYS_SETPLAYERORGROUPDATA 0x0102
1105 /* The name of a player or group has changed */
1106 #define DPSYS_SETPLAYERORGROUPNAME 0x0103
1108 /* The session description has changed */
1109 #define DPSYS_SETSESSIONDESC 0x0104
1111 /* A group has been added to a group */
1112 #define DPSYS_ADDGROUPTOGROUP 0x0105
1114 /* A group has been deleted from a group */
1115 #define DPSYS_DELETEGROUPFROMGROUP 0x0106
1117 /* A secure player to player message has arrived */
1118 #define DPSYS_SECUREMESSAGE 0x0107
1120 /* Start a new session */
1121 #define DPSYS_STARTSESSION 0x0108
1123 /* A chat message has arrived */
1124 #define DPSYS_CHAT 0x0109
1126 /* The owner of a group has changed */
1127 #define DPSYS_SETGROUPOWNER 0x010A
1129 /* An async send is done (finished normally, failed or cancelled) */
1130 #define DPSYS_SENDCOMPLETE 0x010d
1132 /** DirectPlay System Messages **/
1134 #define DPPLAYERTYPE_GROUP 0x00000000
1135 #define DPPLAYERTYPE_PLAYER 0x00000001
1138 /* NOTE: DPMSG_HOST and DPMSG_GENERIC share the same format */
1139 typedef struct tagDPMSG_GENERIC
1141 DWORD dwType; /* Use message type as described above */
1142 } DPMSG_GENERIC, *LPDPMSG_GENERIC,
1143 DPMSG_HOST, *LPDPMSG_HOST,
1144 DPMSG_SESSIONLOST, *LPDPMSG_SESSIONLOST;
1146 typedef struct tagDPMSG_CREATEPLAYERORGROUP
1148 DWORD dwType; /* Use message type as described above */
1149 DWORD dwPlayerType; /* Use DPPLAYERTYPE_GROUP or DPPLAYERTYPE_PLAYER */
1150 DPID dpId; /* ID of the player/group */
1151 DWORD dwCurrentPlayers; /* Current number of players/groups in session */
1152 LPVOID lpData; /* Pointer to data */
1153 DWORD dwDataSize; /* Size of data */
1154 DPNAME dpnName; /* Name info */
1156 /* dpIdParent and dwFlags are only valid in DirectPlay3 and later. What
1157 * does that mean about the message size before? -PH */
1158 DPID dpIdParent; /* id of parent group */
1159 DWORD dwFlags; /* Flags for the player/group */
1160 } DPMSG_CREATEPLAYERORGROUP, *LPDPMSG_CREATEPLAYERORGROUP;
1162 typedef struct tagDPMSG_DESTROYPLAYERORGROUP
1164 DWORD dwType; /* Use message type as described above */
1165 DWORD dwPlayerType; /* Use DPPLAYERTYPE_GROUP or DPPLAYERTYPE_PLAYER */
1166 DPID dpId; /* ID of player/group to be deleted */
1167 LPVOID lpLocalData; /* Pointer to local data */
1168 DWORD dwLocalDataSize; /* Sizeof local data */
1169 LPVOID lpRemoteData; /* Pointer to remote data */
1170 DWORD dwRemoteDataSize; /* Sizeof remote data */
1172 /* dpnName, dpIdParent and dwFlags are only valid in DirectPlay3 and later. What
1173 * does that mean about the message size before? -PH */
1174 DPNAME dpnName; /* Name info */
1175 DPID dpIdParent; /* id of parent group */
1176 DWORD dwFlags; /* Flags for the player/group */
1177 } DPMSG_DESTROYPLAYERORGROUP, *LPDPMSG_DESTROYPLAYERORGROUP;
1179 /* NOTE: DPMSG_ADDPLAYERTOGROUP and DPMSG_DELETEPLAYERFROMGROUP are the same */
1180 typedef struct tagDPMSG_ADDPLAYERTOGROUP
1182 DWORD dwType; /* Use message type as described above */
1183 DPID dpIdGroup; /* Group ID to add player into */
1184 DPID dpIdPlayer; /* ID of player to add */
1185 } DPMSG_ADDPLAYERTOGROUP, *LPDPMSG_ADDPLAYERTOGROUP,
1186 DPMSG_DELETEPLAYERFROMGROUP, *LPDPMSG_DELETEPLAYERFROMGROUP;
1188 /* NOTE: DPMSG_ADDGROUPTOGROUP and DPMSG_DELETEGROUPFROMGROUP are the same */
1189 typedef struct tagDPMSG_ADDGROUPTOGROUP
1191 DWORD dwType; /* Use message type as described above */
1192 DPID dpIdParentGroup; /* Group ID to add group into */
1193 DPID dpIdGroup; /* ID of group to add */
1194 } DPMSG_ADDGROUPTOGROUP, *LPDPMSG_ADDGROUPTOGROUP,
1195 DPMSG_DELETEGROUPFROMGROUP, *LPDPMSG_DELETEGROUPFROMGROUP;
1197 typedef struct tagDPMSG_SETPLAYERORGROUPDATA
1199 DWORD dwType; /* Use message type as described above */
1200 DWORD dwPlayerType; /* Use DPPLAYERTYPE_GROUP or DPPLAYERTYPE_PLAYER */
1201 DPID dpId; /* ID of player/group */
1202 LPVOID lpData; /* Pointer to data */
1203 DWORD dwDataSize; /* Size of data */
1204 } DPMSG_SETPLAYERORGROUPDATA, *LPDPMSG_SETPLAYERORGROUPDATA;
1206 typedef struct tagDPMSG_SETPLAYERORGROUPNAME
1208 DWORD dwType; /* Use message type as described above */
1209 DWORD dwPlayerType; /* Use DPPLAYERTYPE_GROUP or DPPLAYERTYPE_PLAYER */
1210 DPID dpId; /* ID of player/group */
1211 DPNAME dpnName; /* New name */
1212 } DPMSG_SETPLAYERORGROUPNAME, *LPDPMSG_SETPLAYERORGROUPNAME;
1214 typedef struct tagDPMSG_SETSESSIONDESC
1216 DWORD dwType; /* Use message type as described above */
1217 DPSESSIONDESC2 dpDesc; /* New session desc */
1218 } DPMSG_SETSESSIONDESC, *LPDPMSG_SETSESSIONDESC;
1220 typedef struct tagDPMSG_SECUREMESSAGE
1222 DWORD dwType; /* Use message type as described above */
1223 DWORD dwFlags; /* Signed/Encrypted */
1224 DPID dpIdFrom; /* ID of from player */
1225 LPVOID lpData; /* Message sent */
1226 DWORD dwDataSize; /* Size of message */
1227 } DPMSG_SECUREMESSAGE, *LPDPMSG_SECUREMESSAGE;
1229 typedef struct tagDPMSG_STARTSESSION
1231 DWORD dwType; /* Use message type as described above */
1232 LPDPLCONNECTION lpConn; /* DPLCONNECTION structure */
1233 } DPMSG_STARTSESSION, *LPDPMSG_STARTSESSION;
1235 typedef struct tagDPMSG_CHAT
1237 DWORD dwType; /* Use message type as described above */
1238 DWORD dwFlags; /* Message flags */
1239 DPID idFromPlayer; /* ID of sender */
1240 DPID idToPlayer; /* ID of who msg is for */
1241 DPID idToGroup; /* ID of what group msg is for */
1242 LPDPCHAT lpChat; /* Chat message */
1243 } DPMSG_CHAT, *LPDPMSG_CHAT;
1245 typedef struct tagDPMSG_SETGROUPOWNER
1247 DWORD dwType; /* Use message type as described above */
1248 DPID idGroup; /* Group ID */
1249 DPID idNewOwner; /* ID of player who now owns group */
1250 DPID idOldOwner; /* ID of player who used to own group */
1251 } DPMSG_SETGROUPOWNER, *LPDPMSG_SETGROUPOWNER;
1253 typedef struct
1255 DWORD dwType; /* Use message type as described above */
1256 DPID idFrom; /* ID from */
1257 DPID idTo; /* ID to */
1258 DWORD dwFlags;
1259 DWORD dwPriority;
1260 DWORD dwTimeout;
1261 LPVOID lpvContext;
1262 DWORD dwMsgID;
1263 HRESULT hr;
1264 DWORD dwSendTime; /* When sent ? */
1265 } DPMSG_SENDCOMPLETE, *LPDPMSG_SENDCOMPLETE;
1269 #ifdef __cplusplus
1270 } /* extern "C" */
1271 #endif /* defined(__cplusplus) */
1273 #endif /* __WINE_DPLAY_H */