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