2 * Copyright (C) 2003 Raphael Junqueira
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_DPLAY8_H
20 #define __WINE_DPLAY8_H
27 #endif /* defined(__cplusplus) */
30 typedef HRESULT (WINAPI
*PFNDPNMESSAGEHANDLER
)(PVOID
, DWORD
, PVOID
);
31 typedef DWORD DPNID
, *PDPNID
;
32 typedef DWORD DPNHANDLE
, *PDPNHANDLE
;
34 /*****************************************************************************
35 * DirectPlay8 Message Id
37 #define DPN_MSGID_OFFSET 0xFFFF0000
38 #define DPN_MSGID_ADD_PLAYER_TO_GROUP (DPN_MSGID_OFFSET | 0x0001)
39 #define DPN_MSGID_APPLICATION_DESC (DPN_MSGID_OFFSET | 0x0002)
40 #define DPN_MSGID_ASYNC_OP_COMPLETE (DPN_MSGID_OFFSET | 0x0003)
41 #define DPN_MSGID_CLIENT_INFO (DPN_MSGID_OFFSET | 0x0004)
42 #define DPN_MSGID_CONNECT_COMPLETE (DPN_MSGID_OFFSET | 0x0005)
43 #define DPN_MSGID_CREATE_GROUP (DPN_MSGID_OFFSET | 0x0006)
44 #define DPN_MSGID_CREATE_PLAYER (DPN_MSGID_OFFSET | 0x0007)
45 #define DPN_MSGID_DESTROY_GROUP (DPN_MSGID_OFFSET | 0x0008)
46 #define DPN_MSGID_DESTROY_PLAYER (DPN_MSGID_OFFSET | 0x0009)
47 #define DPN_MSGID_ENUM_HOSTS_QUERY (DPN_MSGID_OFFSET | 0x000A)
48 #define DPN_MSGID_ENUM_HOSTS_RESPONSE (DPN_MSGID_OFFSET | 0x000B)
49 #define DPN_MSGID_GROUP_INFO (DPN_MSGID_OFFSET | 0x000C)
50 #define DPN_MSGID_HOST_MIGRATE (DPN_MSGID_OFFSET | 0x000D)
51 #define DPN_MSGID_INDICATE_CONNECT (DPN_MSGID_OFFSET | 0x000E)
52 #define DPN_MSGID_INDICATED_CONNECT_ABORTED (DPN_MSGID_OFFSET | 0x000F)
53 #define DPN_MSGID_PEER_INFO (DPN_MSGID_OFFSET | 0x0010)
54 #define DPN_MSGID_RECEIVE (DPN_MSGID_OFFSET | 0x0011)
55 #define DPN_MSGID_REMOVE_PLAYER_FROM_GROUP (DPN_MSGID_OFFSET | 0x0012)
56 #define DPN_MSGID_RETURN_BUFFER (DPN_MSGID_OFFSET | 0x0013)
57 #define DPN_MSGID_SEND_COMPLETE (DPN_MSGID_OFFSET | 0x0014)
58 #define DPN_MSGID_SERVER_INFO (DPN_MSGID_OFFSET | 0x0015)
59 #define DPN_MSGID_TERMINATE_SESSION (DPN_MSGID_OFFSET | 0x0016)
61 /*****************************************************************************
64 #define _DPN_FACILITY_CODE 0x015
65 #define _DPNHRESULT_BASE 0x8000
66 #define MAKE_DPNHRESULT(code) MAKE_HRESULT(1, _DPN_FACILITY_CODE, (code + _DPNHRESULT_BASE))
68 #define DPNSUCCESS_EQUAL MAKE_HRESULT(0, _DPN_FACILITY_CODE, (0x05 + _DPNHRESULT_BASE))
69 #define DPNSUCCESS_NOTEQUAL MAKE_HRESULT(0, _DPN_FACILITY_CODE, (0x0A + _DPNHRESULT_BASE))
70 #define DPNSUCCESS_PENDING MAKE_HRESULT(0, _DPN_FACILITY_CODE, (0x0E + _DPNHRESULT_BASE))
73 #define DPNERR_GENERIC E_FAIL
74 #define DPNERR_INVALIDPARAM E_INVALIDARG
75 #define DPNERR_UNSUPPORTED E_NOTIMPL
76 #define DPNERR_NOINTERFACE E_NOINTERFACE
77 #define DPNERR_OUTOFMEMORY E_OUTOFMEMORY
78 #define DPNERR_INVALIDPOINTER E_POINTER
79 #define DPNERR_PENDING DPNSUCCESS_PENDING
80 #define DPNERR_ABORTED MAKE_DPNHRESULT(0x030)
81 #define DPNERR_ADDRESSING MAKE_DPNHRESULT(0x040)
82 #define DPNERR_ALREADYCLOSING MAKE_DPNHRESULT(0x050)
83 #define DPNERR_ALREADYCONNECTED MAKE_DPNHRESULT(0x060)
84 #define DPNERR_ALREADYDISCONNECTING MAKE_DPNHRESULT(0x070)
85 #define DPNERR_ALREADYINITIALIZED MAKE_DPNHRESULT(0x080)
86 #define DPNERR_ALREADYREGISTERED MAKE_DPNHRESULT(0x090)
87 #define DPNERR_BUFFERTOOSMALL MAKE_DPNHRESULT(0x100)
88 #define DPNERR_CANNOTCANCEL MAKE_DPNHRESULT(0x110)
89 #define DPNERR_CANTCREATEGROUP MAKE_DPNHRESULT(0x120)
90 #define DPNERR_CANTCREATEPLAYER MAKE_DPNHRESULT(0x130)
91 #define DPNERR_CANTLAUNCHAPPLICATION MAKE_DPNHRESULT(0x140)
92 #define DPNERR_CONNECTING MAKE_DPNHRESULT(0x150)
93 #define DPNERR_CONNECTIONLOST MAKE_DPNHRESULT(0x160)
94 #define DPNERR_CONVERSION MAKE_DPNHRESULT(0x170)
95 #define DPNERR_DATATOOLARGE MAKE_DPNHRESULT(0x175)
96 #define DPNERR_DOESNOTEXIST MAKE_DPNHRESULT(0x180)
97 #define DPNERR_DPNSVRNOTAVAILABLE MAKE_DPNHRESULT(0x185)
98 #define DPNERR_DUPLICATECOMMAND MAKE_DPNHRESULT(0x190)
99 #define DPNERR_ENDPOINTNOTRECEIVING MAKE_DPNHRESULT(0x200)
100 #define DPNERR_ENUMQUERYTOOLARGE MAKE_DPNHRESULT(0x210)
101 #define DPNERR_ENUMRESPONSETOOLARGE MAKE_DPNHRESULT(0x220)
102 #define DPNERR_EXCEPTION MAKE_DPNHRESULT(0x230)
103 #define DPNERR_GROUPNOTEMPTY MAKE_DPNHRESULT(0x240)
104 #define DPNERR_HOSTING MAKE_DPNHRESULT(0x250)
105 #define DPNERR_HOSTREJECTEDCONNECTION MAKE_DPNHRESULT(0x260)
106 #define DPNERR_HOSTTERMINATEDSESSION MAKE_DPNHRESULT(0x270)
107 #define DPNERR_INCOMPLETEADDRESS MAKE_DPNHRESULT(0x280)
108 #define DPNERR_INVALIDADDRESSFORMAT MAKE_DPNHRESULT(0x290)
109 #define DPNERR_INVALIDAPPLICATION MAKE_DPNHRESULT(0x300)
110 #define DPNERR_INVALIDCOMMAND MAKE_DPNHRESULT(0x310)
111 #define DPNERR_INVALIDDEVICEADDRESS MAKE_DPNHRESULT(0x320)
112 #define DPNERR_INVALIDENDPOINT MAKE_DPNHRESULT(0x330)
113 #define DPNERR_INVALIDFLAGS MAKE_DPNHRESULT(0x340)
114 #define DPNERR_INVALIDGROUP MAKE_DPNHRESULT(0x350)
115 #define DPNERR_INVALIDHANDLE MAKE_DPNHRESULT(0x360)
116 #define DPNERR_INVALIDHOSTADDRESS MAKE_DPNHRESULT(0x370)
117 #define DPNERR_INVALIDINSTANCE MAKE_DPNHRESULT(0x380)
118 #define DPNERR_INVALIDINTERFACE MAKE_DPNHRESULT(0x390)
119 #define DPNERR_INVALIDOBJECT MAKE_DPNHRESULT(0x400)
120 #define DPNERR_INVALIDPASSWORD MAKE_DPNHRESULT(0x410)
121 #define DPNERR_INVALIDPLAYER MAKE_DPNHRESULT(0x420)
122 #define DPNERR_INVALIDPRIORITY MAKE_DPNHRESULT(0x430)
123 #define DPNERR_INVALIDSTRING MAKE_DPNHRESULT(0x440)
124 #define DPNERR_INVALIDURL MAKE_DPNHRESULT(0x450)
125 #define DPNERR_INVALIDVERSION MAKE_DPNHRESULT(0x460)
126 #define DPNERR_NOCAPS MAKE_DPNHRESULT(0x470)
127 #define DPNERR_NOCONNECTION MAKE_DPNHRESULT(0x480)
128 #define DPNERR_NOHOSTPLAYER MAKE_DPNHRESULT(0x490)
129 #define DPNERR_NOMOREADDRESSCOMPONENTS MAKE_DPNHRESULT(0x500)
130 #define DPNERR_NORESPONSE MAKE_DPNHRESULT(0x510)
131 #define DPNERR_NOTALLOWED MAKE_DPNHRESULT(0x520)
132 #define DPNERR_NOTHOST MAKE_DPNHRESULT(0x530)
133 #define DPNERR_NOTREADY MAKE_DPNHRESULT(0x540)
134 #define DPNERR_NOTREGISTERED MAKE_DPNHRESULT(0x550)
135 #define DPNERR_PLAYERALREADYINGROUP MAKE_DPNHRESULT(0x560)
136 #define DPNERR_PLAYERLOST MAKE_DPNHRESULT(0x570)
137 #define DPNERR_PLAYERNOTINGROUP MAKE_DPNHRESULT(0x580)
138 #define DPNERR_PLAYERNOTREACHABLE MAKE_DPNHRESULT(0x590)
139 #define DPNERR_SENDTOOLARGE MAKE_DPNHRESULT(0x600)
140 #define DPNERR_SESSIONFULL MAKE_DPNHRESULT(0x610)
141 #define DPNERR_TABLEFULL MAKE_DPNHRESULT(0x620)
142 #define DPNERR_TIMEDOUT MAKE_DPNHRESULT(0x630)
143 #define DPNERR_UNINITIALIZED MAKE_DPNHRESULT(0x640)
144 #define DPNERR_USERCANCEL MAKE_DPNHRESULT(0x650)
146 /*****************************************************************************
147 * DirectPlay8 defines
149 #define DPNOP_SYNC 0x80000000
150 #define DPNADDPLAYERTOGROUP_SYNC DPNOP_SYNC
151 #define DPNCANCEL_CONNECT 0x0001
152 #define DPNCANCEL_ENUM 0x0002
153 #define DPNCANCEL_SEND 0x0004
154 #define DPNCANCEL_ALL_OPERATIONS 0x8000
155 #define DPNCONNECT_SYNC DPNOP_SYNC
156 #define DPNCONNECT_OKTOQUERYFORADDRESSING 0x0001
157 #define DPNCREATEGROUP_SYNC DPNOP_SYNC
158 #define DPNDESTROYGROUP_SYNC DPNOP_SYNC
159 #define DPNENUM_PLAYERS 0x0001
160 #define DPNENUM_GROUPS 0x0010
161 #define DPNENUMHOSTS_SYNC DPNOP_SYNC
162 #define DPNENUMHOSTS_OKTOQUERYFORADDRESSING 0x0001
163 #define DPNENUMHOSTS_NOBROADCASTFALLBACK 0x0002
164 #define DPNENUMSERVICEPROVIDERS_ALL 0x0001
165 #define DPNGETSENDQUEUEINFO_PRIORITY_NORMAL 0x0001
166 #define DPNGETSENDQUEUEINFO_PRIORITY_HIGH 0x0002
167 #define DPNGETSENDQUEUEINFO_PRIORITY_LOW 0x0004
168 #define DPNGROUP_AUTODESTRUCT 0x0001
169 #define DPNHOST_OKTOQUERYFORADDRESSING 0x0001
170 #define DPNINFO_NAME 0x0001
171 #define DPNINFO_DATA 0x0002
172 #define DPNINITIALIZE_DISABLEPARAMVAL 0x0001
173 #define DPNLOBBY_REGISTER 0x0001
174 #define DPNLOBBY_UNREGISTER 0x0002
175 #define DPNPLAYER_LOCAL 0x0002
176 #define DPNPLAYER_HOST 0x0004
177 #define DPNREMOVEPLAYERFROMGROUP_SYNC DPNOP_SYNC
178 #define DPNSEND_SYNC DPNOP_SYNC
179 #define DPNSEND_NOCOPY 0x0001
180 #define DPNSEND_NOCOMPLETE 0x0002
181 #define DPNSEND_COMPLETEONPROCESS 0x0004
182 #define DPNSEND_GUARANTEED 0x0008
183 #define DPNSEND_NONSEQUENTIAL 0x0010
184 #define DPNSEND_NOLOOPBACK 0x0020
185 #define DPNSEND_PRIORITY_LOW 0x0040
186 #define DPNSEND_PRIORITY_HIGH 0x0080
187 #define DPNSESSION_CLIENT_SERVER 0x0001
188 #define DPNSESSION_MIGRATE_HOST 0x0004
189 #define DPNSESSION_NODPNSVR 0x0040
190 #define DPNSESSION_REQUIREPASSWORD 0x0080
191 #define DPNSETCLIENTINFO_SYNC DPNOP_SYNC
192 #define DPNSETGROUPINFO_SYNC DPNOP_SYNC
193 #define DPNSETPEERINFO_SYNC DPNOP_SYNC
194 #define DPNSETSERVERINFO_SYNC DPNOP_SYNC
195 #define DPNSPCAPS_SUPPORTSDPNSRV 0x0001
196 #define DPNSPCAPS_SUPPORTSBROADCAST 0x0002
197 #define DPNSPCAPS_SUPPORTSALLADAPTERS 0x0004
200 /*****************************************************************************
201 * DirectPlay8 structures Typedefs
203 typedef struct _DPN_APPLICATION_DESC
{
207 GUID guidApplication
;
209 DWORD dwCurrentPlayers
;
210 WCHAR
* pwszSessionName
;
212 PVOID pvReservedData
;
213 DWORD dwReservedDataSize
;
214 PVOID pvApplicationReservedData
;
215 DWORD dwApplicationReservedDataSize
;
216 } DPN_APPLICATION_DESC
, *PDPN_APPLICATION_DESC
;
218 typedef struct _BUFFERDESC
{
221 } BUFFERDESC
, DPN_BUFFER_DESC
, *PDPN_BUFFER_DESC
, *PBUFFERDESC
;
223 typedef struct _DPN_CAPS
{
226 DWORD dwConnectTimeout
;
227 DWORD dwConnectRetries
;
228 DWORD dwTimeoutUntilKeepAlive
;
229 } DPN_CAPS
, *PDPN_CAPS
;
231 typedef struct _DPN_CONNECTION_INFO
{
233 DWORD dwRoundTripLatencyMS
;
234 DWORD dwThroughputBPS
;
235 DWORD dwPeakThroughputBPS
;
236 DWORD dwBytesSentGuaranteed
;
237 DWORD dwPacketsSentGuaranteed
;
238 DWORD dwBytesSentNonGuaranteed
;
239 DWORD dwPacketsSentNonGuaranteed
;
240 DWORD dwBytesRetried
;
241 DWORD dwPacketsRetried
;
242 DWORD dwBytesDropped
;
243 DWORD dwPacketsDropped
;
244 DWORD dwMessagesTransmittedHighPriority
;
245 DWORD dwMessagesTimedOutHighPriority
;
246 DWORD dwMessagesTransmittedNormalPriority
;
247 DWORD dwMessagesTimedOutNormalPriority
;
248 DWORD dwMessagesTransmittedLowPriority
;
249 DWORD dwMessagesTimedOutLowPriority
;
250 DWORD dwBytesReceivedGuaranteed
;
251 DWORD dwPacketsReceivedGuaranteed
;
252 DWORD dwBytesReceivedNonGuaranteed
;
253 DWORD dwPacketsReceivedNonGuaranteed
;
254 DWORD dwMessagesReceived
;
255 } DPN_CONNECTION_INFO
, *PDPN_CONNECTION_INFO
;
257 typedef struct _DPN_GROUP_INFO
{
264 } DPN_GROUP_INFO
, *PDPN_GROUP_INFO
;
266 typedef struct _DPN_PLAYER_INFO
{
273 } DPN_PLAYER_INFO
, *PDPN_PLAYER_INFO
;
275 typedef struct _DPN_SERVICE_PROVIDER_INFO
{
281 } DPN_SERVICE_PROVIDER_INFO
, *PDPN_SERVICE_PROVIDER_INFO
;
283 typedef struct _DPN_SP_CAPS
{
287 DWORD dwDefaultEnumCount
;
288 DWORD dwDefaultEnumRetryInterval
;
289 DWORD dwDefaultEnumTimeout
;
290 DWORD dwMaxEnumPayloadSize
;
291 DWORD dwBuffersPerThread
;
292 DWORD dwSystemBufferSize
;
293 } DPN_SP_CAPS
, *PDPN_SP_CAPS
;
295 typedef struct _DPN_SECURITY_CREDENTIALS DPN_SECURITY_CREDENTIALS
, *PDPN_SECURITY_CREDENTIALS
;
296 typedef struct _DPN_SECURITY_DESC DPN_SECURITY_DESC
, *PDPN_SECURITY_DESC
;
298 typedef struct _DPNMSG_ADD_PLAYER_TO_GROUP
{
301 PVOID pvGroupContext
;
303 PVOID pvPlayerContext
;
304 } DPNMSG_ADD_PLAYER_TO_GROUP
, *PDPNMSG_ADD_PLAYER_TO_GROUP
;
306 typedef struct _DPNMSG_ASYNC_OP_COMPLETE
{
311 } DPNMSG_ASYNC_OP_COMPLETE
, *PDPNMSG_ASYNC_OP_COMPLETE
;
313 typedef struct _DPNMSG_CLIENT_INFO
{
316 PVOID pvPlayerContext
;
317 } DPNMSG_CLIENT_INFO
, *PDPNMSG_CLIENT_INFO
;
319 typedef struct _DPNMSG_CONNECT_COMPLETE
{
324 PVOID pvApplicationReplyData
;
325 DWORD dwApplicationReplyDataSize
;
326 } DPNMSG_CONNECT_COMPLETE
, *PDPNMSG_CONNECT_COMPLETE
;
328 typedef struct _DPNMSG_CREATE_GROUP
{
332 PVOID pvGroupContext
;
333 } DPNMSG_CREATE_GROUP
, *PDPNMSG_CREATE_GROUP
;
335 typedef struct _DPNMSG_CREATE_PLAYER
{
338 PVOID pvPlayerContext
;
339 } DPNMSG_CREATE_PLAYER
, *PDPNMSG_CREATE_PLAYER
;
341 typedef struct _DPNMSG_DESTROY_GROUP
{
344 PVOID pvGroupContext
;
346 } DPNMSG_DESTROY_GROUP
, *PDPNMSG_DESTROY_GROUP
;
348 typedef struct _DPNMSG_DESTROY_PLAYER
{
351 PVOID pvPlayerContext
;
353 } DPNMSG_DESTROY_PLAYER
, *PDPNMSG_DESTROY_PLAYER
;
355 typedef struct _DPNMSG_ENUM_HOSTS_QUERY
{
357 IDirectPlay8Address
* pAddressSender
;
358 IDirectPlay8Address
* pAddressDevice
;
359 PVOID pvReceivedData
;
360 DWORD dwReceivedDataSize
;
361 DWORD dwMaxResponseDataSize
;
362 PVOID pvResponseData
;
363 DWORD dwResponseDataSize
;
364 PVOID pvResponseContext
;
365 } DPNMSG_ENUM_HOSTS_QUERY
, *PDPNMSG_ENUM_HOSTS_QUERY
;
367 typedef struct _DPNMSG_ENUM_HOSTS_RESPONSE
{
369 IDirectPlay8Address
* pAddressSender
;
370 IDirectPlay8Address
* pAddressDevice
;
371 const DPN_APPLICATION_DESC
* pApplicationDescription
;
372 PVOID pvResponseData
;
373 DWORD dwResponseDataSize
;
375 DWORD dwRoundTripLatencyMS
;
376 } DPNMSG_ENUM_HOSTS_RESPONSE
, *PDPNMSG_ENUM_HOSTS_RESPONSE
;
378 typedef struct _DPNMSG_GROUP_INFO
{
381 PVOID pvGroupContext
;
382 } DPNMSG_GROUP_INFO
, *PDPNMSG_GROUP_INFO
;
384 typedef struct _DPNMSG_HOST_MIGRATE
{
387 PVOID pvPlayerContext
;
388 } DPNMSG_HOST_MIGRATE
, *PDPNMSG_HOST_MIGRATE
;
390 typedef struct _DPNMSG_INDICATE_CONNECT
{
392 PVOID pvUserConnectData
;
393 DWORD dwUserConnectDataSize
;
395 DWORD dwReplyDataSize
;
396 PVOID pvReplyContext
;
397 PVOID pvPlayerContext
;
398 IDirectPlay8Address
* pAddressPlayer
;
399 IDirectPlay8Address
* pAddressDevice
;
400 } DPNMSG_INDICATE_CONNECT
, *PDPNMSG_INDICATE_CONNECT
;
402 typedef struct _DPNMSG_INDICATED_CONNECT_ABORTED
{
404 PVOID pvPlayerContext
;
405 } DPNMSG_INDICATED_CONNECT_ABORTED
, *PDPNMSG_INDICATED_CONNECT_ABORTED
;
407 typedef struct _DPNMSG_PEER_INFO
{
410 PVOID pvPlayerContext
;
411 } DPNMSG_PEER_INFO
, *PDPNMSG_PEER_INFO
;
413 typedef struct _DPNMSG_RECEIVE
{
416 PVOID pvPlayerContext
;
418 DWORD dwReceiveDataSize
;
419 DPNHANDLE hBufferHandle
;
420 } DPNMSG_RECEIVE
, *PDPNMSG_RECEIVE
;
422 typedef struct _DPNMSG_REMOVE_PLAYER_FROM_GROUP
{
425 PVOID pvGroupContext
;
427 PVOID pvPlayerContext
;
428 } DPNMSG_REMOVE_PLAYER_FROM_GROUP
, *PDPNMSG_REMOVE_PLAYER_FROM_GROUP
;
430 typedef struct _DPNMSG_RETURN_BUFFER
{
435 } DPNMSG_RETURN_BUFFER
, *PDPNMSG_RETURN_BUFFER
;
437 typedef struct _DPNMSG_SEND_COMPLETE
{
443 } DPNMSG_SEND_COMPLETE
, *PDPNMSG_SEND_COMPLETE
;
445 typedef struct _DPNMSG_SERVER_INFO
{
448 PVOID pvPlayerContext
;
449 } DPNMSG_SERVER_INFO
, *PDPNMSG_SERVER_INFO
;
451 typedef struct _DPNMSG_TERMINATE_SESSION
{
454 PVOID pvTerminateData
;
455 DWORD dwTerminateDataSize
;
456 } DPNMSG_TERMINATE_SESSION
, *PDPNMSG_TERMINATE_SESSION
;
459 /*****************************************************************************
460 * Predeclare the interfaces
462 DEFINE_GUID(CLSID_DirectPlay8Peer
, 0x286f484d,0x375e,0x4458,0xa2,0x72,0xb1,0x38,0xe2,0xf8,0xa,0x6a);
463 DEFINE_GUID(CLSID_DirectPlay8Client
, 0x743f1dc6,0x5aba,0x429f,0x8b,0xdf,0xc5,0x4d,0x3,0x25,0x3d,0xc2);
464 DEFINE_GUID(CLSID_DirectPlay8Server
, 0xda825e1b,0x6830,0x43d7,0x83,0x5d,0xb,0x5a,0xd8,0x29,0x56,0xa2);
466 DEFINE_GUID(IID_IDirectPlay8Peer
, 0x5102dacf,0x241b,0x11d3,0xae,0xa7,0x0,0x60,0x97,0xb0,0x14,0x11);
467 typedef struct IDirectPlay8Peer
*PDIRECTPLAY8PEER
;
468 DEFINE_GUID(IID_IDirectPlay8Client
, 0x5102dacd,0x241b,0x11d3,0xae,0xa7,0x0,0x60,0x97,0xb0,0x14,0x11);
469 typedef struct IDirectPlay8Client
*PDIRECTPLAY8CLIENT
;
470 DEFINE_GUID(IID_IDirectPlay8Server
, 0x5102dace,0x241b,0x11d3,0xae,0xa7,0x0,0x60,0x97,0xb0,0x14,0x11);
471 typedef struct IDirectPlay8Server
*PDIRECTPLAY8SERVER
;
473 DEFINE_GUID(CLSID_DP8SP_IPX
, 0x53934290,0x628d,0x11d2,0xae,0xf,0x0,0x60,0x97,0xb0,0x14,0x11);
474 DEFINE_GUID(CLSID_DP8SP_TCPIP
, 0xebfe7ba0,0x628d,0x11d2,0xae,0xf,0x0,0x60,0x97,0xb0,0x14,0x11);
475 DEFINE_GUID(CLSID_DP8SP_SERIAL
, 0x743b5d60,0x628d,0x11d2,0xae,0xf,0x0,0x60,0x97,0xb0,0x14,0x11);
476 DEFINE_GUID(CLSID_DP8SP_MODEM
, 0x6d4a3650,0x628d,0x11d2,0xae,0xf,0x0,0x60,0x97,0xb0,0x14,0x11);
478 typedef struct IDirectPlay8LobbiedApplication
*PIDirectPlay8LobbiedApplication
, DNLOBBIEDAPPLICATION
;
481 /*****************************************************************************
482 * IDirectPlay8Client interface
484 #define INTERFACE IDirectPlay8Client
485 DECLARE_INTERFACE_(IDirectPlay8Client
,IUnknown
)
487 /*** IUnknown methods ***/
488 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
489 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
490 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
491 /*** IDirectPlay8Client methods ***/
492 STDMETHOD(Initialize
)(THIS_ PVOID CONST pvUserContext
, CONST PFNDPNMESSAGEHANDLER pfn
, CONST DWORD dwFlags
) PURE
;
493 STDMETHOD(EnumServiceProviders
)(THIS_ CONST GUID
* CONST pguidServiceProvider
, CONST GUID
* CONST pguidApplication
, DPN_SERVICE_PROVIDER_INFO
* CONST pSPInfoBuffer
, PDWORD CONST pcbEnumData
, PDWORD CONST pcReturned
, CONST DWORD dwFlags
) PURE
;
494 STDMETHOD(EnumHosts
)(THIS_ PDPN_APPLICATION_DESC CONST pApplicationDesc
,IDirectPlay8Address
* CONST pAddrHost
,IDirectPlay8Address
* CONST pDeviceInfo
, PVOID CONST pUserEnumData
, CONST DWORD dwUserEnumDataSize
, CONST DWORD dwEnumCount
, CONST DWORD dwRetryInterval
, CONST DWORD dwTimeOut
, PVOID CONST pvUserContext
, DPNHANDLE
* CONST pAsyncHandle
, CONST DWORD dwFlags
) PURE
;
495 STDMETHOD(CancelAsyncOperation
)(THIS_ CONST DPNHANDLE hAsyncHandle
, CONST DWORD dwFlags
) PURE
;
496 STDMETHOD(Connect
)(THIS_ CONST DPN_APPLICATION_DESC
* CONST pdnAppDesc
,IDirectPlay8Address
* CONST pHostAddr
,IDirectPlay8Address
* CONST pDeviceInfo
, CONST DPN_SECURITY_DESC
* CONST pdnSecurity
, CONST DPN_SECURITY_CREDENTIALS
* CONST pdnCredentials
, CONST
void * CONST pvUserConnectData
, CONST DWORD dwUserConnectDataSize
,void * CONST pvAsyncContext
, DPNHANDLE
* CONST phAsyncHandle
, CONST DWORD dwFlags
) PURE
;
497 STDMETHOD(Send
)(THIS_ CONST DPN_BUFFER_DESC
* CONST prgBufferDesc
, CONST DWORD cBufferDesc
, CONST DWORD dwTimeOut
, void * CONST pvAsyncContext
, DPNHANDLE
* CONST phAsyncHandle
, CONST DWORD dwFlags
) PURE
;
498 STDMETHOD(GetSendQueueInfo
)(THIS_ DWORD
* CONST pdwNumMsgs
, DWORD
* CONST pdwNumBytes
, CONST DWORD dwFlags
) PURE
;
499 STDMETHOD(GetApplicationDesc
)(THIS_ DPN_APPLICATION_DESC
* CONST pAppDescBuffer
, DWORD
* CONST pcbDataSize
, CONST DWORD dwFlags
) PURE
;
500 STDMETHOD(SetClientInfo
)(THIS_ CONST DPN_PLAYER_INFO
* CONST pdpnPlayerInfo
, PVOID CONST pvAsyncContext
, DPNHANDLE
* CONST phAsyncHandle
, CONST DWORD dwFlags
) PURE
;
501 STDMETHOD(GetServerInfo
)(THIS_ DPN_PLAYER_INFO
* CONST pdpnPlayerInfo
, DWORD
* CONST pdwSize
, CONST DWORD dwFlags
) PURE
;
502 STDMETHOD(GetServerAddress
)(THIS_ IDirectPlay8Address
** CONST pAddress
, CONST DWORD dwFlags
) PURE
;
503 STDMETHOD(Close
)(THIS_ CONST DWORD dwFlags
) PURE
;
504 STDMETHOD(ReturnBuffer
)(THIS_ CONST DPNHANDLE hBufferHandle
, CONST DWORD dwFlags
) PURE
;
505 STDMETHOD(GetCaps
)(THIS_ DPN_CAPS
* CONST pdpCaps
, CONST DWORD dwFlags
) PURE
;
506 STDMETHOD(SetCaps
)(THIS_ CONST DPN_CAPS
* CONST pdpCaps
, CONST DWORD dwFlags
) PURE
;
507 STDMETHOD(SetSPCaps
)(THIS_ CONST GUID
* CONST pguidSP
, CONST DPN_SP_CAPS
* CONST pdpspCaps
, CONST DWORD dwFlags
) PURE
;
508 STDMETHOD(GetSPCaps
)(THIS_ CONST GUID
* CONST pguidSP
, DPN_SP_CAPS
* CONST pdpspCaps
, CONST DWORD dwFlags
) PURE
;
509 STDMETHOD(GetConnectionInfo
)(THIS_ DPN_CONNECTION_INFO
* CONST pdpConnectionInfo
, CONST DWORD dwFlags
) PURE
;
510 STDMETHOD(RegisterLobby
)(THIS_ CONST DPNHANDLE dpnHandle
, struct IDirectPlay8LobbiedApplication
* CONST pIDP8LobbiedApplication
, CONST DWORD dwFlags
) PURE
;
514 #if !defined(__cplusplus) || defined(CINTERFACE)
515 /*** IUnknown methods ***/
516 #define IDirectPlay8Client_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
517 #define IDirectPlay8Client_AddRef(p) (p)->lpVtbl->AddRef(p)
518 #define IDirectPlay8Client_Release(p) (p)->lpVtbl->Release(p)
519 /*** IDirectPlay8Client methods ***/
520 #define IDirectPlay8Client_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
521 #define IDirectPlay8Client_EnumServiceProviders(p,a,b,c,d,e,f) (p)->lpVtbl->EnumServiceProviders(p,a,b,c,d,e,f)
522 #define IDirectPlay8Client_EnumHosts(p,a,b,c,d,e,f,g,h,i,j,k) (p)->lpVtbl->EnumHosts(p,a,b,c,d,e,f,g,h,i,j,k)
523 #define IDirectPlay8Client_CancelAsyncOperation(p,a,b) (p)->lpVtbl->CancelAsyncOperation(p,a,b)
524 #define IDirectPlay8Client_Connect(p,a,b,c,d,e,f,g,h,i,j) (p)->lpVtbl->Connect(p,a,b,c,d,e,f,g,h,i,j)
525 #define IDirectPlay8Client_Send(p,a,b,c,d,e,f) (p)->lpVtbl->Send(p,a,b,c,d,e,f)
526 #define IDirectPlay8Client_GetSendQueueInfo(p,a,b,c) (p)->lpVtbl->GetSendQueueInfo(p,a,b,c)
527 #define IDirectPlay8Client_GetApplicationDesc(p,a,b,c) (p)->lpVtbl->GetApplicationDesc(p,a,b,c)
528 #define IDirectPlay8Client_SetClientInfo(p,a,b,c,d) (p)->lpVtbl->SetClientInfo(p,a,b,c,d)
529 #define IDirectPlay8Client_GetServerInfo(p,a,b,c) (p)->lpVtbl->GetServerInfo(p,a,b,c)
530 #define IDirectPlay8Client_GetServerAddress(p,a,b) (p)->lpVtbl->GetServerAddress(p,a,b)
531 #define IDirectPlay8Client_Close(p,a) (p)->lpVtbl->Close(p,a)
532 #define IDirectPlay8Client_ReturnBuffer(p,a,b) (p)->lpVtbl->ReturnBuffer(p,a,b)
533 #define IDirectPlay8Client_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
534 #define IDirectPlay8Client_SetCaps(p,a,b) (p)->lpVtbl->SetCaps(p,a,b)
535 #define IDirectPlay8Client_SetSPCaps(p,a,b,c) (p)->lpVtbl->SetSPCaps(p,a,b,c)
536 #define IDirectPlay8Client_GetSPCaps(p,a,b,c) (p)->lpVtbl->GetSPCaps(p,a,b,c)
537 #define IDirectPlay8Client_GetConnectionInfo(p,a,b) (p)->lpVtbl->GetConnectionInfo(p,a,b)
538 #define IDirectPlay8Client_RegisterLobby(p,a,b,c) (p)->lpVtbl->RegisterLobby(p,a,b,c)
540 /*** IUnknown methods ***/
541 #define IDirectPlay8Client_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
542 #define IDirectPlay8Client_AddRef(p) (p)->AddRef()
543 #define IDirectPlay8Client_Release(p) (p)->Release()
544 /*** IDirectPlay8Client methods ***/
545 #define IDirectPlay8Client_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
546 #define IDirectPlay8Client_EnumServiceProviders(p,a,b,c,d,e,f) (p)->EnumServiceProviders(a,b,c,d,e,f)
547 #define IDirectPlay8Client_EnumHosts(p,a,b,c,d,e,f,g,h,i,j,k) (p)->EnumHosts(a,b,c,d,e,f,g,h,i,j,k)
548 #define IDirectPlay8Client_CancelAsyncOperation(p,a,b) (p)->CancelAsyncOperation(a,b)
549 #define IDirectPlay8Client_Connect(p,a,b,c,d,e,f,g,h,i,j) (p)->Connect(a,b,c,d,e,f,g,h,i,j)
550 #define IDirectPlay8Client_Send(p,a,b,c,d,e,f) (p)->Send(a,b,c,d,e,f)
551 #define IDirectPlay8Client_GetSendQueueInfo(p,a,b,c) (p)->GetSendQueueInfo(a,b,c)
552 #define IDirectPlay8Client_GetApplicationDesc(p,a,b,c) (p)->GetApplicationDesc(a,b,c)
553 #define IDirectPlay8Client_SetClientInfo(p,a,b,c,d) (p)->SetClientInfo(a,b,c,d)
554 #define IDirectPlay8Client_GetServerInfo(p,a,b,c) (p)->GetServerInfo(a,b,c)
555 #define IDirectPlay8Client_GetServerAddress(p,a,b) (p)->GetServerAddress(a,b)
556 #define IDirectPlay8Client_Close(p,a) (p)->Close(a)
557 #define IDirectPlay8Client_ReturnBuffer(p,a,b) (p)->ReturnBuffer(a,b)
558 #define IDirectPlay8Client_GetCaps(p,a,b) (p)->GetCaps(a,b)
559 #define IDirectPlay8Client_SetCaps(p,a,b) (p)->SetCaps(a,b)
560 #define IDirectPlay8Client_SetSPCaps(p,a,b,c) (p)->SetSPCaps(a,b,c)
561 #define IDirectPlay8Client_GetSPCaps(p,a,b,c) (p)->GetSPCaps(a,b,c)
562 #define IDirectPlay8Client_GetConnectionInfo(p,a,b) (p)->GetConnectionInfo(a,b)
563 #define IDirectPlay8Client_RegisterLobby(p,a,b,c) (p)->RegisterLobby(a,b,c)
566 /*****************************************************************************
567 * IDirectPlay8Server interface
569 #define INTERFACE IDirectPlay8Server
570 DECLARE_INTERFACE_(IDirectPlay8Server
,IUnknown
)
572 /*** IUnknown methods ***/
573 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
574 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
575 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
576 /*** IDirectPlay8Server methods ***/
577 STDMETHOD(Initialize
)(THIS_ PVOID CONST pvUserContext
, CONST PFNDPNMESSAGEHANDLER pfn
, CONST DWORD dwFlags
) PURE
;
578 STDMETHOD(EnumServiceProviders
)(THIS_ CONST GUID
* CONST pguidServiceProvider
, CONST GUID
* CONST pguidApplication
, DPN_SERVICE_PROVIDER_INFO
* CONST pSPInfoBuffer
, PDWORD CONST pcbEnumData
, PDWORD CONST pcReturned
, CONST DWORD dwFlags
) PURE
;
579 STDMETHOD(CancelAsyncOperation
)(THIS_ CONST DPNHANDLE hAsyncHandle
, CONST DWORD dwFlags
) PURE
;
580 STDMETHOD(GetSendQueueInfo
)(THIS_ CONST DPNID dpnid
, DWORD
* CONST pdwNumMsgs
, DWORD
* CONST pdwNumBytes
, CONST DWORD dwFlags
) PURE
;
581 STDMETHOD(GetApplicationDesc
)(THIS_ DPN_APPLICATION_DESC
* CONST pAppDescBuffer
, DWORD
* CONST pcbDataSize
, CONST DWORD dwFlags
) PURE
;
582 STDMETHOD(SetServerInfo
)(THIS_ CONST DPN_PLAYER_INFO
* CONST pdpnPlayerInfo
, PVOID CONST pvAsyncContext
, DPNHANDLE
* CONST phAsyncHandle
, CONST DWORD dwFlags
) PURE
;
583 STDMETHOD(GetClientInfo
)(THIS_ CONST DPNID dpnid
, DPN_PLAYER_INFO
* CONST pdpnPlayerInfo
, DWORD
* CONST pdwSize
, CONST DWORD dwFlags
) PURE
;
584 STDMETHOD(GetClientAddress
)(THIS_ CONST DPNID dpnid
, IDirectPlay8Address
** CONST pAddress
, CONST DWORD dwFlags
) PURE
;
585 STDMETHOD(GetLocalHostAddresses
)(THIS_ IDirectPlay8Address
** CONST prgpAddress
, DWORD
* CONST pcAddress
, CONST DWORD dwFlags
) PURE
;
586 STDMETHOD(SetApplicationDesc
)(THIS_ CONST DPN_APPLICATION_DESC
* CONST pad
, CONST DWORD dwFlags
) PURE
;
587 STDMETHOD(Host
)(THIS_ CONST DPN_APPLICATION_DESC
* CONST pdnAppDesc
, IDirectPlay8Address
** CONST prgpDeviceInfo
, CONST DWORD cDeviceInfo
, CONST DPN_SECURITY_DESC
* CONST pdnSecurity
, CONST DPN_SECURITY_CREDENTIALS
* CONST pdnCredentials
, void * CONST pvPlayerContext
, CONST DWORD dwFlags
) PURE
;
588 STDMETHOD(SendTo
)(THIS_ CONST DPNID dpnid
, CONST DPN_BUFFER_DESC
* CONST prgBufferDesc
, CONST DWORD cBufferDesc
, CONST DWORD dwTimeOut
, void * CONST pvAsyncContext
, DPNHANDLE
* CONST phAsyncHandle
, CONST DWORD dwFlags
) PURE
;
589 STDMETHOD(CreateGroup
)(THIS_ CONST DPN_GROUP_INFO
* CONST pdpnGroupInfo
, void * CONST pvGroupContext
, void * CONST pvAsyncContext
, DPNHANDLE
* CONST phAsyncHandle
, CONST DWORD dwFlags
) PURE
;
590 STDMETHOD(DestroyGroup
)(THIS_ CONST DPNID idGroup
, PVOID CONST pvAsyncContext
, DPNHANDLE
* CONST phAsyncHandle
, CONST DWORD dwFlags
) PURE
;
591 STDMETHOD(AddPlayerToGroup
)(THIS_ CONST DPNID idGroup
, CONST DPNID idClient
, PVOID CONST pvAsyncContext
, DPNHANDLE
* CONST phAsyncHandle
, CONST DWORD dwFlags
) PURE
;
592 STDMETHOD(RemovePlayerFromGroup
)(THIS_ CONST DPNID idGroup
, CONST DPNID idClient
, PVOID CONST pvAsyncContext
, DPNHANDLE
* CONST phAsyncHandle
, CONST DWORD dwFlags
) PURE
;
593 STDMETHOD(SetGroupInfo
)(THIS_ CONST DPNID dpnid
, DPN_GROUP_INFO
* CONST pdpnGroupInfo
, PVOID CONST pvAsyncContext
, DPNHANDLE
* CONST phAsyncHandle
, CONST DWORD dwFlags
) PURE
;
594 STDMETHOD(GetGroupInfo
)(THIS_ CONST DPNID dpnid
, DPN_GROUP_INFO
* CONST pdpnGroupInfo
, DWORD
* CONST pdwSize
, CONST DWORD dwFlags
) PURE
;
595 STDMETHOD(EnumPlayersAndGroups
)(THIS_ DPNID
* CONST prgdpnid
, DWORD
* CONST pcdpnid
, CONST DWORD dwFlags
) PURE
;
596 STDMETHOD(EnumGroupMembers
)(THIS_ CONST DPNID dpnid
, DPNID
* CONST prgdpnid
, DWORD
* CONST pcdpnid
, CONST DWORD dwFlags
) PURE
;
597 STDMETHOD(Close
)(THIS_ CONST DWORD dwFlags
) PURE
;
598 STDMETHOD(DestroyClient
)(THIS_ CONST DPNID dpnidClient
, CONST
void * CONST pvDestroyData
, CONST DWORD dwDestroyDataSize
, CONST DWORD dwFlags
) PURE
;
599 STDMETHOD(ReturnBuffer
)(THIS_ CONST DPNHANDLE hBufferHandle
, CONST DWORD dwFlags
) PURE
;
600 STDMETHOD(GetPlayerContext
)(THIS_ CONST DPNID dpnid
, PVOID
* CONST ppvPlayerContext
, CONST DWORD dwFlags
) PURE
;
601 STDMETHOD(GetGroupContext
)(THIS_ CONST DPNID dpnid
, PVOID
* CONST ppvGroupContext
, CONST DWORD dwFlags
) PURE
;
602 STDMETHOD(GetCaps
)(THIS_ DPN_CAPS
* CONST pdpCaps
, CONST DWORD dwFlags
) PURE
;
603 STDMETHOD(SetCaps
)(THIS_ CONST DPN_CAPS
* CONST pdpCaps
, CONST DWORD dwFlags
) PURE
;
604 STDMETHOD(SetSPCaps
)(THIS_ CONST GUID
* CONST pguidSP
, CONST DPN_SP_CAPS
* CONST pdpspCaps
, CONST DWORD dwFlags
) PURE
;
605 STDMETHOD(GetSPCaps
)(THIS_ CONST GUID
* CONST pguidSP
, DPN_SP_CAPS
* CONST pdpspCaps
, CONST DWORD dwFlags
) PURE
;
606 STDMETHOD(GetConnectionInfo
)(THIS_ CONST DPNID dpnid
, DPN_CONNECTION_INFO
* CONST pdpConnectionInfo
, CONST DWORD dwFlags
) PURE
;
607 STDMETHOD(RegisterLobby
)(THIS_ CONST DPNHANDLE dpnHandle
, struct IDirectPlay8LobbiedApplication
* CONST pIDP8LobbiedApplication
, CONST DWORD dwFlags
) PURE
;
611 #if !defined(__cplusplus) || defined(CINTERFACE)
612 /*** IUnknown methods ***/
613 #define IDirectPlay8Server_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
614 #define IDirectPlay8Server_AddRef(p) (p)->lpVtbl->AddRef(p)
615 #define IDirectPlay8Server_Release(p) (p)->lpVtbl->Release(p)
616 /*** IDirectPlay8Server methods ***/
617 #define IDirectPlay8Server_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
618 #define IDirectPlay8Server_EnumServiceProviders(p,a,b,c,d,e,f) (p)->lpVtbl->EnumServiceProviders(p,a,b,c,d,e,f)
619 #define IDirectPlay8Server_CancelAsyncOperation(p,a,b) (p)->lpVtbl->CancelAsyncOperation(p,a,b)
620 #define IDirectPlay8Server_GetSendQueueInfo(p,a,b,c,d) (p)->lpVtbl->GetSendQueueInfo(p,a,b,c,d)
621 #define IDirectPlay8Server_GetApplicationDesc(p,a,b,c) (p)->lpVtbl->GetApplicationDesc(p,a,b,c)
622 #define IDirectPlay8Server_SetServerInfo(p,a,b,c,d) (p)->lpVtbl->SetServerInfo(p,a,b,c,d)
623 #define IDirectPlay8Server_GetClientInfo(p,a,b,c,d) (p)->lpVtbl->GetClientInfo(p,a,b,c,d)
624 #define IDirectPlay8Server_GetClientAddress(p,a,b,c) (p)->lpVtbl->GetClientAddress(p,a,b,c)
625 #define IDirectPlay8Server_GetLocalHostAddresses(p,a,b,c) (p)->lpVtbl->GetLocalHostAddresses(p,a,b,c)
626 #define IDirectPlay8Server_SetApplicationDesc(p,a,b) (p)->lpVtbl->SetApplicationDesc(p,a,b)
627 #define IDirectPlay8Server_Host(p,a,b,c,d,e,f,g) (p)->lpVtbl->Host(p,a,b,c,d,e,f,g)
628 #define IDirectPlay8Server_SendTo(p,a,b,c,d,e,f,g) (p)->lpVtbl->SendTo(p,a,b,c,d,e,f,g)
629 #define IDirectPlay8Server_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e)
630 #define IDirectPlay8Server_DestroyGroup(p,a,b,c,d) (p)->lpVtbl->DestroyGroup(p,a,b,c,d)
631 #define IDirectPlay8Server_AddPlayerToGroup(p,a,b,c,d,e) (p)->lpVtbl->AddPlayerToGroup(p,a,b,c,d,e)
632 #define IDirectPlay8Server_RemovePlayerFromGroup(p,a,b,c,d,e) (p)->lpVtbl->RemovePlayerFromGroup(p,a,b,c,d,e)
633 #define IDirectPlay8Server_SetGroupInfo(p,a,b,c,d,e) (p)->lpVtbl->SetGroupInfo(p,a,b,c,d,e)
634 #define IDirectPlay8Server_GetGroupInfo(p,a,b,c,d) (p)->lpVtbl->GetGroupInfo(p,a,b,c,d)
635 #define IDirectPlay8Server_EnumPlayersAndGroups(p,a,b,c) (p)->lpVtbl->EnumPlayersAndGroups(p,a,b,c)
636 #define IDirectPlay8Server_EnumGroupMembers(p,a,b,c,d) (p)->lpVtbl->EnumGroupMembers(p,a,b,c,d)
637 #define IDirectPlay8Server_Close(p,a) (p)->lpVtbl->Close(p,a)
638 #define IDirectPlay8Server_DestroyClient(p,a,b,c,d) (p)->lpVtbl->DestroyClient(p,a,b,c,d)
639 #define IDirectPlay8Server_ReturnBuffer(p,a,b) (p)->lpVtbl->ReturnBuffer(p,a,b)
640 #define IDirectPlay8Server_GetPlayerContext(p,a,b,c) (p)->lpVtbl->GetPlayerContext(p,a,b,c)
641 #define IDirectPlay8Server_GetGroupContext(p,a,b,c) (p)->lpVtbl->GetGroupContext(p,a,b,c)
642 #define IDirectPlay8Server_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
643 #define IDirectPlay8Server_SetCaps(p,a,b) (p)->lpVtbl->SetCaps(p,a,b)
644 #define IDirectPlay8Server_SetSPCaps(p,a,b,c) (p)->lpVtbl->SetSPCaps(p,a,b,c)
645 #define IDirectPlay8Server_GetSPCaps(p,a,b,c) (p)->lpVtbl->GetSPCaps(p,a,b,c)
646 #define IDirectPlay8Server_GetConnectionInfo(p,a,b,c) (p)->lpVtbl->GetConnectionInfo(p,a,b,c)
647 #define IDirectPlay8Server_RegisterLobby(p,a,b,c) (p)->lpVtbl->RegisterLobby(p,a,b,c)
649 /*** IUnknown methods ***/
650 #define IDirectPlay8Server_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
651 #define IDirectPlay8Server_AddRef(p) (p)->AddRef()
652 #define IDirectPlay8Server_Release(p) (p)->Release()
653 /*** IDirectPlay8Server methods ***/
654 #define IDirectPlay8Server_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
655 #define IDirectPlay8Server_EnumServiceProviders(p,a,b,c,d,e,f) (p)->EnumServiceProviders(a,b,c,d,e,f)
656 #define IDirectPlay8Server_CancelAsyncOperation(p,a,b) (p)->CancelAsyncOperation(a,b)
657 #define IDirectPlay8Server_GetSendQueueInfo(p,a,b,c,d) (p)->GetSendQueueInfo(a,b,c,d)
658 #define IDirectPlay8Server_GetApplicationDesc(p,a,b,c) (p)->GetApplicationDesc(a,b,c)
659 #define IDirectPlay8Server_SetServerInfo(p,a,b,c,d) (p)->SetServerInfo(a,b,c,d)
660 #define IDirectPlay8Server_GetClientInfo(p,a,b,c,d) (p)->GetClientInfo(a,b,c,d)
661 #define IDirectPlay8Server_GetClientAddress(p,a,b,c) (p)->GetClientAddress(a,b,c)
662 #define IDirectPlay8Server_GetLocalHostAddresses(p,a,b,c) (p)->GetLocalHostAddresses(a,b,c)
663 #define IDirectPlay8Server_SetApplicationDesc(p,a,b) (p)->SetApplicationDesc(a,b)
664 #define IDirectPlay8Server_Host(p,a,b,c,d,e,f,g) (p)->Host(a,b,c,d,e,f,g)
665 #define IDirectPlay8Server_SendTo(p,a,b,c,d,e,f,g) (p)->SendTo(a,b,c,d,e,f,g)
666 #define IDirectPlay8Server_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e)
667 #define IDirectPlay8Server_DestroyGroup(p,a,b,c,d) (p)->DestroyGroup(a,b,c,d)
668 #define IDirectPlay8Server_AddPlayerToGroup(p,a,b,c,d,e) (p)->AddPlayerToGroup(a,b,c,d,e)
669 #define IDirectPlay8Server_RemovePlayerFromGroup(p,a,b,c,d,e) (p)->RemovePlayerFromGroup(a,b,c,d,e)
670 #define IDirectPlay8Server_SetGroupInfo(p,a,b,c,d,e) (p)->SetGroupInfo(a,b,c,d,e)
671 #define IDirectPlay8Server_GetGroupInfo(p,a,b,c,d) (p)->GetGroupInfo(a,b,c,d)
672 #define IDirectPlay8Server_EnumPlayersAndGroups(p,a,b,c) (p)->EnumPlayersAndGroups(a,b,c)
673 #define IDirectPlay8Server_EnumGroupMembers(p,a,b,c,d) (p)->EnumGroupMembers(a,b,c,d)
674 #define IDirectPlay8Server_Close(p,a) (p)->Close(a)
675 #define IDirectPlay8Server_DestroyClient(p,a,b,c,d) (p)->DestroyClient(a,b,c,d)
676 #define IDirectPlay8Server_ReturnBuffer(p,a,b) (p)->ReturnBuffer(a,b)
677 #define IDirectPlay8Server_GetPlayerContext(p,a,b,c) (p)->GetPlayerContext(a,b,c)
678 #define IDirectPlay8Server_GetGroupContext(p,a,b,c) (p)->GetGroupContext(a,b,c)
679 #define IDirectPlay8Server_GetCaps(p,a,b) (p)->GetCaps(a,b)
680 #define IDirectPlay8Server_SetCaps(p,a,b) (p)->SetCaps(a,b)
681 #define IDirectPlay8Server_SetSPCaps(p,a,b,c) (p)->SetSPCaps(a,b,c)
682 #define IDirectPlay8Server_GetSPCaps(p,a,b,c) (p)->GetSPCaps(a,b,c)
683 #define IDirectPlay8Server_GetConnectionInfo(p,a,b,c) (p)->GetConnectionInfo(a,b,c)
684 #define IDirectPlay8Server_RegisterLobby(p,a,b,c) (p)->RegisterLobby(a,b,c)
687 /*****************************************************************************
688 * IDirectPlay8Peer interface
690 #define INTERFACE IDirectPlay8Peer
691 DECLARE_INTERFACE_(IDirectPlay8Peer
,IUnknown
)
693 /*** IUnknown methods ***/
694 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
695 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
696 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
697 /*** IDirectPlay8Peer methods ***/
698 STDMETHOD(Initialize
)(THIS_ PVOID CONST pvUserContext
, CONST PFNDPNMESSAGEHANDLER pfn
, CONST DWORD dwFlags
) PURE
;
699 STDMETHOD(EnumServiceProviders
)(THIS_ CONST GUID
* CONST pguidServiceProvider
, CONST GUID
* CONST pguidApplication
, DPN_SERVICE_PROVIDER_INFO
* CONST pSPInfoBuffer
, DWORD
* CONST pcbEnumData
, DWORD
* CONST pcReturned
, CONST DWORD dwFlags
) PURE
;
700 STDMETHOD(CancelAsyncOperation
)(THIS_ CONST DPNHANDLE hAsyncHandle
, CONST DWORD dwFlags
) PURE
;
701 STDMETHOD(Connect
)(THIS_ CONST DPN_APPLICATION_DESC
* CONST pdnAppDesc
, IDirectPlay8Address
* CONST pHostAddr
, IDirectPlay8Address
* CONST pDeviceInfo
, CONST DPN_SECURITY_DESC
* CONST pdnSecurity
, CONST DPN_SECURITY_CREDENTIALS
* CONST pdnCredentials
, CONST
void* CONST pvUserConnectData
, CONST DWORD dwUserConnectDataSize
, void* CONST pvPlayerContext
, void* CONST pvAsyncContext
, DPNHANDLE
* CONST phAsyncHandle
, CONST DWORD dwFlags
) PURE
;
702 STDMETHOD(SendTo
)(THIS_ CONST DPNID dpnid
, CONST DPN_BUFFER_DESC
* CONST prgBufferDesc
, CONST DWORD cBufferDesc
, CONST DWORD dwTimeOut
, void* CONST pvAsyncContext
, DPNHANDLE
* CONST phAsyncHandle
, CONST DWORD dwFlags
) PURE
;
703 STDMETHOD(GetSendQueueInfo
)(THIS_ CONST DPNID dpnid
, DWORD
* CONST pdwNumMsgs
, DWORD
* CONST pdwNumBytes
, CONST DWORD dwFlags
) PURE
;
704 STDMETHOD(Host
)(THIS_ CONST DPN_APPLICATION_DESC
* CONST pdnAppDesc
, IDirectPlay8Address
**CONST prgpDeviceInfo
, CONST DWORD cDeviceInfo
, CONST DPN_SECURITY_DESC
* CONST pdnSecurity
, CONST DPN_SECURITY_CREDENTIALS
* CONST pdnCredentials
, void* CONST pvPlayerContext
, CONST DWORD dwFlags
) PURE
;
705 STDMETHOD(GetApplicationDesc
)(THIS_ DPN_APPLICATION_DESC
* CONST pAppDescBuffer
, DWORD
* CONST pcbDataSize
, CONST DWORD dwFlags
) PURE
;
706 STDMETHOD(SetApplicationDesc
)(THIS_ CONST DPN_APPLICATION_DESC
* CONST pad
, CONST DWORD dwFlags
) PURE
;
707 STDMETHOD(CreateGroup
)(THIS_ CONST DPN_GROUP_INFO
* CONST pdpnGroupInfo
, void* CONST pvGroupContext
, void* CONST pvAsyncContext
, DPNHANDLE
* CONST phAsyncHandle
, CONST DWORD dwFlags
) PURE
;
708 STDMETHOD(DestroyGroup
)(THIS_ CONST DPNID idGroup
, PVOID CONST pvAsyncContext
, DPNHANDLE
* CONST phAsyncHandle
, CONST DWORD dwFlags
) PURE
;
709 STDMETHOD(AddPlayerToGroup
)(THIS_ CONST DPNID idGroup
, CONST DPNID idClient
, PVOID CONST pvAsyncContext
, DPNHANDLE
* CONST phAsyncHandle
, CONST DWORD dwFlags
) PURE
;
710 STDMETHOD(RemovePlayerFromGroup
)(THIS_ CONST DPNID idGroup
, CONST DPNID idClient
, PVOID CONST pvAsyncContext
, DPNHANDLE
* CONST phAsyncHandle
, CONST DWORD dwFlags
) PURE
;
711 STDMETHOD(SetGroupInfo
)(THIS_ CONST DPNID dpnid
, DPN_GROUP_INFO
* CONST pdpnGroupInfo
,PVOID CONST pvAsyncContext
, DPNHANDLE
* CONST phAsyncHandle
, CONST DWORD dwFlags
) PURE
;
712 STDMETHOD(GetGroupInfo
)(THIS_ CONST DPNID dpnid
, DPN_GROUP_INFO
* CONST pdpnGroupInfo
, DWORD
* CONST pdwSize
, CONST DWORD dwFlags
) PURE
;
713 STDMETHOD(EnumPlayersAndGroups
)(THIS_ DPNID
* CONST prgdpnid
, DWORD
* CONST pcdpnid
, CONST DWORD dwFlags
) PURE
;
714 STDMETHOD(EnumGroupMembers
)(THIS_ CONST DPNID dpnid
, DPNID
* CONST prgdpnid
, DWORD
* CONST pcdpnid
, CONST DWORD dwFlags
) PURE
;
715 STDMETHOD(SetPeerInfo
)(THIS_ CONST DPN_PLAYER_INFO
* CONST pdpnPlayerInfo
,PVOID CONST pvAsyncContext
, DPNHANDLE
* CONST phAsyncHandle
, CONST DWORD dwFlags
) PURE
;
716 STDMETHOD(GetPeerInfo
)(THIS_ CONST DPNID dpnid
, DPN_PLAYER_INFO
* CONST pdpnPlayerInfo
, DWORD
* CONST pdwSize
, CONST DWORD dwFlags
) PURE
;
717 STDMETHOD(GetPeerAddress
)(THIS_ CONST DPNID dpnid
, IDirectPlay8Address
** CONST pAddress
, CONST DWORD dwFlags
) PURE
;
718 STDMETHOD(GetLocalHostAddresses
)(THIS_ IDirectPlay8Address
** CONST prgpAddress
, DWORD
* CONST pcAddress
, CONST DWORD dwFlags
) PURE
;
719 STDMETHOD(Close
)(THIS_ CONST DWORD dwFlags
) PURE
;
720 STDMETHOD(EnumHosts
)(THIS_ PDPN_APPLICATION_DESC CONST pApplicationDesc
, IDirectPlay8Address
* CONST pAddrHost
, IDirectPlay8Address
* CONST pDeviceInfo
,PVOID CONST pUserEnumData
, CONST DWORD dwUserEnumDataSize
, CONST DWORD dwEnumCount
, CONST DWORD dwRetryInterval
, CONST DWORD dwTimeOut
,PVOID CONST pvUserContext
, DPNHANDLE
* CONST pAsyncHandle
, CONST DWORD dwFlags
) PURE
;
721 STDMETHOD(DestroyPeer
)(THIS_ CONST DPNID dpnidClient
, CONST
void* CONST pvDestroyData
, CONST DWORD dwDestroyDataSize
, CONST DWORD dwFlags
) PURE
;
722 STDMETHOD(ReturnBuffer
)(THIS_ CONST DPNHANDLE hBufferHandle
, CONST DWORD dwFlags
) PURE
;
723 STDMETHOD(GetPlayerContext
)(THIS_ CONST DPNID dpnid
,PVOID
* CONST ppvPlayerContext
, CONST DWORD dwFlags
) PURE
;
724 STDMETHOD(GetGroupContext
)(THIS_ CONST DPNID dpnid
,PVOID
* CONST ppvGroupContext
, CONST DWORD dwFlags
) PURE
;
725 STDMETHOD(GetCaps
)(THIS_ DPN_CAPS
* CONST pdpCaps
, CONST DWORD dwFlags
) PURE
;
726 STDMETHOD(SetCaps
)(THIS_ CONST DPN_CAPS
* CONST pdpCaps
, CONST DWORD dwFlags
) PURE
;
727 STDMETHOD(SetSPCaps
)(THIS_ CONST GUID
* CONST pguidSP
, CONST DPN_SP_CAPS
* CONST pdpspCaps
, CONST DWORD dwFlags
) PURE
;
728 STDMETHOD(GetSPCaps
)(THIS_ CONST GUID
* CONST pguidSP
, DPN_SP_CAPS
* CONST pdpspCaps
, CONST DWORD dwFlags
) PURE
;
729 STDMETHOD(GetConnectionInfo
)(THIS_ CONST DPNID dpnid
, DPN_CONNECTION_INFO
* CONST pdpConnectionInfo
, CONST DWORD dwFlags
) PURE
;
730 STDMETHOD(RegisterLobby
)(THIS_ CONST DPNHANDLE dpnHandle
, struct IDirectPlay8LobbiedApplication
* CONST pIDP8LobbiedApplication
, CONST DWORD dwFlags
) PURE
;
731 STDMETHOD(TerminateSession
)(THIS_
void* CONST pvTerminateData
, CONST DWORD dwTerminateDataSize
, CONST DWORD dwFlags
) PURE
;
735 #if !defined(__cplusplus) || defined(CINTERFACE)
736 /*** IUnknown methods ***/
737 #define IDirectPlay8Peer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
738 #define IDirectPlay8Peer_AddRef(p) (p)->lpVtbl->AddRef(p)
739 #define IDirectPlay8Peer_Release(p) (p)->lpVtbl->Release(p)
740 /*** IDirectPlay8Peer methods ***/
741 #define IDirectPlay8Peer_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
742 #define IDirectPlay8Peer_EnumServiceProviders(p,a,b,c,d,e,f) (p)->lpVtbl->EnumServiceProviders(p,a,b,c,d,e,f)
743 #define IDirectPlay8Peer_EnumHosts(p,a,b,c,d,e,f,g,h,i,j,k) (p)->lpVtbl->EnumHosts(p,a,b,c,d,e,f,g,h,i,j,k)
744 #define IDirectPlay8Peer_CancelAsyncOperation(p,a,b) (p)->lpVtbl->CancelAsyncOperation(p,a,b)
745 #define IDirectPlay8Peer_Connect(p,a,b,c,d,e,f,g,h,i,j,k) (p)->lpVtbl->Connect(p,a,b,c,d,e,f,g,h,i,j,k)
746 #define IDirectPlay8Peer_SendTo(p,a,b,c,d,e,f,g) (p)->lpVtbl->SendTo(p,a,b,c,d,e,f,g)
747 #define IDirectPlay8Peer_GetSendQueueInfo(p,a,b,c,d) (p)->lpVtbl->GetSendQueueInfo(p,a,b,c,d)
748 #define IDirectPlay8Peer_Host(p,a,b,c,d,e,f,g) (p)->lpVtbl->Host(p,a,b,c,d,e,f,g)
749 #define IDirectPlay8Peer_GetApplicationDesc(p,a,b,c) (p)->lpVtbl->GetApplicationDesc(p,a,b,c)
750 #define IDirectPlay8Peer_SetApplicationDesc(p,a,b) (p)->lpVtbl->SetApplicationDesc(p,a,b)
751 #define IDirectPlay8Peer_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e)
752 #define IDirectPlay8Peer_DestroyGroup(p,a,b,c,d) (p)->lpVtbl->DestroyGroup(p,a,b,c,d)
753 #define IDirectPlay8Peer_AddPlayerToGroup(p,a,b,c,d,e) (p)->lpVtbl->AddPlayerToGroup(p,a,b,c,d,e)
754 #define IDirectPlay8Peer_RemovePlayerFromGroup(p,a,b,c,d,e) (p)->lpVtbl->RemovePlayerFromGroup(p,a,b,c,d,e)
755 #define IDirectPlay8Peer_SetGroupInfo(p,a,b,c,d,e) (p)->lpVtbl->SetGroupInfo(p,a,b,c,d,e)
756 #define IDirectPlay8Peer_GetGroupInfo(p,a,b,c,d) (p)->lpVtbl->GetGroupInfo(p,a,b,c,d)
757 #define IDirectPlay8Peer_EnumPlayersAndGroups(p,a,b,c) (p)->lpVtbl->EnumPlayersAndGroups(p,a,b,c)
758 #define IDirectPlay8Peer_EnumGroupMembers(p,a,b,c,d) (p)->lpVtbl->EnumGroupMembers(p,a,b,c,d)
759 #define IDirectPlay8Peer_SetPeerInfo(p,a,b,c,d) (p)->lpVtbl->SetPeerInfo(p,a,b,c,d)
760 #define IDirectPlay8Peer_GetPeerInfo(p,a,b,c,d) (p)->lpVtbl->GetPeerInfo(p,a,b,c,d)
761 #define IDirectPlay8Peer_GetPeerAddress(p,a,b,c) (p)->lpVtbl->GetPeerAddress(p,a,b,c)
762 #define IDirectPlay8Peer_GetLocalHostAddresses(p,a,b,c) (p)->lpVtbl->GetLocalHostAddresses(p,a,b,c)
763 #define IDirectPlay8Peer_Close(p,a) (p)->lpVtbl->Close(p,a)
764 #define IDirectPlay8Peer_EnumHosts(p,a,b,c,d,e,f,g,h,i,j,k) (p)->lpVtbl->EnumHosts(p,a,b,c,d,e,f,g,h,i,j,k)
765 #define IDirectPlay8Peer_DestroyPeer(p,a,b,c,d) (p)->lpVtbl->DestroyPeer(p,a,b,c,d)
766 #define IDirectPlay8Peer_ReturnBuffer(p,a,b) (p)->lpVtbl->ReturnBuffer(p,a,b)
767 #define IDirectPlay8Peer_GetPlayerContext(p,a,b,c) (p)->lpVtbl->GetPlayerContext(p,a,b,c)
768 #define IDirectPlay8Peer_GetGroupContext(p,a,b,c) (p)->lpVtbl->GetGroupContext(p,a,b,c)
769 #define IDirectPlay8Peer_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
770 #define IDirectPlay8Peer_SetCaps(p,a,b) (p)->lpVtbl->SetCaps(p,a,b)
771 #define IDirectPlay8Peer_SetSPCaps(p,a,b,c) (p)->lpVtbl->SetSPCaps(p,a,b,c)
772 #define IDirectPlay8Peer_GetSPCaps(p,a,b,c) (p)->lpVtbl->GetSPCaps(p,a,b,c)
773 #define IDirectPlay8Peer_GetConnectionInfo(p,a,b,c) (p)->lpVtbl->GetConnectionInfo(p,a,b,c)
774 #define IDirectPlay8Peer_RegisterLobby(p,a,b,c) (p)->lpVtbl->RegisterLobby(p,a,b,c)
775 #define IDirectPlay8Peer_TerminateSession(p,a,b,c) (p)->lpVtbl->TerminateSession(p,a,b,c)
777 /*** IUnknown methods ***/
778 #define IDirectPlay8Peer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
779 #define IDirectPlay8Peer_AddRef(p) (p)->AddRef()
780 #define IDirectPlay8Peer_Release(p) (p)->Release()
781 /*** IDirectPlay8Peer methods ***/
782 #define IDirectPlay8Peer_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
783 #define IDirectPlay8Peer_EnumServiceProviders(p,a,b,c,d,e,f) (p)->EnumServiceProviders(a,b,c,d,e,f)
784 #define IDirectPlay8Peer_EnumHosts(p,a,b,c,d,e,f,g,h,i,j,k) (p)->EnumHosts(a,b,c,d,e,f,g,h,i,j,k)
785 #define IDirectPlay8Peer_CancelAsyncOperation(p,a,b) (p)->CancelAsyncOperation(a,b)
786 #define IDirectPlay8Peer_Connect(p,a,b,c,d,e,f,g,h,i,j,k) (p)->Connect(a,b,c,d,e,f,g,h,i,j,k)
787 #define IDirectPlay8Peer_SendTo(p,a,b,c,d,e,f,g) (p)->SendTo(a,b,c,d,e,f,g)
788 #define IDirectPlay8Peer_GetSendQueueInfo(p,a,b,c,d) (p)->GetSendQueueInfo(a,b,c,d)
789 #define IDirectPlay8Peer_Host(p,a,b,c,d,e,f,g) (p)->Host(a,b,c,d,e,f,g)
790 #define IDirectPlay8Peer_GetApplicationDesc(p,a,b,c) (p)->GetApplicationDesc(a,b,c)
791 #define IDirectPlay8Peer_SetApplicationDesc(p,a,b) (p)->SetApplicationDesc(a,b)
792 #define IDirectPlay8Peer_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e)
793 #define IDirectPlay8Peer_DestroyGroup(p,a,b,c,d) (p)->DestroyGroup(a,b,c,d)
794 #define IDirectPlay8Peer_AddPlayerToGroup(p,a,b,c,d,e) (p)->AddPlayerToGroup(a,b,c,d,e)
795 #define IDirectPlay8Peer_RemovePlayerFromGroup(p,a,b,c,d,e) (p)->RemovePlayerFromGroup(a,b,c,d,e)
796 #define IDirectPlay8Peer_SetGroupInfo(p,a,b,c,d,e) (p)->SetGroupInfo(a,b,c,d,e)
797 #define IDirectPlay8Peer_GetGroupInfo(p,a,b,c,d) (p)->GetGroupInfo(a,b,c,d)
798 #define IDirectPlay8Peer_EnumPlayersAndGroups(p,a,b,c) (p)->EnumPlayersAndGroups(a,b,c)
799 #define IDirectPlay8Peer_EnumGroupMembers(p,a,b,c,d) (p)->EnumGroupMembers(a,b,c,d)
800 #define IDirectPlay8Peer_SetPeerInfo(p,a,b,c,d) (p)->SetPeerInfo(a,b,c,d)
801 #define IDirectPlay8Peer_GetPeerInfo(p,a,b,c,d) (p)->GetPeerInfo(a,b,c,d)
802 #define IDirectPlay8Peer_GetPeerAddress(p,a,b,c) (p)->GetPeerAddress(a,b,c)
803 #define IDirectPlay8Peer_GetLocalHostAddresses(p,a,b,c) (p)->GetLocalHostAddresses(a,b,c)
804 #define IDirectPlay8Peer_Close(p,a) (p)->Close(a)
805 #define IDirectPlay8Peer_EnumHosts(p,a,b,c,d,e,f,g,h,i,j,k) (p)->EnumHosts(a,b,c,d,e,f,g,h,i,j,k)
806 #define IDirectPlay8Peer_DestroyPeer(p,a,b,c,d) (p)->DestroyPeer(a,b,c,d)
807 #define IDirectPlay8Peer_ReturnBuffer(p,a,b) (p)->ReturnBuffer(a,b)
808 #define IDirectPlay8Peer_GetPlayerContext(p,a,b,c) (p)->GetPlayerContext(a,b,c)
809 #define IDirectPlay8Peer_GetGroupContext(p,a,b,c) (p)->GetGroupContext(a,b,c)
810 #define IDirectPlay8Peer_GetCaps(p,a,b) (p)->GetCaps(a,b)
811 #define IDirectPlay8Peer_SetCaps(p,a,b) (p)->SetCaps(a,b)
812 #define IDirectPlay8Peer_SetSPCaps(p,a,b,c) (p)->SetSPCaps(a,b,c)
813 #define IDirectPlay8Peer_GetSPCaps(p,a,b,c) (p)->GetSPCaps(a,b,c)
814 #define IDirectPlay8Peer_GetConnectionInfo(p,a,b,c) (p)->GetConnectionInfo(a,b,c)
815 #define IDirectPlay8Peer_RegisterLobby(p,a,b,c) (p)->RegisterLobby(a,b,c)
816 #define IDirectPlay8Peer_TerminateSession(p,a,b,c) (p)->TerminateSession(a,b,c)