Renamed KERNEL.327 to HandleParamError (as in 'Undoc. Windows').
[wine/multimedia.git] / include / dplay.h
blobd9a11474dda7111a21d61cec6fe20283def14674
1 /* Header for Direct Play and Direct Play Lobby */
2 #ifndef __WINE_DPLAY_H
3 #define __WINE_DPLAY_H
5 #pragma pack(1)
7 /* Return Values for Direct Play */
8 #define _FACDP 0x877
9 #define MAKE_DPHRESULT( code ) MAKE_HRESULT( 1, _FACDP, code )
11 #define DP_OK S_OK
12 #define DPERR_ALREADYINITIALIZED MAKE_DPHRESULT( 5 )
13 #define DPERR_ACCESSDENIED MAKE_DPHRESULT( 10 )
14 #define DPERR_ACTIVEPLAYERS MAKE_DPHRESULT( 20 )
15 #define DPERR_BUFFERTOOSMALL MAKE_DPHRESULT( 30 )
16 #define DPERR_CANTADDPLAYER MAKE_DPHRESULT( 40 )
17 #define DPERR_CANTCREATEGROUP MAKE_DPHRESULT( 50 )
18 #define DPERR_CANTCREATEPLAYER MAKE_DPHRESULT( 60 )
19 #define DPERR_CANTCREATESESSION MAKE_DPHRESULT( 70 )
20 #define DPERR_CAPSNOTAVAILABLEYET MAKE_DPHRESULT( 80 )
21 #define DPERR_EXCEPTION MAKE_DPHRESULT( 90 )
22 #define DPERR_GENERIC E_FAIL
23 #define DPERR_INVALIDFLAGS MAKE_DPHRESULT( 120 )
24 #define DPERR_INVALIDOBJECT MAKE_DPHRESULT( 130 )
25 #define DPERR_INVALIDPARAM E_INVALIDARG
26 #define DPERR_INVALIDPARAMS DPERR_INVALIDPARAM
27 #define DPERR_INVALIDPLAYER MAKE_DPHRESULT( 150 )
28 #define DPERR_INVALIDGROUP MAKE_DPHRESULT( 155 )
29 #define DPERR_NOCAPS MAKE_DPHRESULT( 160 )
30 #define DPERR_NOCONNECTION MAKE_DPHRESULT( 170 )
31 #define DPERR_NOMEMORY E_OUTOFMEMORY
32 #define DPERR_OUTOFMEMORY DPERR_NOMEMORY
33 #define DPERR_NOMESSAGES MAKE_DPHRESULT( 190 )
34 #define DPERR_NONAMESERVERFOUND MAKE_DPHRESULT( 200 )
35 #define DPERR_NOPLAYERS MAKE_DPHRESULT( 210 )
36 #define DPERR_NOSESSIONS MAKE_DPHRESULT( 220 )
37 #define DPERR_PENDING E_PENDING
38 #define DPERR_SENDTOOBIG MAKE_DPHRESULT( 230 )
39 #define DPERR_TIMEOUT MAKE_DPHRESULT( 240 )
40 #define DPERR_UNAVAILABLE MAKE_DPHRESULT( 250 )
41 #define DPERR_UNSUPPORTED E_NOTIMPL
42 #define DPERR_BUSY MAKE_DPHRESULT( 270 )
43 #define DPERR_USERCANCEL MAKE_DPHRESULT( 280 )
44 #define DPERR_NOINTERFACE E_NOINTERFACE
45 #define DPERR_CANNOTCREATESERVER MAKE_DPHRESULT( 290 )
46 #define DPERR_PLAYERLOST MAKE_DPHRESULT( 300 )
47 #define DPERR_SESSIONLOST MAKE_DPHRESULT( 310 )
48 #define DPERR_UNINITIALIZED MAKE_DPHRESULT( 320 )
49 #define DPERR_NONEWPLAYERS MAKE_DPHRESULT( 330 )
50 #define DPERR_INVALIDPASSWORD MAKE_DPHRESULT( 340 )
51 #define DPERR_CONNECTING MAKE_DPHRESULT( 350 )
52 #define DPERR_BUFFERTOOLARGE MAKE_DPHRESULT( 1000 )
53 #define DPERR_CANTCREATEPROCESS MAKE_DPHRESULT( 1010 )
54 #define DPERR_APPNOTSTARTED MAKE_DPHRESULT( 1020 )
55 #define DPERR_INVALIDINTERFACE MAKE_DPHRESULT( 1030 )
56 #define DPERR_NOSERVICEPROVIDER MAKE_DPHRESULT( 1040 )
57 #define DPERR_UNKNOWNAPPLICATION MAKE_DPHRESULT( 1050 )
58 #define DPERR_NOTLOBBIED MAKE_DPHRESULT( 1070 )
59 #define DPERR_SERVICEPROVIDERLOADED MAKE_DPHRESULT( 1080 )
60 #define DPERR_ALREADYREGISTERED MAKE_DPHRESULT( 1090 )
61 #define DPERR_NOTREGISTERED MAKE_DPHRESULT( 1100 )
62 #define DPERR_AUTHENTICATIONFAILED MAKE_DPHRESULT( 2000 )
63 #define DPERR_CANTLOADSSPI MAKE_DPHRESULT( 2010 )
64 #define DPERR_ENCRYPTIONFAILED MAKE_DPHRESULT( 2020 )
65 #define DPERR_SIGNFAILED MAKE_DPHRESULT( 2030 )
66 #define DPERR_CANTLOADSECURITYPACKAGE MAKE_DPHRESULT( 2040 )
67 #define DPERR_ENCRYPTIONNOTSUPPORTED MAKE_DPHRESULT( 2050 )
68 #define DPERR_CANTLOADCAPI MAKE_DPHRESULT( 2060 )
69 #define DPERR_NOTLOGGEDIN MAKE_DPHRESULT( 2070 )
70 #define DPERR_LOGONDENIED MAKE_DPHRESULT( 2080 )
72 DEFINE_GUID(IID_IDirectPlay2, 0x2b74f7c0, 0x9154, 0x11cf, 0xa9, 0xcd, 0x0, 0xaa, 0x0, 0x68, 0x86, 0xe3);
73 DEFINE_GUID(IID_IDirectPlay2A,0x9d460580, 0xa822, 0x11cf, 0x96, 0xc, 0x0, 0x80, 0xc7, 0x53, 0x4e, 0x82);
75 DEFINE_GUID(IID_IDirectPlay3, 0x133efe40, 0x32dc, 0x11d0, 0x9c, 0xfb, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb);
76 DEFINE_GUID(IID_IDirectPlay3A,0x133efe41, 0x32dc, 0x11d0, 0x9c, 0xfb, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb);
78 // {D1EB6D20-8923-11d0-9D97-00A0C90A43CB}
79 DEFINE_GUID(CLSID_DirectPlay,0xd1eb6d20, 0x8923, 0x11d0, 0x9d, 0x97, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb);
82 /* {AF465C71-9588-11cf-A020-00AA006157AC} */
83 DEFINE_GUID(IID_IDirectPlayLobby, 0xaf465c71, 0x9588, 0x11cf, 0xa0, 0x20, 0x0, 0xaa, 0x0, 0x61, 0x57, 0xac);
84 /* {26C66A70-B367-11cf-A024-00AA006157AC} */
85 DEFINE_GUID(IID_IDirectPlayLobbyA, 0x26c66a70, 0xb367, 0x11cf, 0xa0, 0x24, 0x0, 0xaa, 0x0, 0x61, 0x57, 0xac);
86 /* {0194C220-A303-11d0-9C4F-00A0C905425E} */
87 DEFINE_GUID(IID_IDirectPlayLobby2, 0x194c220, 0xa303, 0x11d0, 0x9c, 0x4f, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
88 /* {1BB4AF80-A303-11d0-9C4F-00A0C905425E} */
89 DEFINE_GUID(IID_IDirectPlayLobby2A, 0x1bb4af80, 0xa303, 0x11d0, 0x9c, 0x4f, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
90 /* {2FE8F810-B2A5-11d0-A787-0000F803ABFC} */
91 DEFINE_GUID(CLSID_DirectPlayLobby, 0x2fe8f810, 0xb2a5, 0x11d0, 0xa7, 0x87, 0x0, 0x0, 0xf8, 0x3, 0xab, 0xfc);
94 * GUIDS used by Service Providers shipped with DirectPlay
95 * Use these to identify Service Provider returned by EnumConnections
98 /* GUID for IPX service provider {685BC400-9D2C-11cf-A9CD-00AA006886E3} */
99 DEFINE_GUID(DPSPGUID_IPX, 0x685bc400, 0x9d2c, 0x11cf, 0xa9, 0xcd, 0x0, 0xaa, 0x0, 0x68, 0x86, 0xe3);
101 /* GUID for TCP/IP service provider 36E95EE0-8577-11cf-960C-0080C7534E82 */
102 DEFINE_GUID(DPSPGUID_TCPIP, 0x36E95EE0, 0x8577, 0x11cf, 0x96, 0xc, 0x0, 0x80, 0xc7, 0x53, 0x4e, 0x82);
104 /* GUID for Serial service provider {0F1D6860-88D9-11cf-9C4E-00A0C905425E} */
105 DEFINE_GUID(DPSPGUID_SERIAL, 0xf1d6860, 0x88d9, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
107 /* GUID for Modem service provider {44EAA760-CB68-11cf-9C4E-00A0C905425E} */
108 DEFINE_GUID(DPSPGUID_MODEM, 0x44eaa760, 0xcb68, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
110 typedef struct IDirectPlay IDirectPlay, *LPDIRECTPLAY;
112 /* Direct Play 2 */
113 typedef struct IDirectPlay2 IDirectPlay2, *LPDIRECTPLAY2;
114 typedef struct IDirectPlay2 IDirectPlay2A, *LPDIRECTPLAY2A;
116 /* Direct Play 3 */
117 typedef struct IDirectPlay3 IDirectPlay3, *LPDIRECTPLAY3;
118 typedef struct IDirectPlay3 IDirectPlay3A, *LPDIRECTPLAY3A;
120 /* DPID - DirectPlay player and group ID */
121 typedef DWORD DPID, *LPDPID;
123 /* DPID from whence originate messages - just an ID */
124 #define DPID_SYSMSG 0 /* DPID of system */
125 #define DPID_ALLPLAYERS 0 /* DPID of all players */
126 #define DPID_SERVERPLAYER 1 /* DPID of the server player */
127 #define DPID_UNKNOWN 0xFFFFFFFF /* Player ID is unknown */
129 /* DPCAPS - Used to obtain the capabilities of a DirectPlay object */
130 typedef struct tagDPCAPS
132 DWORD dwSize; /* Size of structure in bytes */
133 DWORD dwFlags;
134 DWORD dwMaxBufferSize;
135 DWORD dwMaxQueueSize; /* Obsolete. */
136 DWORD dwMaxPlayers; /* Maximum players/groups (local + remote) */
137 DWORD dwHundredBaud; /* Bandwidth in 100 bits per second units;
138 * i.e. 24 is 2400, 96 is 9600, etc.
140 DWORD dwLatency; /* Estimated latency; 0 = unknown */
141 DWORD dwMaxLocalPlayers; /* Maximum # of locally created players */
142 DWORD dwHeaderLength; /* Maximum header length in bytes */
143 DWORD dwTimeout; /* Service provider's suggested timeout value
144 * This is how long DirectPlay will wait for
145 * responses to system messages
147 } DPCAPS, *LPDPCAPS;
149 typedef struct tagDPNAME
151 DWORD dwSize;
152 DWORD dwFlags; /* Not used must be 0 */
154 union /*playerShortName */ /* Player's Handle? */
156 LPWSTR lpszShortName;
157 LPSTR lpszShortNameA;
158 }psn;
160 union /*playerLongName */ /* Player's formal/real name */
162 LPWSTR lpszLongName;
163 LPSTR lpszLongNameA;
164 }pln;
166 } DPNAME, *LPDPNAME;
168 #define DPLONGNAMELEN 52
169 #define DPSHORTNAMELEN 20
170 #define DPSESSIONNAMELEN 32
171 #define DPPASSWORDLEN 16
172 #define DPUSERRESERVED 16
174 typedef struct tagDPSESSIONDESC
176 DWORD dwSize;
177 GUID guidSession;
178 DWORD dwSession;
179 DWORD dwMaxPlayers;
180 DWORD dwCurrentPlayers;
181 DWORD dwFlags;
182 char szSessionName[ DPSESSIONNAMELEN ];
183 char szUserField[ DPUSERRESERVED ];
184 DWORD dwReserved1;
185 char szPassword[ DPPASSWORDLEN ];
186 DWORD dwReserved2;
187 DWORD dwUser1;
188 DWORD dwUser2;
189 DWORD dwUser3;
190 DWORD dwUser4;
191 } DPSESSIONDESC, *LPDPSESSIONDESC;
193 typedef struct tagDPSESSIONDESC2
195 DWORD dwSize;
196 DWORD dwFlags;
197 GUID guidInstance;
198 GUID guidApplication; /* GUID of the DP application, GUID_NULL if
199 * all applications! */
201 DWORD dwMaxPlayers;
202 DWORD dwCurrentPlayers; /* (read only value) */
204 union /* Session name */
206 LPWSTR lpszSessionName;
207 LPSTR lpszSessionNameA;
208 }sess;
210 union /* Optional password */
212 LPWSTR lpszPassword;
213 LPSTR lpszPasswordA;
214 }pass;
216 DWORD dwReserved1;
217 DWORD dwReserved2;
219 DWORD dwUser1; /* For use by the application */
220 DWORD dwUser2;
221 DWORD dwUser3;
222 DWORD dwUser4;
223 } DPSESSIONDESC2, *LPDPSESSIONDESC2;
224 typedef const DPSESSIONDESC2* LPCDPSESSIONDESC2;
226 #define DPOPEN_JOIN 0x00000001
227 #define DPOPEN_CREATE 0x00000002
228 #define DPOPEN_RETURNSTATUS DPENUMSESSIONS_RETURNSTATUS
230 #define DPSESSION_NEWPLAYERSDISABLED 0x00000001
231 #define DPSESSION_MIGRATEHOST 0x00000004
232 #define DPSESSION_NOMESSAGEID 0x00000008
233 #define DPSESSION_JOINDISABLED 0x00000020
234 #define DPSESSION_KEEPALIVE 0x00000040
235 #define DPSESSION_NODATAMESSAGES 0x00000080
236 #define DPSESSION_SECURESERVER 0x00000100
237 #define DPSESSION_PRIVATE 0x00000200
238 #define DPSESSION_PASSWORDREQUIRED 0x00000400
239 #define DPSESSION_MULTICASTSERVER 0x00000800
240 #define DPSESSION_CLIENTSERVER 0x00001000
242 typedef struct tagDPLCONNECTION
244 DWORD dwSize;
245 DWORD dwFlags;
246 LPDPSESSIONDESC2 lpSessionDesc; /* Ptr to session desc to use for connect */
247 LPDPNAME lpPlayerName; /* Ptr to player name structure */
248 GUID guidSP; /* GUID of Service Provider to use */
249 LPVOID lpAddress; /* Ptr to Address of Service Provider to use */
250 DWORD dwAddressSize; /* Size of address data */
251 } DPLCONNECTION, *LPDPLCONNECTION;
253 /* DPLCONNECTION flags (for dwFlags) */
254 #define DPLCONNECTION_CREATESESSION DPOPEN_CREATE
255 #define DPLCONNECTION_JOINSESSION DPOPEN_JOIN
257 typedef struct tagDPLAPPINFO
259 DWORD dwSize;
260 GUID guidApplication;
262 union appName
264 LPSTR lpszAppNameA;
265 LPWSTR lpszAppName;
268 } DPLAPPINFO, *LPDPLAPPINFO;
269 typedef const DPLAPPINFO *LPCDPLAPPINFO;
271 typedef struct DPCOMPOUNDADDRESSELEMENT
273 GUID guidDataType;
274 DWORD dwDataSize;
275 LPVOID lpData;
276 } DPCOMPOUNDADDRESSELEMENT, *LPDPCOMPOUNDADDRESSELEMENT;
277 typedef const DPCOMPOUNDADDRESSELEMENT *LPCDPCOMPOUNDADDRESSELEMENT;
279 typedef struct tagDPCHAT
281 DWORD dwSize;
282 DWORD dwFlags;
283 union
284 { // Message string
285 LPWSTR lpszMessage; // Unicode
286 LPSTR lpszMessageA; // ANSI
287 }msgstr;
288 } DPCHAT, *LPDPCHAT;
290 typedef struct tagDPSECURITYDESC
292 DWORD dwSize; // Size of structure
293 DWORD dwFlags; // Not used. Must be zero.
294 union
295 { // SSPI provider name
296 LPWSTR lpszSSPIProvider; // Unicode
297 LPSTR lpszSSPIProviderA; // ANSI
298 }sspi;
299 union
300 { // CAPI provider name
301 LPWSTR lpszCAPIProvider; // Unicode
302 LPSTR lpszCAPIProviderA; // ANSI
303 }capi;
304 DWORD dwCAPIProviderType; // Crypto Service Provider type
305 DWORD dwEncryptionAlgorithm; // Encryption Algorithm type
306 } DPSECURITYDESC, *LPDPSECURITYDESC;
308 typedef const DPSECURITYDESC *LPCDPSECURITYDESC;
310 typedef struct tagDPCREDENTIALS
312 DWORD dwSize; // Size of structure
313 DWORD dwFlags; // Not used. Must be zero.
314 union
315 { // User name of the account
316 LPWSTR lpszUsername; // Unicode
317 LPSTR lpszUsernameA; // ANSI
318 }name;
319 union
320 { // Password of the account
321 LPWSTR lpszPassword; // Unicode
322 LPSTR lpszPasswordA; // ANSI
323 }pass;
324 union
325 { // Domain name of the account
326 LPWSTR lpszDomain; // Unicode
327 LPSTR lpszDomainA; // ANSI
328 }domain;
329 } DPCREDENTIALS, *LPDPCREDENTIALS;
331 typedef const DPCREDENTIALS *LPCDPCREDENTIALS;
335 typedef BOOL32 (CALLBACK* LPDPENUMDPCALLBACKW)(
336 LPGUID lpguidSP,
337 LPWSTR lpSPName,
338 DWORD dwMajorVersion,
339 DWORD dwMinorVersion,
340 LPVOID lpContext);
342 typedef BOOL32 (CALLBACK* LPDPENUMDPCALLBACKA)(
343 LPGUID lpguidSP,
344 LPSTR lpSPName, /* ptr to str w/ driver description */
345 DWORD dwMajorVersion, /* Major # of driver spec in lpguidSP */
346 DWORD dwMinorVersion, /* Minor # of driver spec in lpguidSP */
347 LPVOID lpContext); /* User given */
349 typedef const GUID *LPCGUID;
350 typedef const DPNAME *LPCDPNAME;
352 typedef BOOL32 (CALLBACK* LPDPENUMCONNECTIONSCALLBACK)(
353 LPCGUID lpguidSP,
354 LPVOID lpConnection,
355 DWORD dwConnectionSize,
356 LPCDPNAME lpName,
357 DWORD dwFlags,
358 LPVOID lpContext);
360 typedef BOOL32 (CALLBACK* LPDPENUMSESSIONSCALLBACK)(
361 LPDPSESSIONDESC lpDPSessionDesc,
362 LPVOID lpContext,
363 LPDWORD lpdwTimeOut,
364 DWORD dwFlags);
367 extern HRESULT WINAPI DirectPlayEnumerateA( LPDPENUMDPCALLBACKA, LPVOID );
368 extern HRESULT WINAPI DirectPlayEnumerateW( LPDPENUMDPCALLBACKW, LPVOID );
369 extern HRESULT WINAPI DirectPlayCreate( LPGUID lpGUID, LPDIRECTPLAY2 *lplpDP, IUnknown *pUnk);
372 /* Direct Play Lobby 1 */
373 typedef struct IDirectPlayLobby IDirectPlayLobby, *LPDIRECTPLAYLOBBY;
374 typedef struct IDirectPlayLobby IDirectPlayLobbyA, *LPDIRECTPLAYLOBBYA;
376 /* Direct Play Lobby 2 */
377 typedef struct IDirectPlayLobby2 IDirectPlayLobby2, *LPDIRECTPLAYLOBBY2;
378 typedef struct IDirectPlayLobby2 IDirectPlayLobby2A, *LPDIRECTPLAYLOBBY2A;
380 extern HRESULT WINAPI DirectPlayLobbyCreateW(LPGUID, LPDIRECTPLAYLOBBY *, IUnknown *, LPVOID, DWORD );
381 extern HRESULT WINAPI DirectPlayLobbyCreateA(LPGUID, LPDIRECTPLAYLOBBYA *, IUnknown *, LPVOID, DWORD );
385 typedef BOOL32 (CALLBACK* LPDPENUMADDRESSCALLBACK)(
386 REFGUID guidDataType,
387 DWORD dwDataSize,
388 LPCVOID lpData,
389 LPVOID lpContext );
391 typedef BOOL32 (CALLBACK* LPDPLENUMADDRESSTYPESCALLBACK)(
392 REFGUID guidDataType,
393 LPVOID lpContext,
394 DWORD dwFlags );
396 typedef BOOL32 (CALLBACK* LPDPLENUMLOCALAPPLICATIONSCALLBACK)(
397 LPCDPLAPPINFO lpAppInfo,
398 LPVOID lpContext,
399 DWORD dwFlags );
401 typedef BOOL32 (CALLBACK* LPDPENUMPLAYERSCALLBACK2)(
402 DPID dpId,
403 DWORD dwPlayerType,
404 LPCDPNAME lpName,
405 DWORD dwFlags,
406 LPVOID lpContext );
408 typedef BOOL32 (CALLBACK* LPDPENUMSESSIONSCALLBACK2)(
409 LPCDPSESSIONDESC2 lpThisSD,
410 LPDWORD lpdwTimeOut,
411 DWORD dwFlags,
412 LPVOID lpContext );
416 #define STDMETHOD(xfn) HRESULT (CALLBACK *fn##xfn)
417 #define STDMETHOD_(ret,xfn) ret (CALLBACK *fn##xfn)
418 #define PURE
419 #define FAR
420 #define THIS_ THIS,
422 #define THIS LPDIRECTPLAY2 this
423 typedef struct tagLPDIRECTPLAY2_VTABLE
425 /*** IUnknown methods ***/
426 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
427 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
428 STDMETHOD_(ULONG,Release) (THIS) PURE;
430 /*** IDirectPlay2 methods ***/
431 STDMETHOD(AddPlayerToGroup) (THIS_ DPID, DPID) PURE;
432 STDMETHOD(Close) (THIS) PURE;
433 STDMETHOD(CreateGroup) (THIS_ LPDPID,LPDPNAME,LPVOID,DWORD,DWORD) PURE;
434 STDMETHOD(CreatePlayer) (THIS_ LPDPID,LPDPNAME,HANDLE32,LPVOID,DWORD,DWORD) PURE;
435 STDMETHOD(DeletePlayerFromGroup)(THIS_ DPID,DPID) PURE;
436 STDMETHOD(DestroyGroup) (THIS_ DPID) PURE;
437 STDMETHOD(DestroyPlayer) (THIS_ DPID) PURE;
438 STDMETHOD(EnumGroupPlayers) (THIS_ DPID,LPGUID,LPDPENUMPLAYERSCALLBACK2,LPVOID,DWORD) PURE;
439 STDMETHOD(EnumGroups) (THIS_ LPGUID,LPDPENUMPLAYERSCALLBACK2,LPVOID,DWORD) PURE;
440 STDMETHOD(EnumPlayers) (THIS_ LPGUID,LPDPENUMPLAYERSCALLBACK2,LPVOID,DWORD) PURE;
441 STDMETHOD(EnumSessions) (THIS_ LPDPSESSIONDESC2,DWORD,LPDPENUMSESSIONSCALLBACK2,LPVOID,DWORD) PURE;
442 STDMETHOD(GetCaps) (THIS_ LPDPCAPS,DWORD) PURE;
443 STDMETHOD(GetGroupData) (THIS_ DPID,LPVOID,LPDWORD,DWORD) PURE;
444 STDMETHOD(GetGroupName) (THIS_ DPID,LPVOID,LPDWORD) PURE;
445 STDMETHOD(GetMessageCount) (THIS_ DPID, LPDWORD) PURE;
446 STDMETHOD(GetPlayerAddress) (THIS_ DPID,LPVOID,LPDWORD) PURE;
447 STDMETHOD(GetPlayerCaps) (THIS_ DPID,LPDPCAPS,DWORD) PURE;
448 STDMETHOD(GetPlayerData) (THIS_ DPID,LPVOID,LPDWORD,DWORD) PURE;
449 STDMETHOD(GetPlayerName) (THIS_ DPID,LPVOID,LPDWORD) PURE;
450 STDMETHOD(GetSessionDesc) (THIS_ LPVOID,LPDWORD) PURE;
451 STDMETHOD(Initialize) (THIS_ LPGUID) PURE;
452 STDMETHOD(Open) (THIS_ LPDPSESSIONDESC2,DWORD) PURE;
453 STDMETHOD(Receive) (THIS_ LPDPID,LPDPID,DWORD,LPVOID,LPDWORD) PURE;
454 STDMETHOD(Send) (THIS_ DPID, DPID, DWORD, LPVOID, DWORD) PURE;
455 STDMETHOD(SetGroupData) (THIS_ DPID,LPVOID,DWORD,DWORD) PURE;
456 STDMETHOD(SetGroupName) (THIS_ DPID,LPDPNAME,DWORD) PURE;
457 STDMETHOD(SetPlayerData) (THIS_ DPID,LPVOID,DWORD,DWORD) PURE;
458 STDMETHOD(SetPlayerName) (THIS_ DPID,LPDPNAME,DWORD) PURE;
459 STDMETHOD(SetSessionDesc) (THIS_ LPDPSESSIONDESC2,DWORD) PURE;
460 } DIRECTPLAY2_VTABLE, *LPDIRECTPLAY2_VTABLE;
461 #undef THIS
463 #define THIS LPDIRECTPLAY3 this
464 typedef struct tagLPDIRECTPLAY3_VTABLE
466 /*** IUnknown methods ***/
467 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
468 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
469 STDMETHOD_(ULONG,Release) (THIS) PURE;
471 /*** IDirectPlay2 methods ***/
472 STDMETHOD(AddPlayerToGroup) (THIS_ DPID, DPID) PURE;
473 STDMETHOD(Close) (THIS) PURE;
474 STDMETHOD(CreateGroup) (THIS_ LPDPID,LPDPNAME,LPVOID,DWORD,DWORD) PURE;
475 STDMETHOD(CreatePlayer) (THIS_ LPDPID,LPDPNAME,HANDLE32,LPVOID,DWORD,DWORD) PURE;
476 STDMETHOD(DeletePlayerFromGroup)(THIS_ DPID,DPID) PURE;
477 STDMETHOD(DestroyGroup) (THIS_ DPID) PURE;
478 STDMETHOD(DestroyPlayer) (THIS_ DPID) PURE;
479 STDMETHOD(EnumGroupPlayers) (THIS_ DPID,LPGUID,LPDPENUMPLAYERSCALLBACK2,LPVOID,DWORD) PURE;
480 STDMETHOD(EnumGroups) (THIS_ LPGUID,LPDPENUMPLAYERSCALLBACK2,LPVOID,DWORD) PURE;
481 STDMETHOD(EnumPlayers) (THIS_ LPGUID,LPDPENUMPLAYERSCALLBACK2,LPVOID,DWORD) PURE;
482 STDMETHOD(EnumSessions) (THIS_ LPDPSESSIONDESC2,DWORD,LPDPENUMSESSIONSCALLBACK2,LPVOID,DWORD) PURE;
483 STDMETHOD(GetCaps) (THIS_ LPDPCAPS,DWORD) PURE;
484 STDMETHOD(GetGroupData) (THIS_ DPID,LPVOID,LPDWORD,DWORD) PURE;
485 STDMETHOD(GetGroupName) (THIS_ DPID,LPVOID,LPDWORD) PURE;
486 STDMETHOD(GetMessageCount) (THIS_ DPID, LPDWORD) PURE;
487 STDMETHOD(GetPlayerAddress) (THIS_ DPID,LPVOID,LPDWORD) PURE;
488 STDMETHOD(GetPlayerCaps) (THIS_ DPID,LPDPCAPS,DWORD) PURE;
489 STDMETHOD(GetPlayerData) (THIS_ DPID,LPVOID,LPDWORD,DWORD) PURE;
490 STDMETHOD(GetPlayerName) (THIS_ DPID,LPVOID,LPDWORD) PURE;
491 STDMETHOD(GetSessionDesc) (THIS_ LPVOID,LPDWORD) PURE;
492 STDMETHOD(Initialize) (THIS_ LPGUID) PURE;
493 STDMETHOD(Open) (THIS_ LPDPSESSIONDESC2,DWORD) PURE;
494 STDMETHOD(Receive) (THIS_ LPDPID,LPDPID,DWORD,LPVOID,LPDWORD) PURE;
495 STDMETHOD(Send) (THIS_ DPID, DPID, DWORD, LPVOID, DWORD) PURE;
496 STDMETHOD(SetGroupData) (THIS_ DPID,LPVOID,DWORD,DWORD) PURE;
497 STDMETHOD(SetGroupName) (THIS_ DPID,LPDPNAME,DWORD) PURE;
498 STDMETHOD(SetPlayerData) (THIS_ DPID,LPVOID,DWORD,DWORD) PURE;
499 STDMETHOD(SetPlayerName) (THIS_ DPID,LPDPNAME,DWORD) PURE;
500 STDMETHOD(SetSessionDesc) (THIS_ LPDPSESSIONDESC2,DWORD) PURE;
502 /*** IDirectPlay3 methods ***/
503 STDMETHOD(AddGroupToGroup) (THIS_ DPID, DPID) PURE;
504 STDMETHOD(CreateGroupInGroup) (THIS_ DPID,LPDPID,LPDPNAME,LPVOID,DWORD,DWORD) PURE;
505 STDMETHOD(DeleteGroupFromGroup) (THIS_ DPID,DPID) PURE;
506 STDMETHOD(EnumConnections) (THIS_ LPCGUID,LPDPENUMCONNECTIONSCALLBACK,LPVOID,DWORD) PURE;
507 STDMETHOD(EnumGroupsInGroup) (THIS_ DPID,LPGUID,LPDPENUMPLAYERSCALLBACK2,LPVOID,DWORD) PURE;
508 STDMETHOD(GetGroupConnectionSettings) (THIS_ DWORD, DPID, LPVOID, LPDWORD) PURE;
509 STDMETHOD(InitializeConnection) (THIS_ LPVOID,DWORD) PURE;
510 STDMETHOD(SecureOpen) (THIS_ LPCDPSESSIONDESC2,DWORD,LPCDPSECURITYDESC,LPCDPCREDENTIALS) PURE;
511 STDMETHOD(SendChatMessage) (THIS_ DPID,DPID,DWORD,LPDPCHAT);
512 STDMETHOD(SetGroupConnectionSettings) (THIS_ DWORD,DPID,LPDPLCONNECTION) PURE;
513 STDMETHOD(StartSession) (THIS_ DWORD,DPID);
514 STDMETHOD(GetGroupFlags) (THIS_ DPID,LPDWORD);
515 STDMETHOD(GetGroupParent) (THIS_ DPID,LPDPID);
516 STDMETHOD(GetPlayerAccount) (THIS_ DPID, DWORD, LPVOID, LPDWORD) PURE;
517 STDMETHOD(GetPlayerFlags) (THIS_ DPID,LPDWORD);
518 } DIRECTPLAY3_VTABLE, *LPDIRECTPLAY3_VTABLE;
519 #undef THIS
522 /**********************************************************************************
524 * Macros for a nicer interface to DirectPlay
526 **********************************************************************************/
528 /* COM Interface */
529 #define IDirectPlay_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
530 #define IDirectPlay_AddRef(p) (p)->lpVtbl->AddRef(p)
531 #define IDirectPlay_Release(p) (p)->lpVtbl->Release(p)
533 #define IDirectPlay2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
534 #define IDirectPlay2_AddRef(p) (p)->lpVtbl->AddRef(p)
535 #define IDirectPlay2_Release(p) (p)->lpVtbl->Release(p)
537 #define IDirectPlay3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
538 #define IDirectPlay3_AddRef(p) (p)->lpVtbl->AddRef(p)
539 #define IDirectPlay3_Release(p) (p)->lpVtbl->Release(p)
541 /* Direct Play 1&2 Interface */
542 #define IDirectPlay_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
543 #define IDirectPlay_Close(p) (p)->lpVtbl->Close(p)
544 #define IDirectPlay_CreateGroup(p,a,b,c) (p)->lpVtbl->CreateGroup(p,a,b,c)
545 #define IDirectPlay_CreatePlayer(p,a,b,c,d) (p)->lpVtbl->CreatePlayer(p,a,b,c,d)
546 #define IDirectPlay_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
547 #define IDirectPlay_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
548 #define IDirectPlay_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
549 #define IDirectPlay_EnableNewPlayers(p,a) (p)->lpVtbl->EnableNewPlayers(p,a)
550 #define IDirectPlay_EnumGroupPlayers(p,a,b,c,d) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d)
551 #define IDirectPlay_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
552 #define IDirectPlay_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
553 #define IDirectPlay_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
554 #define IDirectPlay_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
555 #define IDirectPlay_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b)
556 #define IDirectPlay_GetPlayerCaps(p,a,b) (p)->lpVtbl->GetPlayerCaps(p,a,b)
557 #define IDirectPlay_GetPlayerName(p,a,b,c,d,e) (p)->lpVtbl->GetPlayerName(p,a,b,c,d,e)
558 #define IDirectPlay_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
559 #define IDirectPlay_Open(p,a) (p)->lpVtbl->Open(p,a)
560 #define IDirectPlay_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
561 #define IDirectPlay_SaveSession(p,a) (p)->lpVtbl->SaveSession(p,a)
562 #define IDirectPlay_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
563 #define IDirectPlay_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
565 #define IDirectPlay2_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
566 #define IDirectPlay2_Close(p) (p)->lpVtbl->Close(p)
567 #define IDirectPlay2_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e)
568 #define IDirectPlay2_CreatePlayer(p,a,b,c,d,e,f) (p)->lpVtbl->CreatePlayer(p,a,b,c,d,e,f)
569 #define IDirectPlay2_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
570 #define IDirectPlay2_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
571 #define IDirectPlay2_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
572 #define IDirectPlay2_EnumGroupPlayers(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d,e)
573 #define IDirectPlay2_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
574 #define IDirectPlay2_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
575 #define IDirectPlay2_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
576 #define IDirectPlay2_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
577 #define IDirectPlay2_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(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_GetPlayerAddress(p,a,b,c) (p)->lpVtbl->GetPlayerAddress(p,a,b,c)
581 #define IDirectPlay2_GetPlayerCaps(p,a,b,c) (p)->lpVtbl->GetPlayerCaps(p,a,b,c)
582 #define IDirectPlay2_GetPlayerData(p,a,b,c,d) (p)->lpVtbl->GetPlayerData(p,a,b,c,d)
583 #define IDirectPlay2_GetPlayerName(p,a,b,c) (p)->lpVtbl->GetPlayerName(p,a,b,c)
584 #define IDirectPlay2_GetSessionDesc(p,a,b) (p)->lpVtbl->GetSessionDesc(p,a,b)
585 #define IDirectPlay2_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
586 #define IDirectPlay2_Open(p,a,b) (p)->lpVtbl->Open(p,a,b)
587 #define IDirectPlay2_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
588 #define IDirectPlay2_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
589 #define IDirectPlay2_SetGroupData(p,a,b,c,d) (p)->lpVtbl->SetGroupData(p,a,b,c,d)
590 #define IDirectPlay2_SetGroupName(p,a,b,c) (p)->lpVtbl->SetGroupName(p,a,b,c)
591 #define IDirectPlay2_SetPlayerData(p,a,b,c,d) (p)->lpVtbl->SetPlayerData(p,a,b,c,d)
592 #define IDirectPlay2_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
593 #define IDirectPlay2_SetSessionDesc(p,a,b) (p)->lpVtbl->SetSessionDesc(p,a,b)
595 #define IDirectPlay3_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
596 #define IDirectPlay3_Close(p) (p)->lpVtbl->Close(p)
597 #define IDirectPlay3_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e)
598 #define IDirectPlay3_CreatePlayer(p,a,b,c,d,e,f) (p)->lpVtbl->CreatePlayer(p,a,b,c,d,e,f)
599 #define IDirectPlay3_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
600 #define IDirectPlay3_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
601 #define IDirectPlay3_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
602 #define IDirectPlay3_EnumGroupPlayers(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d,e)
603 #define IDirectPlay3_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
604 #define IDirectPlay3_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
605 #define IDirectPlay3_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
606 #define IDirectPlay3_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
607 #define IDirectPlay3_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b)
608 #define IDirectPlay3_GetGroupData(p,a,b,c,d) (p)->lpVtbl->GetGroupData(p,a,b,c,d)
609 #define IDirectPlay3_GetGroupName(p,a,b,c) (p)->lpVtbl->GetGroupName(p,a,b,c)
610 #define IDirectPlay3_GetPlayerAddress(p,a,b,c) (p)->lpVtbl->GetPlayerAddress(p,a,b,c)
611 #define IDirectPlay3_GetPlayerCaps(p,a,b,c) (p)->lpVtbl->GetPlayerCaps(p,a,b,c)
612 #define IDirectPlay3_GetPlayerData(p,a,b,c,d) (p)->lpVtbl->GetPlayerData(p,a,b,c,d)
613 #define IDirectPlay3_GetPlayerName(p,a,b,c) (p)->lpVtbl->GetPlayerName(p,a,b,c)
614 #define IDirectPlay3_GetSessionDesc(p,a,b) (p)->lpVtbl->GetSessionDesc(p,a,b)
615 #define IDirectPlay3_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
616 #define IDirectPlay3_Open(p,a,b) (p)->lpVtbl->Open(p,a,b)
617 #define IDirectPlay3_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
618 #define IDirectPlay3_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
619 #define IDirectPlay3_SetGroupData(p,a,b,c,d) (p)->lpVtbl->SetGroupData(p,a,b,c,d)
620 #define IDirectPlay3_SetGroupName(p,a,b,c) (p)->lpVtbl->SetGroupName(p,a,b,c)
621 #define IDirectPlay3_SetPlayerData(p,a,b,c,d) (p)->lpVtbl->SetPlayerData(p,a,b,c,d)
622 #define IDirectPlay3_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
623 #define IDirectPlay3_SetSessionDesc(p,a,b) (p)->lpVtbl->SetSessionDesc(p,a,b)
626 /* Direct Play 3 Interface. */
628 #define IDirectPlay3_AddGroupToGroup(p,a,b) (p)->lpVtbl->AddGroupToGroup(p,a,b)
629 #define IDirectPlay3_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->lpVtbl->CreateGroupInGroup(p,a,b,c,d,e,f)
630 #define IDirectPlay3_DeleteGroupFromGroup(p,a,b) (p)->lpVtbl->DeleteGroupFromGroup(p,a,b)
631 #define IDirectPlay3_EnumConnections(p,a,b,c,d) (p)->lpVtbl->EnumConnections(p,a,b,c,d)
632 #define IDirectPlay3_EnumGroupsInGroup(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupsInGroup(p,a,b,c,d,e)
633 #define IDirectPlay3_GetGroupConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetGroupConnectionSettings(p,a,b,c,d)
634 #define IDirectPlay3_InitializeConnection(p,a,b) (p)->lpVtbl->InitializeConnection(p,a,b)
635 #define IDirectPlay3_SecureOpen(p,a,b,c,d) (p)->lpVtbl->SecureOpen(p,a,b,c,d)
636 #define IDirectPlay3_SendChatMessage(p,a,b,c,d) (p)->lpVtbl->SendChatMessage(p,a,b,c,d)
637 #define IDirectPlay3_SetGroupConnectionSettings(p,a,b,c) (p)->lpVtbl->SetGroupConnectionSettings(p,a,b,c)
638 #define IDirectPlay3_StartSession(p,a,b) (p)->lpVtbl->StartSession(p,a,b)
639 #define IDirectPlay3_GetGroupFlags(p,a,b) (p)->lpVtbl->GetGroupFlags(p,a,b)
640 #define IDirectPlay3_GetGroupParent(p,a,b) (p)->lpVtbl->GetGroupParent(p,a,b)
641 #define IDirectPlay3_GetPlayerAccount(p,a,b,c,d) (p)->lpVtbl->GetPlayerAccount(p,a,b,c,d)
642 #define IDirectPlay3_GetPlayerFlags(p,a,b) (p)->lpVtbl->GetPlayerFlags(p,a,b)
645 /****************************************************************************
647 * DIRECT PLAY LOBBY VIRTUAL TABLE DEFINITIONS
649 ****************************************************************************/
652 #define THIS LPDIRECTPLAYLOBBY this
653 typedef struct tagLPDIRECTPLAYLOBBY_VTABLE
655 /* IUnknown Methods "Inherited Methods" */
656 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
657 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
658 STDMETHOD_(ULONG,Release) (THIS) PURE;
660 /* IDirectPlayLobby Methods */
661 STDMETHOD(Connect) (THIS_ DWORD, LPDIRECTPLAY *, IUnknown *) PURE;
662 STDMETHOD(CreateAddress) (THIS_ REFGUID, REFGUID, LPCVOID, DWORD, LPVOID, LPDWORD) PURE;
663 STDMETHOD(EnumAddress) (THIS_ LPDPENUMADDRESSCALLBACK, LPCVOID, DWORD, LPVOID) PURE;
664 STDMETHOD(EnumAddressTypes) (THIS_ LPDPLENUMADDRESSTYPESCALLBACK, REFGUID, LPVOID, DWORD) PURE;
665 STDMETHOD(EnumLocalApplications)(THIS_ LPDPLENUMLOCALAPPLICATIONSCALLBACK, LPVOID, DWORD) PURE;
666 STDMETHOD(GetConnectionSettings)(THIS_ DWORD, LPVOID, LPDWORD) PURE;
667 STDMETHOD(ReceiveLobbyMessage) (THIS_ DWORD, DWORD, LPDWORD, LPVOID, LPDWORD) PURE;
668 STDMETHOD(RunApplication) (THIS_ DWORD, LPDWORD, LPDPLCONNECTION, HANDLE32) PURE;
669 STDMETHOD(SendLobbyMessage) (THIS_ DWORD, DWORD, LPVOID, DWORD) PURE;
670 STDMETHOD(SetConnectionSettings)(THIS_ DWORD, DWORD, LPDPLCONNECTION) PURE;
671 STDMETHOD(SetLobbyMessageEvent) (THIS_ DWORD, DWORD, HANDLE32) PURE;
674 } DIRECTPLAYLOBBY_VTABLE, *LPDIRECTPLAYLOBBY_VTABLE;
675 #undef THIS
677 #define THIS LPDIRECTPLAYLOBBY2 this
678 typedef struct tagLPDIRECTPLAYLOBBY2_VTABLE
680 /* IUnknown Methods "Inherited Methods" */
681 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
682 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
683 STDMETHOD_(ULONG,Release) (THIS) PURE;
685 /* IDirectPlayLobby Methods */
686 STDMETHOD(Connect) (THIS_ DWORD, LPDIRECTPLAY2 *, IUnknown *) PURE;
687 STDMETHOD(CreateAddress) (THIS_ REFGUID, REFGUID, LPCVOID, DWORD, LPVOID, LPDWORD) PURE;
688 STDMETHOD(EnumAddress) (THIS_ LPDPENUMADDRESSCALLBACK, LPCVOID, DWORD, LPVOID) PURE;
689 STDMETHOD(EnumAddressTypes) (THIS_ LPDPLENUMADDRESSTYPESCALLBACK, REFGUID, LPVOID, DWORD) PURE;
690 STDMETHOD(EnumLocalApplications)(THIS_ LPDPLENUMLOCALAPPLICATIONSCALLBACK, LPVOID, DWORD) PURE;
691 STDMETHOD(GetConnectionSettings)(THIS_ DWORD, LPVOID, LPDWORD) PURE;
692 STDMETHOD(ReceiveLobbyMessage) (THIS_ DWORD, DWORD, LPDWORD, LPVOID, LPDWORD) PURE;
693 STDMETHOD(RunApplication) (THIS_ DWORD, LPDWORD, LPDPLCONNECTION, HANDLE32) PURE;
694 STDMETHOD(SendLobbyMessage) (THIS_ DWORD, DWORD, LPVOID, DWORD) PURE;
695 STDMETHOD(SetConnectionSettings)(THIS_ DWORD, DWORD, LPDPLCONNECTION) PURE;
696 STDMETHOD(SetLobbyMessageEvent) (THIS_ DWORD, DWORD, HANDLE32) PURE;
698 /* IDirectPlayLobby2 Methods */
699 STDMETHOD(CreateCompoundAddress)(THIS_ LPCDPCOMPOUNDADDRESSELEMENT, DWORD, LPVOID, LPDWORD) PURE;
701 } DIRECTPLAYLOBBY2_VTABLE, *LPDIRECTPLAYLOBBY2_VTABLE;
702 #undef THIS
704 /**********************************************************************************
706 * Macros for a nicer interface to DirectPlayLobby
708 **********************************************************************************/
710 /* COM Interface */
712 #define IDirectPlayLobby_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
713 #define IDirectPlayLobby_AddRef(p) (p)->lpVtbl->AddRef(p)
714 #define IDirectPlayLobby_Release(p) (p)->lpVtbl->Release(p)
716 #define IDirectPlayLobby2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
717 #define IDirectPlayLobby2_AddRef(p) (p)->lpVtbl->AddRef(p)
718 #define IDirectPlayLobby2_Release(p) (p)->lpVtbl->Release(p)
720 /* Direct Play Lobby 1 */
722 #define IDirectPlayLobby_Connect(p,a,b,c) (p)->lpVtbl->Connect(p,a,b,c)
723 #define IDirectPlayLobby_CreateAddress(p,a,b,c,d,e,f) (p)->lpVtbl->CreateAddress(p,a,b,c,d,e,f)
724 #define IDirectPlayLobby_EnumAddress(p,a,b,c,d) (p)->lpVtbl->EnumAddress(p,a,b,c,d)
725 #define IDirectPlayLobby_EnumAddressTypes(p,a,b,c,d) (p)->lpVtbl->EnumAddressTypes(p,a,b,c,d)
726 #define IDirectPlayLobby_EnumLocalApplications(p,a,b,c) (p)->lpVtbl->EnumLocalApplications(p,a,b,c)
727 #define IDirectPlayLobby_GetConnectionSettings(p,a,b,c) (p)->lpVtbl->GetConnectionSettings(p,a,b,c)
728 #define IDirectPlayLobby_ReceiveLobbyMessage(p,a,b,c,d,e) (p)->lpVtbl->ReceiveLobbyMessage(p,a,b,c,d,e)
729 #define IDirectPlayLobby_RunApplication(p,a,b,c,d) (p)->lpVtbl->RunApplication(p,a,b,c,d)
730 #define IDirectPlayLobby_SendLobbyMessage(p,a,b,c,d) (p)->lpVtbl->SendLobbyMessage(p,a,b,c,d)
731 #define IDirectPlayLobby_SetConnectionSettings(p,a,b,c) (p)->lpVtbl->SetConnectionSettings(p,a,b,c)
732 #define IDirectPlayLobby_SetLobbyMessageEvent(p,a,b,c) (p)->lpVtbl->SetLobbyMessageEvent(p,a,b,c)
734 #define IDirectPlayLobby2_Connect(p,a,b,c) (p)->lpVtbl->Connect(p,a,b,c)
735 #define IDirectPlayLobby2_CreateAddress(p,a,b,c,d,e,f) (p)->lpVtbl->CreateAddress(p,a,b,c,d,e,f)
736 #define IDirectPlayLobby2_EnumAddress(p,a,b,c,d) (p)->lpVtbl->EnumAddress(p,a,b,c,d)
737 #define IDirectPlayLobby2_EnumAddressTypes(p,a,b,c,d) (p)->lpVtbl->EnumAddressTypes(p,a,b,c,d)
738 #define IDirectPlayLobby2_EnumLocalApplications(p,a,b,c) (p)->lpVtbl->EnumLocalApplications(p,a,b,c)
739 #define IDirectPlayLobby2_GetConnectionSettings(p,a,b,c) (p)->lpVtbl->GetConnectionSettings(p,a,b,c)
740 #define IDirectPlayLobby2_ReceiveLobbyMessage(p,a,b,c,d,e) (p)->lpVtbl->ReceiveLobbyMessage(p,a,b,c,d,e)
741 #define IDirectPlayLobby2_RunApplication(p,a,b,c,d) (p)->lpVtbl->RunApplication(p,a,b,c,d)
742 #define IDirectPlayLobby2_SendLobbyMessage(p,a,b,c,d) (p)->lpVtbl->SendLobbyMessage(p,a,b,c,d)
743 #define IDirectPlayLobby2_SetConnectionSettings(p,a,b,c) (p)->lpVtbl->SetConnectionSettings(p,a,b,c)
744 #define IDirectPlayLobby2_SetLobbyMessageEvent(p,a,b,c) (p)->lpVtbl->SetLobbyMessageEvent(p,a,b,c)
747 /* Direct Play Lobby 2 */
749 #define IDirectPlayLobby2_CreateCompoundAddress(p,a,b,c,d) (p)->lpVtbl->CreateCompoundAddress(p,a,b,c,d)
751 #pragma pack(4)
753 #undef STDMETHOD
754 #undef STDMETHOD_
755 #undef PURE
756 #undef FAR
757 #undef THIS_
759 #endif