1 | /* $Id: dplay.h,v 1.1 1999-05-24 20:19:11 ktk Exp $ */
|
---|
2 |
|
---|
3 | #ifndef __WINE_DPLAY_H
|
---|
4 | #define __WINE_DPLAY_H
|
---|
5 |
|
---|
6 | #include "wine/obj_base.h"
|
---|
7 |
|
---|
8 | #include "pshpack1.h"
|
---|
9 |
|
---|
10 | /*****************************************************************************
|
---|
11 | * Predeclare the interfaces
|
---|
12 | */
|
---|
13 | DEFINE_GUID(CLSID_DirectPlay,0xd1eb6d20, 0x8923, 0x11d0, 0x9d, 0x97, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb);
|
---|
14 |
|
---|
15 | DEFINE_GUID(IID_IDirectPlay, 0x5454e9a0, 0xdb65, 0x11ce, 0x92, 0x1c, 0x00, 0xaa, 0x00, 0x6c, 0x49, 0x72);
|
---|
16 | typedef struct IDirectPlay IDirectPlay,*LPDIRECTPLAY;
|
---|
17 |
|
---|
18 | DEFINE_GUID(IID_IDirectPlay2, 0x2b74f7c0, 0x9154, 0x11cf, 0xa9, 0xcd, 0x0, 0xaa, 0x0, 0x68, 0x86, 0xe3);
|
---|
19 | typedef struct IDirectPlay2 IDirectPlay2,*LPDIRECTPLAY2;
|
---|
20 |
|
---|
21 | DEFINE_GUID(IID_IDirectPlay2A,0x9d460580, 0xa822, 0x11cf, 0x96, 0xc, 0x0, 0x80, 0xc7, 0x53, 0x4e, 0x82);
|
---|
22 | typedef struct IDirectPlay2 IDirectPlay2A,*LPDIRECTPLAY2A;
|
---|
23 |
|
---|
24 | DEFINE_GUID(IID_IDirectPlay3, 0x133efe40, 0x32dc, 0x11d0, 0x9c, 0xfb, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb);
|
---|
25 | typedef struct IDirectPlay3 IDirectPlay3,*LPDIRECTPLAY3;
|
---|
26 |
|
---|
27 | DEFINE_GUID(IID_IDirectPlay3A,0x133efe41, 0x32dc, 0x11d0, 0x9c, 0xfb, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb);
|
---|
28 | typedef struct IDirectPlay3 IDirectPlay3A,*LPDIRECTPLAY3A;
|
---|
29 |
|
---|
30 | /*
|
---|
31 | * GUIDS used by Service Providers shipped with DirectPlay
|
---|
32 | * Use these to identify Service Provider returned by EnumConnections
|
---|
33 | */
|
---|
34 |
|
---|
35 | /* GUID for IPX service provider {685BC400-9D2C-11cf-A9CD-00AA006886E3} */
|
---|
36 | DEFINE_GUID(DPSPGUID_IPX, 0x685bc400, 0x9d2c, 0x11cf, 0xa9, 0xcd, 0x0, 0xaa, 0x0, 0x68, 0x86, 0xe3);
|
---|
37 |
|
---|
38 | /* GUID for TCP/IP service provider 36E95EE0-8577-11cf-960C-0080C7534E82 */
|
---|
39 | DEFINE_GUID(DPSPGUID_TCPIP, 0x36E95EE0, 0x8577, 0x11cf, 0x96, 0xc, 0x0, 0x80, 0xc7, 0x53, 0x4e, 0x82);
|
---|
40 |
|
---|
41 | /* GUID for Serial service provider {0F1D6860-88D9-11cf-9C4E-00A0C905425E} */
|
---|
42 | DEFINE_GUID(DPSPGUID_SERIAL, 0xf1d6860, 0x88d9, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
|
---|
43 |
|
---|
44 | /* GUID for Modem service provider {44EAA760-CB68-11cf-9C4E-00A0C905425E} */
|
---|
45 | DEFINE_GUID(DPSPGUID_MODEM, 0x44eaa760, 0xcb68, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
|
---|
46 |
|
---|
47 |
|
---|
48 | /*****************************************************************************
|
---|
49 | * Miscellaneous
|
---|
50 | */
|
---|
51 |
|
---|
52 | /* Return Values for Direct Play */
|
---|
53 | #define _FACDP 0x877
|
---|
54 | #define MAKE_DPHRESULT( code ) MAKE_HRESULT( 1, _FACDP, code )
|
---|
55 |
|
---|
56 | #define DP_OK S_OK
|
---|
57 | #define DPERR_ALREADYINITIALIZED MAKE_DPHRESULT( 5 )
|
---|
58 | #define DPERR_ACCESSDENIED MAKE_DPHRESULT( 10 )
|
---|
59 | #define DPERR_ACTIVEPLAYERS MAKE_DPHRESULT( 20 )
|
---|
60 | #define DPERR_BUFFERTOOSMALL MAKE_DPHRESULT( 30 )
|
---|
61 | #define DPERR_CANTADDPLAYER MAKE_DPHRESULT( 40 )
|
---|
62 | #define DPERR_CANTCREATEGROUP MAKE_DPHRESULT( 50 )
|
---|
63 | #define DPERR_CANTCREATEPLAYER MAKE_DPHRESULT( 60 )
|
---|
64 | #define DPERR_CANTCREATESESSION MAKE_DPHRESULT( 70 )
|
---|
65 | #define DPERR_CAPSNOTAVAILABLEYET MAKE_DPHRESULT( 80 )
|
---|
66 | #define DPERR_EXCEPTION MAKE_DPHRESULT( 90 )
|
---|
67 | #define DPERR_GENERIC E_FAIL
|
---|
68 | #define DPERR_INVALIDFLAGS MAKE_DPHRESULT( 120 )
|
---|
69 | #define DPERR_INVALIDOBJECT MAKE_DPHRESULT( 130 )
|
---|
70 | #define DPERR_INVALIDPARAM E_INVALIDARG
|
---|
71 | #define DPERR_INVALIDPARAMS DPERR_INVALIDPARAM
|
---|
72 | #define DPERR_INVALIDPLAYER MAKE_DPHRESULT( 150 )
|
---|
73 | #define DPERR_INVALIDGROUP MAKE_DPHRESULT( 155 )
|
---|
74 | #define DPERR_NOCAPS MAKE_DPHRESULT( 160 )
|
---|
75 | #define DPERR_NOCONNECTION MAKE_DPHRESULT( 170 )
|
---|
76 | #define DPERR_NOMEMORY E_OUTOFMEMORY
|
---|
77 | #define DPERR_OUTOFMEMORY DPERR_NOMEMORY
|
---|
78 | #define DPERR_NOMESSAGES MAKE_DPHRESULT( 190 )
|
---|
79 | #define DPERR_NONAMESERVERFOUND MAKE_DPHRESULT( 200 )
|
---|
80 | #define DPERR_NOPLAYERS MAKE_DPHRESULT( 210 )
|
---|
81 | #define DPERR_NOSESSIONS MAKE_DPHRESULT( 220 )
|
---|
82 | #define DPERR_PENDING E_PENDING
|
---|
83 | #define DPERR_SENDTOOBIG MAKE_DPHRESULT( 230 )
|
---|
84 | #define DPERR_TIMEOUT MAKE_DPHRESULT( 240 )
|
---|
85 | #define DPERR_UNAVAILABLE MAKE_DPHRESULT( 250 )
|
---|
86 | #define DPERR_UNSUPPORTED E_NOTIMPL
|
---|
87 | #define DPERR_BUSY MAKE_DPHRESULT( 270 )
|
---|
88 | #define DPERR_USERCANCEL MAKE_DPHRESULT( 280 )
|
---|
89 | #define DPERR_NOINTERFACE E_NOINTERFACE
|
---|
90 | #define DPERR_CANNOTCREATESERVER MAKE_DPHRESULT( 290 )
|
---|
91 | #define DPERR_PLAYERLOST MAKE_DPHRESULT( 300 )
|
---|
92 | #define DPERR_SESSIONLOST MAKE_DPHRESULT( 310 )
|
---|
93 | #define DPERR_UNINITIALIZED MAKE_DPHRESULT( 320 )
|
---|
94 | #define DPERR_NONEWPLAYERS MAKE_DPHRESULT( 330 )
|
---|
95 | #define DPERR_INVALIDPASSWORD MAKE_DPHRESULT( 340 )
|
---|
96 | #define DPERR_CONNECTING MAKE_DPHRESULT( 350 )
|
---|
97 | #define DPERR_BUFFERTOOLARGE MAKE_DPHRESULT( 1000 )
|
---|
98 | #define DPERR_CANTCREATEPROCESS MAKE_DPHRESULT( 1010 )
|
---|
99 | #define DPERR_APPNOTSTARTED MAKE_DPHRESULT( 1020 )
|
---|
100 | #define DPERR_INVALIDINTERFACE MAKE_DPHRESULT( 1030 )
|
---|
101 | #define DPERR_NOSERVICEPROVIDER MAKE_DPHRESULT( 1040 )
|
---|
102 | #define DPERR_UNKNOWNAPPLICATION MAKE_DPHRESULT( 1050 )
|
---|
103 | #define DPERR_NOTLOBBIED MAKE_DPHRESULT( 1070 )
|
---|
104 | #define DPERR_SERVICEPROVIDERLOADED MAKE_DPHRESULT( 1080 )
|
---|
105 | #define DPERR_ALREADYREGISTERED MAKE_DPHRESULT( 1090 )
|
---|
106 | #define DPERR_NOTREGISTERED MAKE_DPHRESULT( 1100 )
|
---|
107 | #define DPERR_AUTHENTICATIONFAILED MAKE_DPHRESULT( 2000 )
|
---|
108 | #define DPERR_CANTLOADSSPI MAKE_DPHRESULT( 2010 )
|
---|
109 | #define DPERR_ENCRYPTIONFAILED MAKE_DPHRESULT( 2020 )
|
---|
110 | #define DPERR_SIGNFAILED MAKE_DPHRESULT( 2030 )
|
---|
111 | #define DPERR_CANTLOADSECURITYPACKAGE MAKE_DPHRESULT( 2040 )
|
---|
112 | #define DPERR_ENCRYPTIONNOTSUPPORTED MAKE_DPHRESULT( 2050 )
|
---|
113 | #define DPERR_CANTLOADCAPI MAKE_DPHRESULT( 2060 )
|
---|
114 | #define DPERR_NOTLOGGEDIN MAKE_DPHRESULT( 2070 )
|
---|
115 | #define DPERR_LOGONDENIED MAKE_DPHRESULT( 2080 )
|
---|
116 |
|
---|
117 |
|
---|
118 | /* DPID - DirectPlay player and group ID */
|
---|
119 | typedef DWORD DPID, *LPDPID;
|
---|
120 |
|
---|
121 | /* DPID from whence originate messages - just an ID */
|
---|
122 | #define DPID_SYSMSG 0 /* DPID of system */
|
---|
123 | #define DPID_ALLPLAYERS 0 /* DPID of all players */
|
---|
124 | #define DPID_SERVERPLAYER 1 /* DPID of the server player */
|
---|
125 | #define DPID_UNKNOWN 0xFFFFFFFF /* Player ID is unknown */
|
---|
126 |
|
---|
127 | /* DPCAPS - Used to obtain the capabilities of a DirectPlay object */
|
---|
128 | typedef struct tagDPCAPS
|
---|
129 | {
|
---|
130 | DWORD dwSize; /* Size of structure in bytes */
|
---|
131 | DWORD dwFlags;
|
---|
132 | DWORD dwMaxBufferSize;
|
---|
133 | DWORD dwMaxQueueSize; /* Obsolete. */
|
---|
134 | DWORD dwMaxPlayers; /* Maximum players/groups (local + remote) */
|
---|
135 | DWORD dwHundredBaud; /* Bandwidth in 100 bits per second units;
|
---|
136 | * i.e. 24 is 2400, 96 is 9600, etc.
|
---|
137 | */
|
---|
138 | DWORD dwLatency; /* Estimated latency; 0 = unknown */
|
---|
139 | DWORD dwMaxLocalPlayers; /* Maximum # of locally created players */
|
---|
140 | DWORD dwHeaderLength; /* Maximum header length in bytes */
|
---|
141 | DWORD dwTimeout; /* Service provider's suggested timeout value
|
---|
142 | * This is how long DirectPlay will wait for
|
---|
143 | * responses to system messages
|
---|
144 | */
|
---|
145 | } DPCAPS, *LPDPCAPS;
|
---|
146 |
|
---|
147 | typedef struct tagDPNAME
|
---|
148 | {
|
---|
149 | DWORD dwSize;
|
---|
150 | DWORD dwFlags; /* Not used must be 0 */
|
---|
151 |
|
---|
152 | union /*playerShortName */ /* Player's Handle? */
|
---|
153 | {
|
---|
154 | LPWSTR lpszShortName;
|
---|
155 | LPSTR lpszShortNameA;
|
---|
156 | }psn;
|
---|
157 |
|
---|
158 | union /*playerLongName */ /* Player's formal/real name */
|
---|
159 | {
|
---|
160 | LPWSTR lpszLongName;
|
---|
161 | LPSTR lpszLongNameA;
|
---|
162 | }pln;
|
---|
163 |
|
---|
164 | } DPNAME, *LPDPNAME;
|
---|
165 |
|
---|
166 | #define DPLONGNAMELEN 52
|
---|
167 | #define DPSHORTNAMELEN 20
|
---|
168 | #define DPSESSIONNAMELEN 32
|
---|
169 | #define DPPASSWORDLEN 16
|
---|
170 | #define DPUSERRESERVED 16
|
---|
171 |
|
---|
172 | typedef struct tagDPSESSIONDESC
|
---|
173 | {
|
---|
174 | DWORD dwSize;
|
---|
175 | GUID guidSession;
|
---|
176 | DWORD dwSession;
|
---|
177 | DWORD dwMaxPlayers;
|
---|
178 | DWORD dwCurrentPlayers;
|
---|
179 | DWORD dwFlags;
|
---|
180 | char szSessionName[ DPSESSIONNAMELEN ];
|
---|
181 | char szUserField[ DPUSERRESERVED ];
|
---|
182 | DWORD dwReserved1;
|
---|
183 | char szPassword[ DPPASSWORDLEN ];
|
---|
184 | DWORD dwReserved2;
|
---|
185 | DWORD dwUser1;
|
---|
186 | DWORD dwUser2;
|
---|
187 | DWORD dwUser3;
|
---|
188 | DWORD dwUser4;
|
---|
189 | } DPSESSIONDESC, *LPDPSESSIONDESC;
|
---|
190 |
|
---|
191 | typedef struct tagDPSESSIONDESC2
|
---|
192 | {
|
---|
193 | DWORD dwSize;
|
---|
194 | DWORD dwFlags;
|
---|
195 | GUID guidInstance;
|
---|
196 | GUID guidApplication; /* GUID of the DP application, GUID_NULL if
|
---|
197 | * all applications! */
|
---|
198 |
|
---|
199 | DWORD dwMaxPlayers;
|
---|
200 | DWORD dwCurrentPlayers; /* (read only value) */
|
---|
201 |
|
---|
202 | union /* Session name */
|
---|
203 | {
|
---|
204 | LPWSTR lpszSessionName;
|
---|
205 | LPSTR lpszSessionNameA;
|
---|
206 | }sess;
|
---|
207 |
|
---|
208 | union /* Optional password */
|
---|
209 | {
|
---|
210 | LPWSTR lpszPassword;
|
---|
211 | LPSTR lpszPasswordA;
|
---|
212 | }pass;
|
---|
213 |
|
---|
214 | DWORD dwReserved1;
|
---|
215 | DWORD dwReserved2;
|
---|
216 |
|
---|
217 | DWORD dwUser1; /* For use by the application */
|
---|
218 | DWORD dwUser2;
|
---|
219 | DWORD dwUser3;
|
---|
220 | DWORD dwUser4;
|
---|
221 | } DPSESSIONDESC2, *LPDPSESSIONDESC2;
|
---|
222 | typedef const DPSESSIONDESC2* LPCDPSESSIONDESC2;
|
---|
223 |
|
---|
224 | #define DPOPEN_JOIN 0x00000001
|
---|
225 | #define DPOPEN_CREATE 0x00000002
|
---|
226 | #define DPOPEN_RETURNSTATUS DPENUMSESSIONS_RETURNSTATUS
|
---|
227 |
|
---|
228 | #define DPSESSION_NEWPLAYERSDISABLED 0x00000001
|
---|
229 | #define DPSESSION_MIGRATEHOST 0x00000004
|
---|
230 | #define DPSESSION_NOMESSAGEID 0x00000008
|
---|
231 | #define DPSESSION_JOINDISABLED 0x00000020
|
---|
232 | #define DPSESSION_KEEPALIVE 0x00000040
|
---|
233 | #define DPSESSION_NODATAMESSAGES 0x00000080
|
---|
234 | #define DPSESSION_SECURESERVER 0x00000100
|
---|
235 | #define DPSESSION_PRIVATE 0x00000200
|
---|
236 | #define DPSESSION_PASSWORDREQUIRED 0x00000400
|
---|
237 | #define DPSESSION_MULTICASTSERVER 0x00000800
|
---|
238 | #define DPSESSION_CLIENTSERVER 0x00001000
|
---|
239 |
|
---|
240 | typedef struct tagDPLCONNECTION
|
---|
241 | {
|
---|
242 | DWORD dwSize;
|
---|
243 | DWORD dwFlags;
|
---|
244 | LPDPSESSIONDESC2 lpSessionDesc; /* Ptr to session desc to use for connect */
|
---|
245 | LPDPNAME lpPlayerName; /* Ptr to player name structure */
|
---|
246 | GUID guidSP; /* GUID of Service Provider to use */
|
---|
247 | LPVOID lpAddress; /* Ptr to Address of Service Provider to use */
|
---|
248 | DWORD dwAddressSize; /* Size of address data */
|
---|
249 | } DPLCONNECTION, *LPDPLCONNECTION;
|
---|
250 |
|
---|
251 | /* DPLCONNECTION flags (for dwFlags) */
|
---|
252 | #define DPLCONNECTION_CREATESESSION DPOPEN_CREATE
|
---|
253 | #define DPLCONNECTION_JOINSESSION DPOPEN_JOIN
|
---|
254 |
|
---|
255 | typedef struct tagDPCHAT
|
---|
256 | {
|
---|
257 | DWORD dwSize;
|
---|
258 | DWORD dwFlags;
|
---|
259 | union
|
---|
260 | { /* Message string */
|
---|
261 | LPWSTR lpszMessage; /* Unicode */
|
---|
262 | LPSTR lpszMessageA; /* ANSI */
|
---|
263 | }msgstr;
|
---|
264 | } DPCHAT, *LPDPCHAT;
|
---|
265 |
|
---|
266 | typedef struct tagDPSECURITYDESC
|
---|
267 | {
|
---|
268 | DWORD dwSize; /* Size of structure */
|
---|
269 | DWORD dwFlags; /* Not used. Must be zero. */
|
---|
270 | union
|
---|
271 | { /* SSPI provider name */
|
---|
272 | LPWSTR lpszSSPIProvider; /* Unicode */
|
---|
273 | LPSTR lpszSSPIProviderA; /* ANSI */
|
---|
274 | }sspi;
|
---|
275 | union
|
---|
276 | { /* CAPI provider name */
|
---|
277 | LPWSTR lpszCAPIProvider; /* Unicode */
|
---|
278 | LPSTR lpszCAPIProviderA; /* ANSI */
|
---|
279 | }capi;
|
---|
280 | DWORD dwCAPIProviderType; /* Crypto Service Provider type */
|
---|
281 | DWORD dwEncryptionAlgorithm; /* Encryption Algorithm type */
|
---|
282 | } DPSECURITYDESC, *LPDPSECURITYDESC;
|
---|
283 |
|
---|
284 | typedef const DPSECURITYDESC *LPCDPSECURITYDESC;
|
---|
285 |
|
---|
286 | typedef struct tagDPCREDENTIALS
|
---|
287 | {
|
---|
288 | DWORD dwSize; /* Size of structure */
|
---|
289 | DWORD dwFlags; /* Not used. Must be zero. */
|
---|
290 | union
|
---|
291 | { /* User name of the account */
|
---|
292 | LPWSTR lpszUsername; /* Unicode */
|
---|
293 | LPSTR lpszUsernameA; /* ANSI */
|
---|
294 | }name;
|
---|
295 | union
|
---|
296 | { /* Password of the account */
|
---|
297 | LPWSTR lpszPassword; /* Unicode */
|
---|
298 | LPSTR lpszPasswordA; /* ANSI */
|
---|
299 | }pass;
|
---|
300 | union
|
---|
301 | { /* Domain name of the account */
|
---|
302 | LPWSTR lpszDomain; /* Unicode */
|
---|
303 | LPSTR lpszDomainA; /* ANSI */
|
---|
304 | }domain;
|
---|
305 | } DPCREDENTIALS, *LPDPCREDENTIALS;
|
---|
306 |
|
---|
307 | typedef const DPCREDENTIALS *LPCDPCREDENTIALS;
|
---|
308 |
|
---|
309 |
|
---|
310 |
|
---|
311 | typedef BOOL (CALLBACK* LPDPENUMDPCALLBACKW)(
|
---|
312 | LPGUID lpguidSP,
|
---|
313 | LPWSTR lpSPName,
|
---|
314 | DWORD dwMajorVersion,
|
---|
315 | DWORD dwMinorVersion,
|
---|
316 | LPVOID lpContext);
|
---|
317 |
|
---|
318 | typedef BOOL (CALLBACK* LPDPENUMDPCALLBACKA)(
|
---|
319 | LPGUID lpguidSP,
|
---|
320 | LPSTR lpSPName, /* ptr to str w/ driver description */
|
---|
321 | DWORD dwMajorVersion, /* Major # of driver spec in lpguidSP */
|
---|
322 | DWORD dwMinorVersion, /* Minor # of driver spec in lpguidSP */
|
---|
323 | LPVOID lpContext); /* User given */
|
---|
324 |
|
---|
325 | typedef const GUID *LPCGUID;
|
---|
326 | typedef const DPNAME *LPCDPNAME;
|
---|
327 |
|
---|
328 | typedef BOOL (CALLBACK* LPDPENUMCONNECTIONSCALLBACK)(
|
---|
329 | LPCGUID lpguidSP,
|
---|
330 | LPVOID lpConnection,
|
---|
331 | DWORD dwConnectionSize,
|
---|
332 | LPCDPNAME lpName,
|
---|
333 | DWORD dwFlags,
|
---|
334 | LPVOID lpContext);
|
---|
335 |
|
---|
336 | typedef BOOL (CALLBACK* LPDPENUMSESSIONSCALLBACK)(
|
---|
337 | LPDPSESSIONDESC lpDPSessionDesc,
|
---|
338 | LPVOID lpContext,
|
---|
339 | LPDWORD lpdwTimeOut,
|
---|
340 | DWORD dwFlags);
|
---|
341 |
|
---|
342 |
|
---|
343 | extern HRESULT WINAPI DirectPlayEnumerateA( LPDPENUMDPCALLBACKA, LPVOID );
|
---|
344 | extern HRESULT WINAPI DirectPlayEnumerateW( LPDPENUMDPCALLBACKW, LPVOID );
|
---|
345 | extern HRESULT WINAPI DirectPlayCreate( LPGUID lpGUID, LPDIRECTPLAY2 *lplpDP, IUnknown *pUnk);
|
---|
346 |
|
---|
347 | typedef BOOL (CALLBACK* LPDPENUMPLAYERSCALLBACK)(
|
---|
348 | DPID dpId,
|
---|
349 | LPSTR lpFriendlyName,
|
---|
350 | LPSTR lpFormalName,
|
---|
351 | DWORD dwFlags,
|
---|
352 | LPVOID lpContext );
|
---|
353 |
|
---|
354 | typedef BOOL (CALLBACK* LPDPENUMPLAYERSCALLBACK2)(
|
---|
355 | DPID dpId,
|
---|
356 | DWORD dwPlayerType,
|
---|
357 | LPCDPNAME lpName,
|
---|
358 | DWORD dwFlags,
|
---|
359 | LPVOID lpContext );
|
---|
360 |
|
---|
361 | typedef BOOL (CALLBACK* LPDPENUMSESSIONSCALLBACK2)(
|
---|
362 | LPCDPSESSIONDESC2 lpThisSD,
|
---|
363 | LPDWORD lpdwTimeOut,
|
---|
364 | DWORD dwFlags,
|
---|
365 | LPVOID lpContext );
|
---|
366 |
|
---|
367 |
|
---|
368 | /*****************************************************************************
|
---|
369 | * IDirectPlay interface
|
---|
370 | */
|
---|
371 | #define ICOM_INTERFACE IDirectPlay
|
---|
372 | #define IDirectPlay_METHODS \
|
---|
373 | ICOM_METHOD2(HRESULT,AddPlayerToGroup, DPID,idGroup, DPID,idPlayer) \
|
---|
374 | ICOM_METHOD (HRESULT,Close) \
|
---|
375 | ICOM_METHOD4(HRESULT,CreatePlayer, LPDPID,lpidPlayer, LPSTR,lpPlayerName, LPSTR,, LPHANDLE,) \
|
---|
376 | ICOM_METHOD3(HRESULT,CreateGroup, LPDPID,lpidGroup, LPSTR,lpGroupName, LPSTR,) \
|
---|
377 | ICOM_METHOD2(HRESULT,DeletePlayerFromGroup, DPID,idGroup, DPID,idPlayer) \
|
---|
378 | ICOM_METHOD1(HRESULT,DestroyPlayer, DPID,idPlayer) \
|
---|
379 | ICOM_METHOD1(HRESULT,DestroyGroup, DPID,idGroup) \
|
---|
380 | ICOM_METHOD1(HRESULT,EnableNewPlayers, BOOL,) \
|
---|
381 | ICOM_METHOD4(HRESULT,EnumGroupPlayers, DPID,idGroup, LPDPENUMPLAYERSCALLBACK,lpEnumPlayersCallback, LPVOID,lpContext, DWORD,dwFlags) \
|
---|
382 | ICOM_METHOD4(HRESULT,EnumGroups, DWORD,, LPDPENUMPLAYERSCALLBACK,lpEnumPlayersCallback, LPVOID,lpContext, DWORD,dwFlags) \
|
---|
383 | ICOM_METHOD4(HRESULT,EnumPlayers, DWORD,, LPDPENUMPLAYERSCALLBACK,lpEnumPlayersCallback, LPVOID,lpContext, DWORD,dwFlags) \
|
---|
384 | ICOM_METHOD5(HRESULT,EnumSessions, LPDPSESSIONDESC,lpsd, DWORD,dwTimeout, LPDPENUMSESSIONSCALLBACK,lpEnumSessionsCallback, LPVOID,lpContext, DWORD,dwFlags) \
|
---|
385 | ICOM_METHOD1(HRESULT,GetCaps, LPDPCAPS,lpDPCaps) \
|
---|
386 | ICOM_METHOD2(HRESULT,GetMessageCount, DPID,idPlayer, LPDWORD,lpdwCount) \
|
---|
387 | ICOM_METHOD2(HRESULT,GetPlayerCaps, DPID,idPlayer, LPDPCAPS,lpPlayerCaps) \
|
---|
388 | ICOM_METHOD5(HRESULT,GetPlayerName, DPID,idPlayer, LPSTR,, LPDWORD,, LPSTR,, LPDWORD,) \
|
---|
389 | ICOM_METHOD1(HRESULT,Initialize, LPGUID,lpGUID) \
|
---|
390 | ICOM_METHOD1(HRESULT,Open, LPDPSESSIONDESC,lpsd) \
|
---|
391 | ICOM_METHOD5(HRESULT,Receive, LPDPID,lpidFrom, LPDPID,lpidTo, DWORD,dwFlags, LPVOID,lpData, LPDWORD,lpdwDataSize) \
|
---|
392 | ICOM_METHOD1(HRESULT,SaveSession, LPSTR,) \
|
---|
393 | ICOM_METHOD5(HRESULT,Send, DPID,idFrom, DPID,idTo, DWORD,dwFlags, LPVOID,lpData, DWORD,dwDataSize) \
|
---|
394 | ICOM_METHOD3(HRESULT,SetPlayerName, DPID,idPlayer, LPSTR,lpPlayerName, LPSTR,)
|
---|
395 | #define IDirectPlay_IMETHODS \
|
---|
396 | IUnknown_IMETHODS \
|
---|
397 | IDirectPlay_METHODS
|
---|
398 | ICOM_DEFINE(IDirectPlay,IUnknown)
|
---|
399 | #undef ICOM_INTERFACE
|
---|
400 |
|
---|
401 | #ifdef ICOM_CINTERFACE
|
---|
402 | /*** IUnknown methods ***/
|
---|
403 | #define IDirectPlay_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
---|
404 | #define IDirectPlay_AddRef(p) ICOM_CALL (AddRef,p)
|
---|
405 | #define IDirectPlay_Release(p) ICOM_CALL (Release,p)
|
---|
406 | /*** IDirectPlay methods ***/
|
---|
407 | #define IDirectPlay_AddPlayerToGroup(p,a,b) ICOM_CALL2(AddPlayerToGroup,p,a,b)
|
---|
408 | #define IDirectPlay_Close(p) ICOM_CALL (Close,p)
|
---|
409 | #define IDirectPlay_CreatePlayer(p,a,b,c,d) ICOM_CALL4(CreatePlayer,p,a,b,c,d)
|
---|
410 | #define IDirectPlay_CreateGroup(p,a,b,c) ICOM_CALL3(CreateGroup,p,a,b,c)
|
---|
411 | #define IDirectPlay_DeletePlayerFromGroup(p,a,b) ICOM_CALL2(DeletePlayerFromGroup,p,a,b)
|
---|
412 | #define IDirectPlay_DestroyPlayer(p,a) ICOM_CALL1(DestroyPlayer,p,a)
|
---|
413 | #define IDirectPlay_DestroyGroup(p,a) ICOM_CALL1(DestroyGroup,p,a)
|
---|
414 | #define IDirectPlay_EnableNewPlayers(p,a) ICOM_CALL1(EnableNewPlayers,p,a)
|
---|
415 | #define IDirectPlay_EnumGroupPlayers(p,a,b,c,d) ICOM_CALL4(EnumGroupPlayers,p,a,b,c,d)
|
---|
416 | #define IDirectPlay_EnumGroups(p,a,b,c,d) ICOM_CALL4(EnumGroups,p,a,b,c,d)
|
---|
417 | #define IDirectPlay_EnumPlayers(p,a,b,c,d) ICOM_CALL4(EnumPlayers,p,a,b,c,d)
|
---|
418 | #define IDirectPlay_EnumSessions(p,a,b,c,d,e) ICOM_CALL5(EnumSessions,p,a,b,c,d,e)
|
---|
419 | #define IDirectPlay_GetCaps(p,a) ICOM_CALL1(GetCaps,p,a)
|
---|
420 | #define IDirectPlay_GetMessageCount(p,a,b) ICOM_CALL2(GetMessageCount,p,a,b)
|
---|
421 | #define IDirectPlay_GetPlayerCaps(p,a,b) ICOM_CALL2(GetPlayerCaps,p,a,b)
|
---|
422 | #define IDirectPlay_GetPlayerName(p,a,b,c,d,e) ICOM_CALL5(GetPlayerName,p,a,b,c,d,e)
|
---|
423 | #define IDirectPlay_Initialize(p,a) ICOM_CALL1(Initialize,p,a)
|
---|
424 | #define IDirectPlay_Open(p,a) ICOM_CALL1(Open,p,a)
|
---|
425 | #define IDirectPlay_Receive(p,a,b,c,d,e) ICOM_CALL5(Receive,p,a,b,c,d,e)
|
---|
426 | #define IDirectPlay_SaveSession(p,a) ICOM_CALL1(SaveSession,p,a)
|
---|
427 | #define IDirectPlay_Send(p,a,b,c,d,e) ICOM_CALL5(Send,p,a,b,c,d,e)
|
---|
428 | #define IDirectPlay_SetPlayerName(p,a,b,c) ICOM_CALL3(SetPlayerName,p,a,b,c)
|
---|
429 | #endif
|
---|
430 |
|
---|
431 |
|
---|
432 | /*****************************************************************************
|
---|
433 | * IDirectPlay2 interface
|
---|
434 | */
|
---|
435 | #define ICOM_INTERFACE IDirectPlay2
|
---|
436 | #define IDirectPlay2_METHODS \
|
---|
437 | ICOM_METHOD2(HRESULT,AddPlayerToGroup, DPID,idGroup, DPID,idPlayer) \
|
---|
438 | ICOM_METHOD (HRESULT,Close) \
|
---|
439 | ICOM_METHOD5(HRESULT,CreateGroup, LPDPID,lpidGroup, LPDPNAME,lpGroupName, LPVOID,lpData, DWORD,dwDataSize, DWORD,dwFlags) \
|
---|
440 | ICOM_METHOD6(HRESULT,CreatePlayer, LPDPID,lpidPlayer, LPDPNAME,lpPlayerName, HANDLE,hEvent, LPVOID,lpData, DWORD,dwDataSize, DWORD,dwFlags) \
|
---|
441 | ICOM_METHOD2(HRESULT,DeletePlayerFromGroup, DPID,idGroup, DPID,idPlayer) \
|
---|
442 | ICOM_METHOD1(HRESULT,DestroyGroup, DPID,idGroup) \
|
---|
443 | ICOM_METHOD1(HRESULT,DestroyPlayer, DPID,idPlayer) \
|
---|
444 | ICOM_METHOD5(HRESULT,EnumGroupPlayers, DPID,idGroup, LPGUID,lpguidInstance, LPDPENUMPLAYERSCALLBACK2,lpEnumPlayersCallback2, LPVOID,lpContext, DWORD,dwFlags) \
|
---|
445 | ICOM_METHOD4(HRESULT,EnumGroups, LPGUID,lpguidInstance, LPDPENUMPLAYERSCALLBACK2,lpEnumPlayersCallback2, LPVOID,lpContext, DWORD,dwFlags) \
|
---|
446 | ICOM_METHOD4(HRESULT,EnumPlayers, LPGUID,lpguidInstance, LPDPENUMPLAYERSCALLBACK2,lpEnumPlayersCallback2, LPVOID,lpContext, DWORD,dwFlags) \
|
---|
447 | ICOM_METHOD5(HRESULT,EnumSessions, LPDPSESSIONDESC2,lpsd, DWORD,dwTimeout, LPDPENUMSESSIONSCALLBACK2,lpEnumSessionsCallback2, LPVOID,lpContext, DWORD,dwFlags) \
|
---|
448 | ICOM_METHOD2(HRESULT,GetCaps, LPDPCAPS,lpDPCaps, DWORD,dwFlags) \
|
---|
449 | ICOM_METHOD4(HRESULT,GetGroupData, DPID,idGroup, LPVOID,lpData, LPDWORD,lpdwDataSize, DWORD,dwFlags) \
|
---|
450 | ICOM_METHOD3(HRESULT,GetGroupName, DPID,idGroup, LPVOID,lpData, LPDWORD,lpdwDataSize) \
|
---|
451 | ICOM_METHOD2(HRESULT,GetMessageCount, DPID,idPlayer, LPDWORD,lpdwCount) \
|
---|
452 | ICOM_METHOD3(HRESULT,GetPlayerAddress, DPID,idPlayer, LPVOID,lpData, LPDWORD,lpdwDataSize) \
|
---|
453 | ICOM_METHOD3(HRESULT,GetPlayerCaps, DPID,idPlayer, LPDPCAPS,lpPlayerCaps, DWORD,dwFlags) \
|
---|
454 | ICOM_METHOD4(HRESULT,GetPlayerData, DPID,idPlayer, LPVOID,lpData, LPDWORD,lpdwDataSize, DWORD,dwFlags) \
|
---|
455 | ICOM_METHOD3(HRESULT,GetPlayerName, DPID,idPlayer, LPVOID,lpData, LPDWORD,lpdwDataSize) \
|
---|
456 | ICOM_METHOD2(HRESULT,GetSessionDesc, LPVOID,lpData, LPDWORD,lpdwDataSize) \
|
---|
457 | ICOM_METHOD1(HRESULT,Initialize, LPGUID,lpGUID) \
|
---|
458 | ICOM_METHOD2(HRESULT,Open, LPDPSESSIONDESC2,lpsd, DWORD,dwFlags) \
|
---|
459 | ICOM_METHOD5(HRESULT,Receive, LPDPID,lpidFrom, LPDPID,lpidTo, DWORD,dwFlags, LPVOID,lpData, LPDWORD,lpdwDataSize) \
|
---|
460 | ICOM_METHOD5(HRESULT,Send, DPID,idFrom, DPID,idTo, DWORD,dwFlags, LPVOID,lpData, DWORD,dwDataSize) \
|
---|
461 | ICOM_METHOD4(HRESULT,SetGroupData, DPID,idGroup, LPVOID,lpData, DWORD,dwDataSize, DWORD,dwFlags) \
|
---|
462 | ICOM_METHOD3(HRESULT,SetGroupName, DPID,idGroup, LPDPNAME,lpGroupName, DWORD,dwFlags) \
|
---|
463 | ICOM_METHOD4(HRESULT,SetPlayerData, DPID,idPlayer, LPVOID,lpData, DWORD,dwDataSize, DWORD,dwFlags) \
|
---|
464 | ICOM_METHOD3(HRESULT,SetPlayerName, DPID,idPlayer, LPDPNAME,lpPlayerName, DWORD,dwFlags) \
|
---|
465 | ICOM_METHOD2(HRESULT,SetSessionDesc, LPDPSESSIONDESC2,lpSessDesc, DWORD,dwFlags)
|
---|
466 | #define IDirectPlay2_IMETHODS \
|
---|
467 | IUnknown_IMETHODS \
|
---|
468 | IDirectPlay2_METHODS
|
---|
469 | ICOM_DEFINE(IDirectPlay2,IUnknown)
|
---|
470 | #undef ICOM_INTERFACE
|
---|
471 |
|
---|
472 | #ifdef ICOM_CINTERFACE
|
---|
473 | /*** IUnknown methods ***/
|
---|
474 | #define IDirectPlay2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
---|
475 | #define IDirectPlay2_AddRef(p) ICOM_CALL (AddRef,p)
|
---|
476 | #define IDirectPlay2_Release(p) ICOM_CALL (Release,p)
|
---|
477 | /*** IDirectPlay2 methods ***/
|
---|
478 | #define IDirectPlay2_AddPlayerToGroup(p,a,b) ICOM_CALL2(AddPlayerToGroup,p,a,b)
|
---|
479 | #define IDirectPlay2_Close(p) ICOM_CALL (Close,p)
|
---|
480 | #define IDirectPlay2_CreateGroup(p,a,b,c,d,e) ICOM_CALL5(CreateGroup,p,a,b,c,d,e)
|
---|
481 | #define IDirectPlay2_CreatePlayer(p,a,b,c,d,e,f) ICOM_CALL6(CreatePlayer,p,a,b,c,d,e,f)
|
---|
482 | #define IDirectPlay2_DeletePlayerFromGroup(p,a,b) ICOM_CALL2(DeletePlayerFromGroup,p,a,b)
|
---|
483 | #define IDirectPlay2_DestroyGroup(p,a) ICOM_CALL1(DestroyGroup,p,a)
|
---|
484 | #define IDirectPlay2_DestroyPlayer(p,a) ICOM_CALL1(DestroyPlayer,p,a)
|
---|
485 | #define IDirectPlay2_EnumGroupPlayers(p,a,b,c,d,e) ICOM_CALL5(EnumGroupPlayers,p,a,b,c,d,e)
|
---|
486 | #define IDirectPlay2_EnumGroups(p,a,b,c,d) ICOM_CALL4(EnumGroups,p,a,b,c,d)
|
---|
487 | #define IDirectPlay2_EnumPlayers(p,a,b,c,d) ICOM_CALL4(EnumPlayers,p,a,b,c,d)
|
---|
488 | #define IDirectPlay2_EnumSessions(p,a,b,c,d,e) ICOM_CALL5(EnumSessions,p,a,b,c,d,e)
|
---|
489 | #define IDirectPlay2_GetCaps(p,a,b) ICOM_CALL2(GetCaps,p,a,b)
|
---|
490 | #define IDirectPlay2_GetGroupData(p,a,b,c,d) ICOM_CALL4(GetGroupData,p,a,b,c,d)
|
---|
491 | #define IDirectPlay2_GetGroupName(p,a,b,c) ICOM_CALL3(GetGroupName,p,a,b,c)
|
---|
492 | #define IDirectPlay2_GetMessageCount(p,a,b) ICOM_CALL2(GetMessageCount,p,a,b)
|
---|
493 | #define IDirectPlay2_GetPlayerAddress(p,a,b,c) ICOM_CALL3(GetPlayerAddress,p,a,b,c)
|
---|
494 | #define IDirectPlay2_GetPlayerCaps(p,a,b,c) ICOM_CALL3(GetPlayerCaps,p,a,b,c)
|
---|
495 | #define IDirectPlay2_GetPlayerData(p,a,b,c,d) ICOM_CALL4(GetPlayerData,p,a,b,c,d)
|
---|
496 | #define IDirectPlay2_GetPlayerName(p,a,b,c) ICOM_CALL3(GetPlayerName,p,a,b,c)
|
---|
497 | #define IDirectPlay2_GetSessionDesc(p,a,b) ICOM_CALL2(GetSessionDesc,p,a,b)
|
---|
498 | #define IDirectPlay2_Initialize(p,a) ICOM_CALL1(Initialize,p,a)
|
---|
499 | #define IDirectPlay2_Open(p,a,b) ICOM_CALL2(Open,p,a,b)
|
---|
500 | #define IDirectPlay2_Receive(p,a,b,c,d,e) ICOM_CALL5(Receive,p,a,b,c,d,e)
|
---|
501 | #define IDirectPlay2_Send(p,a,b,c,d,e) ICOM_CALL5(Send,p,a,b,c,d,e)
|
---|
502 | #define IDirectPlay2_SetGroupData(p,a,b,c,d) ICOM_CALL4(SetGroupData,p,a,b,c,d)
|
---|
503 | #define IDirectPlay2_SetGroupName(p,a,b,c) ICOM_CALL3(SetGroupName,p,a,b,c)
|
---|
504 | #define IDirectPlay2_SetPlayerData(p,a,b,c,d) ICOM_CALL4(SetPlayerData,p,a,b,c,d)
|
---|
505 | #define IDirectPlay2_SetPlayerName(p,a,b,c) ICOM_CALL3(SetPlayerName,p,a,b,c)
|
---|
506 | #define IDirectPlay2_SetSessionDesc(p,a,b) ICOM_CALL2(SetSessionDesc,p,a,b)
|
---|
507 | #endif
|
---|
508 |
|
---|
509 |
|
---|
510 | /*****************************************************************************
|
---|
511 | * IDirectPlay3 interface
|
---|
512 | */
|
---|
513 | #define ICOM_INTERFACE IDirectPlay3
|
---|
514 | #define IDirectPlay3_METHODS \
|
---|
515 | ICOM_METHOD2(HRESULT,AddGroupToGroup, DPID,idParentGroup, DPID,idGroup) \
|
---|
516 | ICOM_METHOD6(HRESULT,CreateGroupInGroup, DPID,idParentGroup, LPDPID,lpidGroup, LPDPNAME,lpGroupName, LPVOID,lpData, DWORD,dwDataSize, DWORD,dwFlags) \
|
---|
517 | ICOM_METHOD2(HRESULT,DeleteGroupFromGroup, DPID,idParentGroup, DPID,idGroup) \
|
---|
518 | ICOM_METHOD4(HRESULT,EnumConnections, LPCGUID,lpguidApplication, LPDPENUMCONNECTIONSCALLBACK,lpEnumCallback, LPVOID,lpContext, DWORD,dwFlags) \
|
---|
519 | ICOM_METHOD5(HRESULT,EnumGroupsInGroup, DPID,idGroup, LPGUID,lpguidInstance, LPDPENUMPLAYERSCALLBACK2,lpEnumCallback, LPVOID,lpContext, DWORD,dwFlags) \
|
---|
520 | ICOM_METHOD4(HRESULT,GetGroupConnectionSettings, DWORD,dwFlags, DPID,idGroup, LPVOID,lpData, LPDWORD,lpdwDataSize) \
|
---|
521 | ICOM_METHOD2(HRESULT,InitializeConnection, LPVOID,lpConnection, DWORD,dwFlags) \
|
---|
522 | ICOM_METHOD4(HRESULT,SecureOpen, LPCDPSESSIONDESC2,lpsd, DWORD,dwFlags, LPCDPSECURITYDESC,lpSecurity, LPCDPCREDENTIALS,lpCredentials) \
|
---|
523 | ICOM_METHOD4(HRESULT,SendChatMessage, DPID,idFrom, DPID,idTo, DWORD,dwFlags, LPDPCHAT,lpChatMessage) \
|
---|
524 | ICOM_METHOD3(HRESULT,SetGroupConnectionSettings, DWORD,dwFlags, DPID,idGroup, LPDPLCONNECTION,lpConnection) \
|
---|
525 | ICOM_METHOD2(HRESULT,StartSession, DWORD,dwFlags, DPID,idGroup) \
|
---|
526 | ICOM_METHOD2(HRESULT,GetGroupFlags, DPID,idGroup, LPDWORD,lpdwFlags) \
|
---|
527 | ICOM_METHOD2(HRESULT,GetGroupParent, DPID,idGroup, LPDPID,lpidParent) \
|
---|
528 | ICOM_METHOD4(HRESULT,GetPlayerAccount, DPID,idPlayer, DWORD,dwFlags, LPVOID,lpData, LPDWORD,lpdwDataSize) \
|
---|
529 | ICOM_METHOD2(HRESULT,GetPlayerFlags, DPID,idPlayer, LPDWORD,lpdwFlags)
|
---|
530 | #define IDirectPlay3_IMETHODS \
|
---|
531 | IDirectPlay2_IMETHODS \
|
---|
532 | IDirectPlay3_METHODS
|
---|
533 | ICOM_DEFINE(IDirectPlay3,IDirectPlay2)
|
---|
534 | #undef ICOM_INTERFACE
|
---|
535 |
|
---|
536 | #ifdef ICOM_CINTERFACE
|
---|
537 | /*** IUnknown methods ***/
|
---|
538 | #define IDirectPlay3_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
---|
539 | #define IDirectPlay3_AddRef(p) ICOM_CALL (AddRef,p)
|
---|
540 | #define IDirectPlay3_Release(p) ICOM_CALL (Release,p)
|
---|
541 | /*** IDirectPlay2 methods ***/
|
---|
542 | #define IDirectPlay3_AddPlayerToGroup(p,a,b) ICOM_CALL2(AddPlayerToGroup,p,a,b)
|
---|
543 | #define IDirectPlay3_Close(p) ICOM_CALL (Close,p)
|
---|
544 | #define IDirectPlay3_CreateGroup(p,a,b,c,d,e) ICOM_CALL5(CreateGroup,p,a,b,c,d,e)
|
---|
545 | #define IDirectPlay3_CreatePlayer(p,a,b,c,d,e,f) ICOM_CALL6(CreatePlayer,p,a,b,c,d,e,f)
|
---|
546 | #define IDirectPlay3_DeletePlayerFromGroup(p,a,b) ICOM_CALL2(DeletePlayerFromGroup,p,a,b)
|
---|
547 | #define IDirectPlay3_DestroyGroup(p,a) ICOM_CALL1(DestroyGroup,p,a)
|
---|
548 | #define IDirectPlay3_DestroyPlayer(p,a) ICOM_CALL1(DestroyPlayer,p,a)
|
---|
549 | #define IDirectPlay3_EnumGroupPlayers(p,a,b,c,d,e) ICOM_CALL5(EnumGroupPlayers,p,a,b,c,d,e)
|
---|
550 | #define IDirectPlay3_EnumGroups(p,a,b,c,d) ICOM_CALL4(EnumGroups,p,a,b,c,d)
|
---|
551 | #define IDirectPlay3_EnumPlayers(p,a,b,c,d) ICOM_CALL4(EnumPlayers,p,a,b,c,d)
|
---|
552 | #define IDirectPlay3_EnumSessions(p,a,b,c,d,e) ICOM_CALL5(EnumSessions,p,a,b,c,d,e)
|
---|
553 | #define IDirectPlay3_GetCaps(p,a,b) ICOM_CALL2(GetCaps,p,a,b)
|
---|
554 | #define IDirectPlay3_GetGroupData(p,a,b,c,d) ICOM_CALL4(GetGroupData,p,a,b,c,d)
|
---|
555 | #define IDirectPlay3_GetGroupName(p,a,b,c) ICOM_CALL3(GetGroupName,p,a,b,c)
|
---|
556 | #define IDirectPlay3_GetMessageCount(p,a,b) ICOM_CALL2(GetMessageCount,p,a,b)
|
---|
557 | #define IDirectPlay3_GetPlayerAddress(p,a,b,c) ICOM_CALL3(GetPlayerAddress,p,a,b,c)
|
---|
558 | #define IDirectPlay3_GetPlayerCaps(p,a,b,c) ICOM_CALL3(GetPlayerCaps,p,a,b,c)
|
---|
559 | #define IDirectPlay3_GetPlayerData(p,a,b,c,d) ICOM_CALL4(GetPlayerData,p,a,b,c,d)
|
---|
560 | #define IDirectPlay3_GetPlayerName(p,a,b,c) ICOM_CALL3(GetPlayerName,p,a,b,c)
|
---|
561 | #define IDirectPlay3_GetSessionDesc(p,a,b) ICOM_CALL2(GetSessionDesc,p,a,b)
|
---|
562 | #define IDirectPlay3_Initialize(p,a) ICOM_CALL1(Initialize,p,a)
|
---|
563 | #define IDirectPlay3_Open(p,a,b) ICOM_CALL2(Open,p,a,b)
|
---|
564 | #define IDirectPlay3_Receive(p,a,b,c,d,e) ICOM_CALL5(Receive,p,a,b,c,d,e)
|
---|
565 | #define IDirectPlay3_Send(p,a,b,c,d,e) ICOM_CALL5(Send,p,a,b,c,d,e)
|
---|
566 | #define IDirectPlay3_SetGroupData(p,a,b,c,d) ICOM_CALL4(SetGroupData,p,a,b,c,d)
|
---|
567 | #define IDirectPlay3_SetGroupName(p,a,b,c) ICOM_CALL3(SetGroupName,p,a,b,c)
|
---|
568 | #define IDirectPlay3_SetPlayerData(p,a,b,c,d) ICOM_CALL4(SetPlayerData,p,a,b,c,d)
|
---|
569 | #define IDirectPlay3_SetPlayerName(p,a,b,c) ICOM_CALL3(SetPlayerName,p,a,b,c)
|
---|
570 | #define IDirectPlay3_SetSessionDesc(p,a,b) ICOM_CALL2(SetSessionDesc,p,a,b)
|
---|
571 | /*** IDirectPlay3 methods ***/
|
---|
572 | #define IDirectPlay3_AddGroupToGroup(p,a,b) ICOM_CALL2(AddGroupToGroup,p,a,b)
|
---|
573 | #define IDirectPlay3_CreateGroupInGroup(p,a,b,c,d,e,f) ICOM_CALL6(CreateGroupInGroup,p,a,b,c,d,e,f)
|
---|
574 | #define IDirectPlay3_DeleteGroupFromGroup(p,a,b) ICOM_CALL2(DeleteGroupFromGroup,p,a,b)
|
---|
575 | #define IDirectPlay3_EnumConnections(p,a,b,c,d) ICOM_CALL4(EnumConnections,p,a,b,c,d)
|
---|
576 | #define IDirectPlay3_EnumGroupsInGroup(p,a,b,c,d,e) ICOM_CALL5(EnumGroupsInGroup,p,a,b,c,d,e)
|
---|
577 | #define IDirectPlay3_GetGroupConnectionSettings(p,a,b,c,d) ICOM_CALL4(GetGroupConnectionSettings,p,a,b,c,d)
|
---|
578 | #define IDirectPlay3_InitializeConnection(p,a,b) ICOM_CALL2(InitializeConnection,p,a,b)
|
---|
579 | #define IDirectPlay3_SecureOpen(p,a,b,c,d) ICOM_CALL4(SecureOpen,p,a,b,c,d)
|
---|
580 | #define IDirectPlay3_SendChatMessage(p,a,b,c,d) ICOM_CALL4(SendChatMessage,p,a,b,c,d)
|
---|
581 | #define IDirectPlay3_SetGroupConnectionSettings(p,a,b,c) ICOM_CALL3(SetGroupConnectionSettings,p,a,b,c)
|
---|
582 | #define IDirectPlay3_StartSession(p,a,b) ICOM_CALL2(StartSession,p,a,b)
|
---|
583 | #define IDirectPlay3_GetGroupFlags(p,a,b) ICOM_CALL2(GetGroupFlags,p,a,b)
|
---|
584 | #define IDirectPlay3_GetGroupParent(p,a,b) ICOM_CALL2(GetGroupParent,p,a,b)
|
---|
585 | #define IDirectPlay3_GetPlayerAccount(p,a,b,c,d) ICOM_CALL4(GetPlayerAccount,p,a,b,c,d)
|
---|
586 | #define IDirectPlay3_GetPlayerFlags(p,a,b) ICOM_CALL2(GetPlayerFlags,p,a,b)
|
---|
587 | #endif
|
---|
588 |
|
---|
589 |
|
---|
590 | #include "poppack.h"
|
---|
591 |
|
---|
592 | #endif /* __WINE_DPLAY_H */
|
---|