1 | /*
|
---|
2 | * Copyright (C) the Wine project
|
---|
3 | *
|
---|
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.
|
---|
8 | *
|
---|
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.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef __WINE_DPLAY_H
|
---|
29 | #define __WINE_DPLAY_H
|
---|
30 |
|
---|
31 | #include <ole2.h>
|
---|
32 |
|
---|
33 | #ifdef __cplusplus
|
---|
34 | extern "C" {
|
---|
35 | #endif /* defined(__cplusplus) */
|
---|
36 |
|
---|
37 | typedef LPVOID (*LPRGLPVOID)[];
|
---|
38 | typedef LPRGLPVOID PRGPVOID, LPRGPVOID, PRGLPVOID, PAPVOID, LPAPVOID, PALPVOID, LPALPVOID;
|
---|
39 |
|
---|
40 | #define VOL volatile
|
---|
41 | typedef VOID * volatile LPVOIDV;
|
---|
42 |
|
---|
43 |
|
---|
44 | /*****************************************************************************
|
---|
45 | * Predeclare the interfaces
|
---|
46 | */
|
---|
47 | DEFINE_GUID(CLSID_DirectPlay,0xd1eb6d20, 0x8923, 0x11d0, 0x9d, 0x97, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb);
|
---|
48 |
|
---|
49 | DEFINE_GUID(IID_IDirectPlay, 0x5454e9a0, 0xdb65, 0x11ce, 0x92, 0x1c, 0x00, 0xaa, 0x00, 0x6c, 0x49, 0x72);
|
---|
50 | typedef struct IDirectPlay *LPDIRECTPLAY;
|
---|
51 |
|
---|
52 | DEFINE_GUID(IID_IDirectPlay2, 0x2b74f7c0, 0x9154, 0x11cf, 0xa9, 0xcd, 0x0, 0xaa, 0x0, 0x68, 0x86, 0xe3);
|
---|
53 | typedef struct IDirectPlay2 *LPDIRECTPLAY2;
|
---|
54 |
|
---|
55 | DEFINE_GUID(IID_IDirectPlay2A,0x9d460580, 0xa822, 0x11cf, 0x96, 0xc, 0x0, 0x80, 0xc7, 0x53, 0x4e, 0x82);
|
---|
56 | typedef struct IDirectPlay2 IDirectPlay2A,*LPDIRECTPLAY2A;
|
---|
57 |
|
---|
58 | DEFINE_GUID(IID_IDirectPlay3, 0x133efe40, 0x32dc, 0x11d0, 0x9c, 0xfb, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb);
|
---|
59 | typedef struct IDirectPlay3 *LPDIRECTPLAY3;
|
---|
60 |
|
---|
61 | DEFINE_GUID(IID_IDirectPlay3A,0x133efe41, 0x32dc, 0x11d0, 0x9c, 0xfb, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb);
|
---|
62 | typedef struct IDirectPlay3 IDirectPlay3A,*LPDIRECTPLAY3A;
|
---|
63 |
|
---|
64 | DEFINE_GUID(IID_IDirectPlay4, 0xab1c530, 0x4745, 0x11d1, 0xa7, 0xa1, 0x0, 0x0, 0xf8, 0x3, 0xab, 0xfc);
|
---|
65 | typedef struct IDirectPlay4 *LPDIRECTPLAY4;
|
---|
66 |
|
---|
67 | DEFINE_GUID(IID_IDirectPlay4A,0xab1c531, 0x4745, 0x11d1, 0xa7, 0xa1, 0x0, 0x0, 0xf8, 0x3, 0xab, 0xfc);
|
---|
68 | typedef struct IDirectPlay4 IDirectPlay4A,*LPDIRECTPLAY4A;
|
---|
69 |
|
---|
70 |
|
---|
71 | /*
|
---|
72 | * GUIDS used by Service Providers shipped with DirectPlay
|
---|
73 | * Use these to identify Service Provider returned by EnumConnections
|
---|
74 | */
|
---|
75 |
|
---|
76 | /* GUID for IPX service provider {685BC400-9D2C-11cf-A9CD-00AA006886E3} */
|
---|
77 | DEFINE_GUID(DPSPGUID_IPX, 0x685bc400, 0x9d2c, 0x11cf, 0xa9, 0xcd, 0x0, 0xaa, 0x0, 0x68, 0x86, 0xe3);
|
---|
78 |
|
---|
79 | /* GUID for TCP/IP service provider {36E95EE0-8577-11cf-960C-0080C7534E82} */
|
---|
80 | DEFINE_GUID(DPSPGUID_TCPIP, 0x36E95EE0, 0x8577, 0x11cf, 0x96, 0xc, 0x0, 0x80, 0xc7, 0x53, 0x4e, 0x82);
|
---|
81 |
|
---|
82 | /* GUID for Serial service provider {0F1D6860-88D9-11cf-9C4E-00A0C905425E} */
|
---|
83 | DEFINE_GUID(DPSPGUID_SERIAL, 0xf1d6860, 0x88d9, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
|
---|
84 |
|
---|
85 | /* GUID for Modem service provider {44EAA760-CB68-11cf-9C4E-00A0C905425E} */
|
---|
86 | DEFINE_GUID(DPSPGUID_MODEM, 0x44eaa760, 0xcb68, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
|
---|
87 |
|
---|
88 |
|
---|
89 | /*****************************************************************************
|
---|
90 | * Miscellaneous
|
---|
91 | */
|
---|
92 |
|
---|
93 | /* Return Values for Direct Play */
|
---|
94 | #define _FACDP 0x877
|
---|
95 | #define MAKE_DPHRESULT( code ) MAKE_HRESULT( 1, _FACDP, code )
|
---|
96 |
|
---|
97 | #define DP_OK S_OK
|
---|
98 | #define DPERR_ALREADYINITIALIZED MAKE_DPHRESULT( 5 )
|
---|
99 | #define DPERR_ACCESSDENIED MAKE_DPHRESULT( 10 )
|
---|
100 | #define DPERR_ACTIVEPLAYERS MAKE_DPHRESULT( 20 )
|
---|
101 | #define DPERR_BUFFERTOOSMALL MAKE_DPHRESULT( 30 )
|
---|
102 | #define DPERR_CANTADDPLAYER MAKE_DPHRESULT( 40 )
|
---|
103 | #define DPERR_CANTCREATEGROUP MAKE_DPHRESULT( 50 )
|
---|
104 | #define DPERR_CANTCREATEPLAYER MAKE_DPHRESULT( 60 )
|
---|
105 | #define DPERR_CANTCREATESESSION MAKE_DPHRESULT( 70 )
|
---|
106 | #define DPERR_CAPSNOTAVAILABLEYET MAKE_DPHRESULT( 80 )
|
---|
107 | #define DPERR_EXCEPTION MAKE_DPHRESULT( 90 )
|
---|
108 | #define DPERR_GENERIC E_FAIL
|
---|
109 | #define DPERR_INVALIDFLAGS MAKE_DPHRESULT( 120 )
|
---|
110 | #define DPERR_INVALIDOBJECT MAKE_DPHRESULT( 130 )
|
---|
111 | #define DPERR_INVALIDPARAM E_INVALIDARG
|
---|
112 | #define DPERR_INVALIDPARAMS DPERR_INVALIDPARAM
|
---|
113 | #define DPERR_INVALIDPLAYER MAKE_DPHRESULT( 150 )
|
---|
114 | #define DPERR_INVALIDGROUP MAKE_DPHRESULT( 155 )
|
---|
115 | #define DPERR_NOCAPS MAKE_DPHRESULT( 160 )
|
---|
116 | #define DPERR_NOCONNECTION MAKE_DPHRESULT( 170 )
|
---|
117 | #define DPERR_NOMEMORY E_OUTOFMEMORY
|
---|
118 | #define DPERR_OUTOFMEMORY DPERR_NOMEMORY
|
---|
119 | #define DPERR_NOMESSAGES MAKE_DPHRESULT( 190 )
|
---|
120 | #define DPERR_NONAMESERVERFOUND MAKE_DPHRESULT( 200 )
|
---|
121 | #define DPERR_NOPLAYERS MAKE_DPHRESULT( 210 )
|
---|
122 | #define DPERR_NOSESSIONS MAKE_DPHRESULT( 220 )
|
---|
123 | #define DPERR_PENDING E_PENDING
|
---|
124 | #define DPERR_SENDTOOBIG MAKE_DPHRESULT( 230 )
|
---|
125 | #define DPERR_TIMEOUT MAKE_DPHRESULT( 240 )
|
---|
126 | #define DPERR_UNAVAILABLE MAKE_DPHRESULT( 250 )
|
---|
127 | #define DPERR_UNSUPPORTED E_NOTIMPL
|
---|
128 | #define DPERR_BUSY MAKE_DPHRESULT( 270 )
|
---|
129 | #define DPERR_USERCANCEL MAKE_DPHRESULT( 280 )
|
---|
130 | #define DPERR_NOINTERFACE E_NOINTERFACE
|
---|
131 | #define DPERR_CANNOTCREATESERVER MAKE_DPHRESULT( 290 )
|
---|
132 | #define DPERR_PLAYERLOST MAKE_DPHRESULT( 300 )
|
---|
133 | #define DPERR_SESSIONLOST MAKE_DPHRESULT( 310 )
|
---|
134 | #define DPERR_UNINITIALIZED MAKE_DPHRESULT( 320 )
|
---|
135 | #define DPERR_NONEWPLAYERS MAKE_DPHRESULT( 330 )
|
---|
136 | #define DPERR_INVALIDPASSWORD MAKE_DPHRESULT( 340 )
|
---|
137 | #define DPERR_CONNECTING MAKE_DPHRESULT( 350 )
|
---|
138 | #define DPERR_CONNECTIONLOST MAKE_DPHRESULT( 360 )
|
---|
139 | #define DPERR_UNKNOWNMESSAGE MAKE_DPHRESULT( 370 )
|
---|
140 | #define DPERR_CANCELFAILED MAKE_DPHRESULT( 380 )
|
---|
141 | #define DPERR_INVALIDPRIORITY MAKE_DPHRESULT( 390 )
|
---|
142 | #define DPERR_NOTHANDLED MAKE_DPHRESULT( 400 )
|
---|
143 | #define DPERR_CANCELLED MAKE_DPHRESULT( 410 )
|
---|
144 | #define DPERR_ABORTED MAKE_DPHRESULT( 420 )
|
---|
145 | #define DPERR_BUFFERTOOLARGE MAKE_DPHRESULT( 1000 )
|
---|
146 | #define DPERR_CANTCREATEPROCESS MAKE_DPHRESULT( 1010 )
|
---|
147 | #define DPERR_APPNOTSTARTED MAKE_DPHRESULT( 1020 )
|
---|
148 | #define DPERR_INVALIDINTERFACE MAKE_DPHRESULT( 1030 )
|
---|
149 | #define DPERR_NOSERVICEPROVIDER MAKE_DPHRESULT( 1040 )
|
---|
150 | #define DPERR_UNKNOWNAPPLICATION MAKE_DPHRESULT( 1050 )
|
---|
151 | #define DPERR_NOTLOBBIED MAKE_DPHRESULT( 1070 )
|
---|
152 | #define DPERR_SERVICEPROVIDERLOADED MAKE_DPHRESULT( 1080 )
|
---|
153 | #define DPERR_ALREADYREGISTERED MAKE_DPHRESULT( 1090 )
|
---|
154 | #define DPERR_NOTREGISTERED MAKE_DPHRESULT( 1100 )
|
---|
155 | #define DPERR_AUTHENTICATIONFAILED MAKE_DPHRESULT( 2000 )
|
---|
156 | #define DPERR_CANTLOADSSPI MAKE_DPHRESULT( 2010 )
|
---|
157 | #define DPERR_ENCRYPTIONFAILED MAKE_DPHRESULT( 2020 )
|
---|
158 | #define DPERR_SIGNFAILED MAKE_DPHRESULT( 2030 )
|
---|
159 | #define DPERR_CANTLOADSECURITYPACKAGE MAKE_DPHRESULT( 2040 )
|
---|
160 | #define DPERR_ENCRYPTIONNOTSUPPORTED MAKE_DPHRESULT( 2050 )
|
---|
161 | #define DPERR_CANTLOADCAPI MAKE_DPHRESULT( 2060 )
|
---|
162 | #define DPERR_NOTLOGGEDIN MAKE_DPHRESULT( 2070 )
|
---|
163 | #define DPERR_LOGONDENIED MAKE_DPHRESULT( 2080 )
|
---|
164 |
|
---|
165 |
|
---|
166 | /* DPID - DirectPlay player and group ID */
|
---|
167 | typedef DWORD DPID, *LPDPID;
|
---|
168 |
|
---|
169 | /* DPID from whence originate messages - just an ID */
|
---|
170 | #define DPID_SYSMSG 0 /* DPID of system */
|
---|
171 | #define DPID_ALLPLAYERS 0 /* DPID of all players */
|
---|
172 | #define DPID_SERVERPLAYER 1 /* DPID of the server player */
|
---|
173 | #define DPID_UNKNOWN 0xFFFFFFFF /* Player ID is unknown */
|
---|
174 |
|
---|
175 | /* DPCAPS - Used to obtain the capabilities of a DirectPlay object */
|
---|
176 | typedef struct tagDPCAPS
|
---|
177 | {
|
---|
178 | DWORD dwSize; /* Size of structure in bytes */
|
---|
179 | DWORD dwFlags;
|
---|
180 | DWORD dwMaxBufferSize;
|
---|
181 | DWORD dwMaxQueueSize; /* Obsolete. */
|
---|
182 | DWORD dwMaxPlayers; /* Maximum players/groups (local + remote) */
|
---|
183 | DWORD dwHundredBaud; /* Bandwidth in 100 bits per second units;
|
---|
184 | * i.e. 24 is 2400, 96 is 9600, etc.
|
---|
185 | */
|
---|
186 | DWORD dwLatency; /* Estimated latency; 0 = unknown */
|
---|
187 | DWORD dwMaxLocalPlayers; /* Maximum # of locally created players */
|
---|
188 | DWORD dwHeaderLength; /* Maximum header length in bytes */
|
---|
189 | DWORD dwTimeout; /* Service provider's suggested timeout value
|
---|
190 | * This is how long DirectPlay will wait for
|
---|
191 | * responses to system messages
|
---|
192 | */
|
---|
193 | } DPCAPS, *LPDPCAPS;
|
---|
194 |
|
---|
195 | typedef struct tagDPNAME
|
---|
196 | {
|
---|
197 | DWORD dwSize;
|
---|
198 | DWORD dwFlags; /* Not used must be 0 */
|
---|
199 |
|
---|
200 | union /*playerShortName */ /* Player's Handle? */
|
---|
201 | {
|
---|
202 | LPWSTR lpszShortName;
|
---|
203 | LPSTR lpszShortNameA;
|
---|
204 | } DUMMYUNIONNAME1;
|
---|
205 |
|
---|
206 | union /*playerLongName */ /* Player's formal/real name */
|
---|
207 | {
|
---|
208 | LPWSTR lpszLongName;
|
---|
209 | LPSTR lpszLongNameA;
|
---|
210 | } DUMMYUNIONNAME2;
|
---|
211 |
|
---|
212 | } DPNAME, *LPDPNAME;
|
---|
213 |
|
---|
214 | #define DPLONGNAMELEN 52
|
---|
215 | #define DPSHORTNAMELEN 20
|
---|
216 | #define DPSESSIONNAMELEN 32
|
---|
217 | #define DPPASSWORDLEN 16
|
---|
218 | #define DPUSERRESERVED 16
|
---|
219 |
|
---|
220 | typedef struct tagDPSESSIONDESC
|
---|
221 | {
|
---|
222 | DWORD dwSize;
|
---|
223 | GUID guidSession;
|
---|
224 | DWORD dwSession;
|
---|
225 | DWORD dwMaxPlayers;
|
---|
226 | DWORD dwCurrentPlayers;
|
---|
227 | DWORD dwFlags;
|
---|
228 | char szSessionName[ DPSESSIONNAMELEN ];
|
---|
229 | char szUserField[ DPUSERRESERVED ];
|
---|
230 | DWORD dwReserved1;
|
---|
231 | char szPassword[ DPPASSWORDLEN ];
|
---|
232 | DWORD dwReserved2;
|
---|
233 | DWORD dwUser1;
|
---|
234 | DWORD dwUser2;
|
---|
235 | DWORD dwUser3;
|
---|
236 | DWORD dwUser4;
|
---|
237 | } DPSESSIONDESC, *LPDPSESSIONDESC;
|
---|
238 |
|
---|
239 | typedef struct tagDPSESSIONDESC2
|
---|
240 | {
|
---|
241 | DWORD dwSize;
|
---|
242 | DWORD dwFlags;
|
---|
243 | GUID guidInstance;
|
---|
244 | GUID guidApplication; /* GUID of the DP application, GUID_NULL if
|
---|
245 | * all applications! */
|
---|
246 |
|
---|
247 | DWORD dwMaxPlayers;
|
---|
248 | DWORD dwCurrentPlayers; /* (read only value) */
|
---|
249 |
|
---|
250 | union /* Session name */
|
---|
251 | {
|
---|
252 | LPWSTR lpszSessionName;
|
---|
253 | LPSTR lpszSessionNameA;
|
---|
254 | } DUMMYUNIONNAME1;
|
---|
255 |
|
---|
256 | union /* Optional password */
|
---|
257 | {
|
---|
258 | LPWSTR lpszPassword;
|
---|
259 | LPSTR lpszPasswordA;
|
---|
260 | } DUMMYUNIONNAME2;
|
---|
261 |
|
---|
262 | DWORD dwReserved1;
|
---|
263 | DWORD dwReserved2;
|
---|
264 |
|
---|
265 | DWORD dwUser1; /* For use by the application */
|
---|
266 | DWORD dwUser2;
|
---|
267 | DWORD dwUser3;
|
---|
268 | DWORD dwUser4;
|
---|
269 | } DPSESSIONDESC2, *LPDPSESSIONDESC2;
|
---|
270 | typedef const DPSESSIONDESC2* LPCDPSESSIONDESC2;
|
---|
271 |
|
---|
272 | #define DPOPEN_JOIN 0x00000001
|
---|
273 | #define DPOPEN_CREATE 0x00000002
|
---|
274 | #define DPOPEN_RETURNSTATUS DPENUMSESSIONS_RETURNSTATUS
|
---|
275 |
|
---|
276 | #define DPSESSION_NEWPLAYERSDISABLED 0x00000001
|
---|
277 | #define DPSESSION_MIGRATEHOST 0x00000004
|
---|
278 | #define DPSESSION_NOMESSAGEID 0x00000008
|
---|
279 | #define DPSESSION_JOINDISABLED 0x00000020
|
---|
280 | #define DPSESSION_KEEPALIVE 0x00000040
|
---|
281 | #define DPSESSION_NODATAMESSAGES 0x00000080
|
---|
282 | #define DPSESSION_SECURESERVER 0x00000100
|
---|
283 | #define DPSESSION_PRIVATE 0x00000200
|
---|
284 | #define DPSESSION_PASSWORDREQUIRED 0x00000400
|
---|
285 | #define DPSESSION_MULTICASTSERVER 0x00000800
|
---|
286 | #define DPSESSION_CLIENTSERVER 0x00001000
|
---|
287 | #define DPSESSION_DIRECTPLAYPROTOCOL 0x00002000
|
---|
288 | #define DPSESSION_NOPRESERVEORDER 0x00004000
|
---|
289 | #define DPSESSION_OPTIMIZELATENCY 0x00008000
|
---|
290 |
|
---|
291 | typedef struct tagDPLCONNECTION
|
---|
292 | {
|
---|
293 | DWORD dwSize;
|
---|
294 | DWORD dwFlags;
|
---|
295 | LPDPSESSIONDESC2 lpSessionDesc; /* Ptr to session desc to use for connect */
|
---|
296 | LPDPNAME lpPlayerName; /* Ptr to player name structure */
|
---|
297 | GUID guidSP; /* GUID of Service Provider to use */
|
---|
298 | LPVOID lpAddress; /* Ptr to Address of Service Provider to use */
|
---|
299 | DWORD dwAddressSize; /* Size of address data */
|
---|
300 | } DPLCONNECTION, *LPDPLCONNECTION;
|
---|
301 |
|
---|
302 | /* DPLCONNECTION flags (for dwFlags) */
|
---|
303 | #define DPLCONNECTION_CREATESESSION DPOPEN_CREATE
|
---|
304 | #define DPLCONNECTION_JOINSESSION DPOPEN_JOIN
|
---|
305 |
|
---|
306 | typedef struct tagDPCHAT
|
---|
307 | {
|
---|
308 | DWORD dwSize;
|
---|
309 | DWORD dwFlags;
|
---|
310 | union
|
---|
311 | { /* Message string */
|
---|
312 | LPWSTR lpszMessage; /* Unicode */
|
---|
313 | LPSTR lpszMessageA; /* ANSI */
|
---|
314 | } DUMMYUNIONNAME;
|
---|
315 | } DPCHAT, *LPDPCHAT;
|
---|
316 |
|
---|
317 | typedef struct
|
---|
318 | {
|
---|
319 | UINT len;
|
---|
320 | PUCHAR pData;
|
---|
321 | } SGBUFFER, *PSGBUFFER, *LPSGBUFFER;
|
---|
322 |
|
---|
323 |
|
---|
324 | typedef struct tagDPSECURITYDESC
|
---|
325 | {
|
---|
326 | DWORD dwSize; /* Size of structure */
|
---|
327 | DWORD dwFlags; /* Not used. Must be zero. */
|
---|
328 | union
|
---|
329 | { /* SSPI provider name */
|
---|
330 | LPWSTR lpszSSPIProvider; /* Unicode */
|
---|
331 | LPSTR lpszSSPIProviderA; /* ANSI */
|
---|
332 | } DUMMYUNIONNAME1;
|
---|
333 | union
|
---|
334 | { /* CAPI provider name */
|
---|
335 | LPWSTR lpszCAPIProvider; /* Unicode */
|
---|
336 | LPSTR lpszCAPIProviderA; /* ANSI */
|
---|
337 | } DUMMYUNIONNAME2;
|
---|
338 | DWORD dwCAPIProviderType; /* Crypto Service Provider type */
|
---|
339 | DWORD dwEncryptionAlgorithm; /* Encryption Algorithm type */
|
---|
340 | } DPSECURITYDESC, *LPDPSECURITYDESC;
|
---|
341 |
|
---|
342 | typedef const DPSECURITYDESC *LPCDPSECURITYDESC;
|
---|
343 |
|
---|
344 | typedef struct tagDPCREDENTIALS
|
---|
345 | {
|
---|
346 | DWORD dwSize; /* Size of structure */
|
---|
347 | DWORD dwFlags; /* Not used. Must be zero. */
|
---|
348 | union
|
---|
349 | { /* User name of the account */
|
---|
350 | LPWSTR lpszUsername; /* Unicode */
|
---|
351 | LPSTR lpszUsernameA; /* ANSI */
|
---|
352 | } DUMMYUNIONNAME1;
|
---|
353 | union
|
---|
354 | { /* Password of the account */
|
---|
355 | LPWSTR lpszPassword; /* Unicode */
|
---|
356 | LPSTR lpszPasswordA; /* ANSI */
|
---|
357 | } DUMMYUNIONNAME2;
|
---|
358 | union
|
---|
359 | { /* Domain name of the account */
|
---|
360 | LPWSTR lpszDomain; /* Unicode */
|
---|
361 | LPSTR lpszDomainA; /* ANSI */
|
---|
362 | } DUMMYUNIONNAME3;
|
---|
363 | } DPCREDENTIALS, *LPDPCREDENTIALS;
|
---|
364 |
|
---|
365 | typedef const DPCREDENTIALS *LPCDPCREDENTIALS;
|
---|
366 |
|
---|
367 |
|
---|
368 |
|
---|
369 | typedef BOOL (CALLBACK *LPDPENUMDPCALLBACKW)(
|
---|
370 | LPGUID lpguidSP,
|
---|
371 | LPWSTR lpSPName,
|
---|
372 | DWORD dwMajorVersion,
|
---|
373 | DWORD dwMinorVersion,
|
---|
374 | LPVOID lpContext);
|
---|
375 |
|
---|
376 | typedef BOOL (CALLBACK *LPDPENUMDPCALLBACKA)(
|
---|
377 | LPGUID lpguidSP,
|
---|
378 | LPSTR lpSPName, /* ptr to str w/ driver description */
|
---|
379 | DWORD dwMajorVersion, /* Major # of driver spec in lpguidSP */
|
---|
380 | DWORD dwMinorVersion, /* Minor # of driver spec in lpguidSP */
|
---|
381 | LPVOID lpContext); /* User given */
|
---|
382 |
|
---|
383 | #ifndef __LPCGUID_DEFINED__
|
---|
384 | #define __LPCGUID_DEFINED__
|
---|
385 | typedef const GUID *LPCGUID;
|
---|
386 | #endif
|
---|
387 |
|
---|
388 | typedef const DPNAME *LPCDPNAME;
|
---|
389 |
|
---|
390 | typedef BOOL (CALLBACK *LPDPENUMCONNECTIONSCALLBACK)(
|
---|
391 | LPCGUID lpguidSP,
|
---|
392 | LPVOID lpConnection,
|
---|
393 | DWORD dwConnectionSize,
|
---|
394 | LPCDPNAME lpName,
|
---|
395 | DWORD dwFlags,
|
---|
396 | LPVOID lpContext);
|
---|
397 |
|
---|
398 | typedef BOOL (CALLBACK *LPDPENUMSESSIONSCALLBACK)(
|
---|
399 | LPDPSESSIONDESC lpDPSessionDesc,
|
---|
400 | LPVOID lpContext,
|
---|
401 | LPDWORD lpdwTimeOut,
|
---|
402 | DWORD dwFlags);
|
---|
403 |
|
---|
404 |
|
---|
405 | extern HRESULT WINAPI DirectPlayEnumerateA( LPDPENUMDPCALLBACKA, LPVOID );
|
---|
406 | extern HRESULT WINAPI DirectPlayEnumerateW( LPDPENUMDPCALLBACKW, LPVOID );
|
---|
407 | extern HRESULT WINAPI DirectPlayCreate( LPGUID lpGUID, LPDIRECTPLAY *lplpDP, IUnknown *pUnk );
|
---|
408 |
|
---|
409 | typedef BOOL (CALLBACK *LPDPENUMPLAYERSCALLBACK)(
|
---|
410 | DPID dpId,
|
---|
411 | LPSTR lpFriendlyName,
|
---|
412 | LPSTR lpFormalName,
|
---|
413 | DWORD dwFlags,
|
---|
414 | LPVOID lpContext );
|
---|
415 |
|
---|
416 | typedef BOOL (CALLBACK *LPDPENUMPLAYERSCALLBACK2)(
|
---|
417 | DPID dpId,
|
---|
418 | DWORD dwPlayerType,
|
---|
419 | LPCDPNAME lpName,
|
---|
420 | DWORD dwFlags,
|
---|
421 | LPVOID lpContext );
|
---|
422 |
|
---|
423 | typedef BOOL (CALLBACK *LPDPENUMSESSIONSCALLBACK2)(
|
---|
424 | LPCDPSESSIONDESC2 lpThisSD,
|
---|
425 | LPDWORD lpdwTimeOut,
|
---|
426 | DWORD dwFlags,
|
---|
427 | LPVOID lpContext );
|
---|
428 |
|
---|
429 | #define DPESC_TIMEDOUT 0x00000001
|
---|
430 |
|
---|
431 | /*****************************************************************************
|
---|
432 | * IDirectPlay interface
|
---|
433 | */
|
---|
434 | #define INTERFACE IDirectPlay
|
---|
435 | DECLARE_INTERFACE_(IDirectPlay,IUnknown)
|
---|
436 | {
|
---|
437 | /*** IUnknown methods ***/
|
---|
438 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
439 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
440 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
441 | /*** IDirectPlay methods ***/
|
---|
442 | STDMETHOD(AddPlayerToGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
|
---|
443 | STDMETHOD(Close)(THIS) PURE;
|
---|
444 | STDMETHOD(CreatePlayer)(THIS_ LPDPID lpidPlayer, LPSTR lpPlayerName, LPSTR, LPHANDLE) PURE;
|
---|
445 | STDMETHOD(CreateGroup)(THIS_ LPDPID lpidGroup, LPSTR lpGroupName, LPSTR) PURE;
|
---|
446 | STDMETHOD(DeletePlayerFromGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
|
---|
447 | STDMETHOD(DestroyPlayer)(THIS_ DPID idPlayer) PURE;
|
---|
448 | STDMETHOD(DestroyGroup)(THIS_ DPID idGroup) PURE;
|
---|
449 | STDMETHOD(EnableNewPlayers)(THIS_ BOOL) PURE;
|
---|
450 | STDMETHOD(EnumGroupPlayers)(THIS_ DPID idGroup, LPDPENUMPLAYERSCALLBACK lpEnumPlayersCallback, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
451 | STDMETHOD(EnumGroups)(THIS_ DWORD, LPDPENUMPLAYERSCALLBACK lpEnumPlayersCallback, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
452 | STDMETHOD(EnumPlayers)(THIS_ DWORD, LPDPENUMPLAYERSCALLBACK lpEnumPlayersCallback, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
453 | STDMETHOD(EnumSessions)(THIS_ LPDPSESSIONDESC lpsd, DWORD dwTimeout, LPDPENUMSESSIONSCALLBACK lpEnumSessionsCallback, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
454 | STDMETHOD(GetCaps)(THIS_ LPDPCAPS lpDPCaps) PURE;
|
---|
455 | STDMETHOD(GetMessageCount)(THIS_ DPID idPlayer, LPDWORD lpdwCount) PURE;
|
---|
456 | STDMETHOD(GetPlayerCaps)(THIS_ DPID idPlayer, LPDPCAPS lpPlayerCaps) PURE;
|
---|
457 | STDMETHOD(GetPlayerName)(THIS_ DPID idPlayer, LPSTR, LPDWORD, LPSTR, LPDWORD) PURE;
|
---|
458 | STDMETHOD(Initialize)(THIS_ LPGUID lpGUID) PURE;
|
---|
459 | STDMETHOD(Open)(THIS_ LPDPSESSIONDESC lpsd) PURE;
|
---|
460 | STDMETHOD(Receive)(THIS_ LPDPID lpidFrom, LPDPID lpidTo, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
461 | STDMETHOD(SaveSession)(THIS_ LPSTR) PURE;
|
---|
462 | STDMETHOD(Send)(THIS_ DPID idFrom, DPID idTo, DWORD dwFlags, LPVOID lpData, DWORD dwDataSize) PURE;
|
---|
463 | STDMETHOD(SetPlayerName)(THIS_ DPID idPlayer, LPSTR lpPlayerName, LPSTR) PURE;
|
---|
464 | };
|
---|
465 | #undef INTERFACE
|
---|
466 |
|
---|
467 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
468 | /*** IUnknown methods ***/
|
---|
469 | #define IDirectPlay_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
470 | #define IDirectPlay_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
471 | #define IDirectPlay_Release(p) (p)->lpVtbl->Release(p)
|
---|
472 | /*** IDirectPlay methods ***/
|
---|
473 | #define IDirectPlay_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
|
---|
474 | #define IDirectPlay_Close(p) (p)->lpVtbl->Close(p)
|
---|
475 | #define IDirectPlay_CreatePlayer(p,a,b,c,d) (p)->lpVtbl->CreatePlayer(p,a,b,c,d)
|
---|
476 | #define IDirectPlay_CreateGroup(p,a,b,c) (p)->lpVtbl->CreateGroup(p,a,b,c)
|
---|
477 | #define IDirectPlay_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
|
---|
478 | #define IDirectPlay_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
|
---|
479 | #define IDirectPlay_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
|
---|
480 | #define IDirectPlay_EnableNewPlayers(p,a) (p)->lpVtbl->EnableNewPlayers(p,a)
|
---|
481 | #define IDirectPlay_EnumGroupPlayers(p,a,b,c,d) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d)
|
---|
482 | #define IDirectPlay_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
|
---|
483 | #define IDirectPlay_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
|
---|
484 | #define IDirectPlay_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
|
---|
485 | #define IDirectPlay_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
|
---|
486 | #define IDirectPlay_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b)
|
---|
487 | #define IDirectPlay_GetPlayerCaps(p,a,b) (p)->lpVtbl->GetPlayerCaps(p,a,b)
|
---|
488 | #define IDirectPlay_GetPlayerName(p,a,b,c,d,e) (p)->lpVtbl->GetPlayerName(p,a,b,c,d,e)
|
---|
489 | #define IDirectPlay_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
|
---|
490 | #define IDirectPlay_Open(p,a) (p)->lpVtbl->Open(p,a)
|
---|
491 | #define IDirectPlay_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
|
---|
492 | #define IDirectPlay_SaveSession(p,a) (p)->lpVtbl->SaveSession(p,a)
|
---|
493 | #define IDirectPlay_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
|
---|
494 | #define IDirectPlay_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
|
---|
495 | #else
|
---|
496 | /*** IUnknown methods ***/
|
---|
497 | #define IDirectPlay_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
498 | #define IDirectPlay_AddRef(p) (p)->AddRef()
|
---|
499 | #define IDirectPlay_Release(p) (p)->Release()
|
---|
500 | /*** IDirectPlay methods ***/
|
---|
501 | #define IDirectPlay_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b)
|
---|
502 | #define IDirectPlay_Close(p) (p)->Close()
|
---|
503 | #define IDirectPlay_CreatePlayer(p,a,b,c,d) (p)->CreatePlayer(a,b,c,d)
|
---|
504 | #define IDirectPlay_CreateGroup(p,a,b,c) (p)->CreateGroup(a,b,c)
|
---|
505 | #define IDirectPlay_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b)
|
---|
506 | #define IDirectPlay_DestroyPlayer(p,a) (p)->DestroyPlayer(a)
|
---|
507 | #define IDirectPlay_DestroyGroup(p,a) (p)->DestroyGroup(a)
|
---|
508 | #define IDirectPlay_EnableNewPlayers(p,a) (p)->EnableNewPlayers(a)
|
---|
509 | #define IDirectPlay_EnumGroupPlayers(p,a,b,c,d) (p)->EnumGroupPlayers(a,b,c,d)
|
---|
510 | #define IDirectPlay_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d)
|
---|
511 | #define IDirectPlay_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d)
|
---|
512 | #define IDirectPlay_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e)
|
---|
513 | #define IDirectPlay_GetCaps(p,a) (p)->GetCaps(a)
|
---|
514 | #define IDirectPlay_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b)
|
---|
515 | #define IDirectPlay_GetPlayerCaps(p,a,b) (p)->GetPlayerCaps(a,b)
|
---|
516 | #define IDirectPlay_GetPlayerName(p,a,b,c,d,e) (p)->GetPlayerName(a,b,c,d,e)
|
---|
517 | #define IDirectPlay_Initialize(p,a) (p)->Initialize(a)
|
---|
518 | #define IDirectPlay_Open(p,a) (p)->Open(a)
|
---|
519 | #define IDirectPlay_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e)
|
---|
520 | #define IDirectPlay_SaveSession(p,a) (p)->SaveSession(a)
|
---|
521 | #define IDirectPlay_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e)
|
---|
522 | #define IDirectPlay_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c)
|
---|
523 | #endif
|
---|
524 |
|
---|
525 |
|
---|
526 | /*****************************************************************************
|
---|
527 | * IDirectPlay2 and IDirectPlay2A interface
|
---|
528 | */
|
---|
529 | #define INTERFACE IDirectPlay2
|
---|
530 | DECLARE_INTERFACE_(IDirectPlay2,IUnknown)
|
---|
531 | {
|
---|
532 | /*** IUnknown methods ***/
|
---|
533 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
534 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
535 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
536 | /*** IDirectPlay2 methods ***/
|
---|
537 | STDMETHOD(AddPlayerToGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
|
---|
538 | STDMETHOD(Close)(THIS) PURE;
|
---|
539 | STDMETHOD(CreateGroup)(THIS_ LPDPID lpidGroup, LPDPNAME lpGroupName, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
|
---|
540 | STDMETHOD(CreatePlayer)(THIS_ LPDPID lpidPlayer, LPDPNAME lpPlayerName, HANDLE hEvent, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
|
---|
541 | STDMETHOD(DeletePlayerFromGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
|
---|
542 | STDMETHOD(DestroyGroup)(THIS_ DPID idGroup) PURE;
|
---|
543 | STDMETHOD(DestroyPlayer)(THIS_ DPID idPlayer) PURE;
|
---|
544 | STDMETHOD(EnumGroupPlayers)(THIS_ DPID idGroup, LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
545 | STDMETHOD(EnumGroups)(THIS_ LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
546 | STDMETHOD(EnumPlayers)(THIS_ LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
547 | STDMETHOD(EnumSessions)(THIS_ LPDPSESSIONDESC2 lpsd, DWORD dwTimeout, LPDPENUMSESSIONSCALLBACK2 lpEnumSessionsCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
548 | STDMETHOD(GetCaps)(THIS_ LPDPCAPS lpDPCaps, DWORD dwFlags) PURE;
|
---|
549 | STDMETHOD(GetGroupData)(THIS_ DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags) PURE;
|
---|
550 | STDMETHOD(GetGroupName)(THIS_ DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
551 | STDMETHOD(GetMessageCount)(THIS_ DPID idPlayer, LPDWORD lpdwCount) PURE;
|
---|
552 | STDMETHOD(GetPlayerAddress)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
553 | STDMETHOD(GetPlayerCaps)(THIS_ DPID idPlayer, LPDPCAPS lpPlayerCaps, DWORD dwFlags) PURE;
|
---|
554 | STDMETHOD(GetPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags) PURE;
|
---|
555 | STDMETHOD(GetPlayerName)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
556 | STDMETHOD(GetSessionDesc)(THIS_ LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
557 | STDMETHOD(Initialize)(THIS_ LPGUID lpGUID) PURE;
|
---|
558 | STDMETHOD(Open)(THIS_ LPDPSESSIONDESC2 lpsd, DWORD dwFlags) PURE;
|
---|
559 | STDMETHOD(Receive)(THIS_ LPDPID lpidFrom, LPDPID lpidTo, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
560 | STDMETHOD(Send)(THIS_ DPID idFrom, DPID idTo, DWORD dwFlags, LPVOID lpData, DWORD dwDataSize) PURE;
|
---|
561 | STDMETHOD(SetGroupData)(THIS_ DPID idGroup, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
|
---|
562 | STDMETHOD(SetGroupName)(THIS_ DPID idGroup, LPDPNAME lpGroupName, DWORD dwFlags) PURE;
|
---|
563 | STDMETHOD(SetPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
|
---|
564 | STDMETHOD(SetPlayerName)(THIS_ DPID idPlayer, LPDPNAME lpPlayerName, DWORD dwFlags) PURE;
|
---|
565 | STDMETHOD(SetSessionDesc)(THIS_ LPDPSESSIONDESC2 lpSessDesc, DWORD dwFlags) PURE;
|
---|
566 | };
|
---|
567 | #undef INTERFACE
|
---|
568 |
|
---|
569 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
570 | /*** IUnknown methods ***/
|
---|
571 | #define IDirectPlay2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
572 | #define IDirectPlay2_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
573 | #define IDirectPlay2_Release(p) (p)->lpVtbl->Release(p)
|
---|
574 | /*** IDirectPlay2 methods ***/
|
---|
575 | #define IDirectPlay2_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
|
---|
576 | #define IDirectPlay2_Close(p) (p)->lpVtbl->Close(p)
|
---|
577 | #define IDirectPlay2_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e)
|
---|
578 | #define IDirectPlay2_CreatePlayer(p,a,b,c,d,e,f) (p)->lpVtbl->CreatePlayer(p,a,b,c,d,e,f)
|
---|
579 | #define IDirectPlay2_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
|
---|
580 | #define IDirectPlay2_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
|
---|
581 | #define IDirectPlay2_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
|
---|
582 | #define IDirectPlay2_EnumGroupPlayers(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d,e)
|
---|
583 | #define IDirectPlay2_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
|
---|
584 | #define IDirectPlay2_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
|
---|
585 | #define IDirectPlay2_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
|
---|
586 | #define IDirectPlay2_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
|
---|
587 | #define IDirectPlay2_GetGroupData(p,a,b,c,d) (p)->lpVtbl->GetGroupData(p,a,b,c,d)
|
---|
588 | #define IDirectPlay2_GetGroupName(p,a,b,c) (p)->lpVtbl->GetGroupName(p,a,b,c)
|
---|
589 | #define IDirectPlay2_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b)
|
---|
590 | #define IDirectPlay2_GetPlayerAddress(p,a,b,c) (p)->lpVtbl->GetPlayerAddress(p,a,b,c)
|
---|
591 | #define IDirectPlay2_GetPlayerCaps(p,a,b,c) (p)->lpVtbl->GetPlayerCaps(p,a,b,c)
|
---|
592 | #define IDirectPlay2_GetPlayerData(p,a,b,c,d) (p)->lpVtbl->GetPlayerData(p,a,b,c,d)
|
---|
593 | #define IDirectPlay2_GetPlayerName(p,a,b,c) (p)->lpVtbl->GetPlayerName(p,a,b,c)
|
---|
594 | #define IDirectPlay2_GetSessionDesc(p,a,b) (p)->lpVtbl->GetSessionDesc(p,a,b)
|
---|
595 | #define IDirectPlay2_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
|
---|
596 | #define IDirectPlay2_Open(p,a,b) (p)->lpVtbl->Open(p,a,b)
|
---|
597 | #define IDirectPlay2_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
|
---|
598 | #define IDirectPlay2_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
|
---|
599 | #define IDirectPlay2_SetGroupData(p,a,b,c,d) (p)->lpVtbl->SetGroupData(p,a,b,c,d)
|
---|
600 | #define IDirectPlay2_SetGroupName(p,a,b,c) (p)->lpVtbl->SetGroupName(p,a,b,c)
|
---|
601 | #define IDirectPlay2_SetPlayerData(p,a,b,c,d) (p)->lpVtbl->SetPlayerData(p,a,b,c,d)
|
---|
602 | #define IDirectPlay2_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
|
---|
603 | #define IDirectPlay2_SetSessionDesc(p,a,b) (p)->lpVtbl->SetSessionDesc(p,a,b)
|
---|
604 | #else
|
---|
605 | /*** IUnknown methods ***/
|
---|
606 | #define IDirectPlay2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
607 | #define IDirectPlay2_AddRef(p) (p)->AddRef()
|
---|
608 | #define IDirectPlay2_Release(p) (p)->Release()
|
---|
609 | /*** IDirectPlay2 methods ***/
|
---|
610 | #define IDirectPlay2_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b)
|
---|
611 | #define IDirectPlay2_Close(p) (p)->Close()
|
---|
612 | #define IDirectPlay2_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e)
|
---|
613 | #define IDirectPlay2_CreatePlayer(p,a,b,c,d,e,f) (p)->CreatePlayer(a,b,c,d,e,f)
|
---|
614 | #define IDirectPlay2_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b)
|
---|
615 | #define IDirectPlay2_DestroyGroup(p,a) (p)->DestroyGroup(a)
|
---|
616 | #define IDirectPlay2_DestroyPlayer(p,a) (p)->DestroyPlayer(a)
|
---|
617 | #define IDirectPlay2_EnumGroupPlayers(p,a,b,c,d,e) (p)->EnumGroupPlayers(a,b,c,d,e)
|
---|
618 | #define IDirectPlay2_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d)
|
---|
619 | #define IDirectPlay2_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d)
|
---|
620 | #define IDirectPlay2_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e)
|
---|
621 | #define IDirectPlay2_GetCaps(p,a,b) (p)->GetCaps(a,b)
|
---|
622 | #define IDirectPlay2_GetGroupData(p,a,b,c,d) (p)->GetGroupData(a,b,c,d)
|
---|
623 | #define IDirectPlay2_GetGroupName(p,a,b,c) (p)->GetGroupName(a,b,c)
|
---|
624 | #define IDirectPlay2_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b)
|
---|
625 | #define IDirectPlay2_GetPlayerAddress(p,a,b,c) (p)->GetPlayerAddress(a,b,c)
|
---|
626 | #define IDirectPlay2_GetPlayerCaps(p,a,b,c) (p)->GetPlayerCaps(a,b,c)
|
---|
627 | #define IDirectPlay2_GetPlayerData(p,a,b,c,d) (p)->GetPlayerData(a,b,c,d)
|
---|
628 | #define IDirectPlay2_GetPlayerName(p,a,b,c) (p)->GetPlayerName(a,b,c)
|
---|
629 | #define IDirectPlay2_GetSessionDesc(p,a,b) (p)->GetSessionDesc(a,b)
|
---|
630 | #define IDirectPlay2_Initialize(p,a) (p)->Initialize(a)
|
---|
631 | #define IDirectPlay2_Open(p,a,b) (p)->Open(a,b)
|
---|
632 | #define IDirectPlay2_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e)
|
---|
633 | #define IDirectPlay2_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e)
|
---|
634 | #define IDirectPlay2_SetGroupData(p,a,b,c,d) (p)->SetGroupData(a,b,c,d)
|
---|
635 | #define IDirectPlay2_SetGroupName(p,a,b,c) (p)->SetGroupName(a,b,c)
|
---|
636 | #define IDirectPlay2_SetPlayerData(p,a,b,c,d) (p)->SetPlayerData(a,b,c,d)
|
---|
637 | #define IDirectPlay2_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c)
|
---|
638 | #define IDirectPlay2_SetSessionDesc(p,a,b) (p)->SetSessionDesc(a,b)
|
---|
639 | #endif
|
---|
640 |
|
---|
641 |
|
---|
642 | /*****************************************************************************
|
---|
643 | * IDirectPlay3 and IDirectPlay3A interface
|
---|
644 | */
|
---|
645 | #define INTERFACE IDirectPlay3
|
---|
646 | DECLARE_INTERFACE_(IDirectPlay3,IDirectPlay2)
|
---|
647 | {
|
---|
648 | /*** IUnknown methods ***/
|
---|
649 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
650 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
651 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
652 | /*** IDirectPlay2 methods ***/
|
---|
653 | STDMETHOD(AddPlayerToGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
|
---|
654 | STDMETHOD(Close)(THIS) PURE;
|
---|
655 | STDMETHOD(CreateGroup)(THIS_ LPDPID lpidGroup, LPDPNAME lpGroupName, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
|
---|
656 | STDMETHOD(CreatePlayer)(THIS_ LPDPID lpidPlayer, LPDPNAME lpPlayerName, HANDLE hEvent, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
|
---|
657 | STDMETHOD(DeletePlayerFromGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
|
---|
658 | STDMETHOD(DestroyGroup)(THIS_ DPID idGroup) PURE;
|
---|
659 | STDMETHOD(DestroyPlayer)(THIS_ DPID idPlayer) PURE;
|
---|
660 | STDMETHOD(EnumGroupPlayers)(THIS_ DPID idGroup, LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
661 | STDMETHOD(EnumGroups)(THIS_ LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
662 | STDMETHOD(EnumPlayers)(THIS_ LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
663 | STDMETHOD(EnumSessions)(THIS_ LPDPSESSIONDESC2 lpsd, DWORD dwTimeout, LPDPENUMSESSIONSCALLBACK2 lpEnumSessionsCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
664 | STDMETHOD(GetCaps)(THIS_ LPDPCAPS lpDPCaps, DWORD dwFlags) PURE;
|
---|
665 | STDMETHOD(GetGroupData)(THIS_ DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags) PURE;
|
---|
666 | STDMETHOD(GetGroupName)(THIS_ DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
667 | STDMETHOD(GetMessageCount)(THIS_ DPID idPlayer, LPDWORD lpdwCount) PURE;
|
---|
668 | STDMETHOD(GetPlayerAddress)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
669 | STDMETHOD(GetPlayerCaps)(THIS_ DPID idPlayer, LPDPCAPS lpPlayerCaps, DWORD dwFlags) PURE;
|
---|
670 | STDMETHOD(GetPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags) PURE;
|
---|
671 | STDMETHOD(GetPlayerName)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
672 | STDMETHOD(GetSessionDesc)(THIS_ LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
673 | STDMETHOD(Initialize)(THIS_ LPGUID lpGUID) PURE;
|
---|
674 | STDMETHOD(Open)(THIS_ LPDPSESSIONDESC2 lpsd, DWORD dwFlags) PURE;
|
---|
675 | STDMETHOD(Receive)(THIS_ LPDPID lpidFrom, LPDPID lpidTo, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
676 | STDMETHOD(Send)(THIS_ DPID idFrom, DPID idTo, DWORD dwFlags, LPVOID lpData, DWORD dwDataSize) PURE;
|
---|
677 | STDMETHOD(SetGroupData)(THIS_ DPID idGroup, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
|
---|
678 | STDMETHOD(SetGroupName)(THIS_ DPID idGroup, LPDPNAME lpGroupName, DWORD dwFlags) PURE;
|
---|
679 | STDMETHOD(SetPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
|
---|
680 | STDMETHOD(SetPlayerName)(THIS_ DPID idPlayer, LPDPNAME lpPlayerName, DWORD dwFlags) PURE;
|
---|
681 | STDMETHOD(SetSessionDesc)(THIS_ LPDPSESSIONDESC2 lpSessDesc, DWORD dwFlags) PURE;
|
---|
682 | /*** IDirectPlay3 methods ***/
|
---|
683 | STDMETHOD(AddGroupToGroup)(THIS_ DPID idParentGroup, DPID idGroup) PURE;
|
---|
684 | STDMETHOD(CreateGroupInGroup)(THIS_ DPID idParentGroup, LPDPID lpidGroup, LPDPNAME lpGroupName, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
|
---|
685 | STDMETHOD(DeleteGroupFromGroup)(THIS_ DPID idParentGroup, DPID idGroup) PURE;
|
---|
686 | STDMETHOD(EnumConnections)(THIS_ LPCGUID lpguidApplication, LPDPENUMCONNECTIONSCALLBACK lpEnumCallback, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
687 | STDMETHOD(EnumGroupsInGroup)(THIS_ DPID idGroup, LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumCallback, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
688 | STDMETHOD(GetGroupConnectionSettings)(THIS_ DWORD dwFlags, DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
689 | STDMETHOD(InitializeConnection)(THIS_ LPVOID lpConnection, DWORD dwFlags) PURE;
|
---|
690 | STDMETHOD(SecureOpen)(THIS_ LPCDPSESSIONDESC2 lpsd, DWORD dwFlags, LPCDPSECURITYDESC lpSecurity, LPCDPCREDENTIALS lpCredentials) PURE;
|
---|
691 | STDMETHOD(SendChatMessage)(THIS_ DPID idFrom, DPID idTo, DWORD dwFlags, LPDPCHAT lpChatMessage) PURE;
|
---|
692 | STDMETHOD(SetGroupConnectionSettings)(THIS_ DWORD dwFlags, DPID idGroup, LPDPLCONNECTION lpConnection) PURE;
|
---|
693 | STDMETHOD(StartSession)(THIS_ DWORD dwFlags, DPID idGroup) PURE;
|
---|
694 | STDMETHOD(GetGroupFlags)(THIS_ DPID idGroup, LPDWORD lpdwFlags) PURE;
|
---|
695 | STDMETHOD(GetGroupParent)(THIS_ DPID idGroup, LPDPID lpidParent) PURE;
|
---|
696 | STDMETHOD(GetPlayerAccount)(THIS_ DPID idPlayer, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
697 | STDMETHOD(GetPlayerFlags)(THIS_ DPID idPlayer, LPDWORD lpdwFlags) PURE;
|
---|
698 | };
|
---|
699 | #undef INTERFACE
|
---|
700 |
|
---|
701 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
702 | /*** IUnknown methods ***/
|
---|
703 | #define IDirectPlay3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
704 | #define IDirectPlay3_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
705 | #define IDirectPlay3_Release(p) (p)->lpVtbl->Release(p)
|
---|
706 | /*** IDirectPlay2 methods ***/
|
---|
707 | #define IDirectPlay3_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
|
---|
708 | #define IDirectPlay3_Close(p) (p)->lpVtbl->Close(p)
|
---|
709 | #define IDirectPlay3_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e)
|
---|
710 | #define IDirectPlay3_CreatePlayer(p,a,b,c,d,e,f) (p)->lpVtbl->CreatePlayer(p,a,b,c,d,e,f)
|
---|
711 | #define IDirectPlay3_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
|
---|
712 | #define IDirectPlay3_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
|
---|
713 | #define IDirectPlay3_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
|
---|
714 | #define IDirectPlay3_EnumGroupPlayers(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d,e)
|
---|
715 | #define IDirectPlay3_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
|
---|
716 | #define IDirectPlay3_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
|
---|
717 | #define IDirectPlay3_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
|
---|
718 | #define IDirectPlay3_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
|
---|
719 | #define IDirectPlay3_GetGroupData(p,a,b,c,d) (p)->lpVtbl->GetGroupData(p,a,b,c,d)
|
---|
720 | #define IDirectPlay3_GetGroupName(p,a,b,c) (p)->lpVtbl->GetGroupName(p,a,b,c)
|
---|
721 | #define IDirectPlay3_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b)
|
---|
722 | #define IDirectPlay3_GetPlayerAddress(p,a,b,c) (p)->lpVtbl->GetPlayerAddress(p,a,b,c)
|
---|
723 | #define IDirectPlay3_GetPlayerCaps(p,a,b,c) (p)->lpVtbl->GetPlayerCaps(p,a,b,c)
|
---|
724 | #define IDirectPlay3_GetPlayerData(p,a,b,c,d) (p)->lpVtbl->GetPlayerData(p,a,b,c,d)
|
---|
725 | #define IDirectPlay3_GetPlayerName(p,a,b,c) (p)->lpVtbl->GetPlayerName(p,a,b,c)
|
---|
726 | #define IDirectPlay3_GetSessionDesc(p,a,b) (p)->lpVtbl->GetSessionDesc(p,a,b)
|
---|
727 | #define IDirectPlay3_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
|
---|
728 | #define IDirectPlay3_Open(p,a,b) (p)->lpVtbl->Open(p,a,b)
|
---|
729 | #define IDirectPlay3_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
|
---|
730 | #define IDirectPlay3_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
|
---|
731 | #define IDirectPlay3_SetGroupData(p,a,b,c,d) (p)->lpVtbl->SetGroupData(p,a,b,c,d)
|
---|
732 | #define IDirectPlay3_SetGroupName(p,a,b,c) (p)->lpVtbl->SetGroupName(p,a,b,c)
|
---|
733 | #define IDirectPlay3_SetPlayerData(p,a,b,c,d) (p)->lpVtbl->SetPlayerData(p,a,b,c,d)
|
---|
734 | #define IDirectPlay3_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
|
---|
735 | #define IDirectPlay3_SetSessionDesc(p,a,b) (p)->lpVtbl->SetSessionDesc(p,a,b)
|
---|
736 | /*** IDirectPlay3 methods ***/
|
---|
737 | #define IDirectPlay3_AddGroupToGroup(p,a,b) (p)->lpVtbl->AddGroupToGroup(p,a,b)
|
---|
738 | #define IDirectPlay3_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->lpVtbl->CreateGroupInGroup(p,a,b,c,d,e,f)
|
---|
739 | #define IDirectPlay3_DeleteGroupFromGroup(p,a,b) (p)->lpVtbl->DeleteGroupFromGroup(p,a,b)
|
---|
740 | #define IDirectPlay3_EnumConnections(p,a,b,c,d) (p)->lpVtbl->EnumConnections(p,a,b,c,d)
|
---|
741 | #define IDirectPlay3_EnumGroupsInGroup(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupsInGroup(p,a,b,c,d,e)
|
---|
742 | #define IDirectPlay3_GetGroupConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetGroupConnectionSettings(p,a,b,c,d)
|
---|
743 | #define IDirectPlay3_InitializeConnection(p,a,b) (p)->lpVtbl->InitializeConnection(p,a,b)
|
---|
744 | #define IDirectPlay3_SecureOpen(p,a,b,c,d) (p)->lpVtbl->SecureOpen(p,a,b,c,d)
|
---|
745 | #define IDirectPlay3_SendChatMessage(p,a,b,c,d) (p)->lpVtbl->SendChatMessage(p,a,b,c,d)
|
---|
746 | #define IDirectPlay3_SetGroupConnectionSettings(p,a,b,c) (p)->lpVtbl->SetGroupConnectionSettings(p,a,b,c)
|
---|
747 | #define IDirectPlay3_StartSession(p,a,b) (p)->lpVtbl->StartSession(p,a,b)
|
---|
748 | #define IDirectPlay3_GetGroupFlags(p,a,b) (p)->lpVtbl->GetGroupFlags(p,a,b)
|
---|
749 | #define IDirectPlay3_GetGroupParent(p,a,b) (p)->lpVtbl->GetGroupParent(p,a,b)
|
---|
750 | #define IDirectPlay3_GetPlayerAccount(p,a,b,c,d) (p)->lpVtbl->GetPlayerAccount(p,a,b,c,d)
|
---|
751 | #define IDirectPlay3_GetPlayerFlags(p,a,b) (p)->lpVtbl->GetPlayerFlags(p,a,b)
|
---|
752 | #else
|
---|
753 | /*** IUnknown methods ***/
|
---|
754 | #define IDirectPlay3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
755 | #define IDirectPlay3_AddRef(p) (p)->AddRef()
|
---|
756 | #define IDirectPlay3_Release(p) (p)->Release()
|
---|
757 | /*** IDirectPlay2 methods ***/
|
---|
758 | #define IDirectPlay3_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b)
|
---|
759 | #define IDirectPlay3_Close(p) (p)->Close()
|
---|
760 | #define IDirectPlay3_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e)
|
---|
761 | #define IDirectPlay3_CreatePlayer(p,a,b,c,d,e,f) (p)->CreatePlayer(a,b,c,d,e,f)
|
---|
762 | #define IDirectPlay3_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b)
|
---|
763 | #define IDirectPlay3_DestroyGroup(p,a) (p)->DestroyGroup(a)
|
---|
764 | #define IDirectPlay3_DestroyPlayer(p,a) (p)->DestroyPlayer(a)
|
---|
765 | #define IDirectPlay3_EnumGroupPlayers(p,a,b,c,d,e) (p)->EnumGroupPlayers(a,b,c,d,e)
|
---|
766 | #define IDirectPlay3_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d)
|
---|
767 | #define IDirectPlay3_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d)
|
---|
768 | #define IDirectPlay3_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e)
|
---|
769 | #define IDirectPlay3_GetCaps(p,a,b) (p)->GetCaps(a,b)
|
---|
770 | #define IDirectPlay3_GetGroupData(p,a,b,c,d) (p)->GetGroupData(a,b,c,d)
|
---|
771 | #define IDirectPlay3_GetGroupName(p,a,b,c) (p)->GetGroupName(a,b,c)
|
---|
772 | #define IDirectPlay3_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b)
|
---|
773 | #define IDirectPlay3_GetPlayerAddress(p,a,b,c) (p)->GetPlayerAddress(a,b,c)
|
---|
774 | #define IDirectPlay3_GetPlayerCaps(p,a,b,c) (p)->GetPlayerCaps(a,b,c)
|
---|
775 | #define IDirectPlay3_GetPlayerData(p,a,b,c,d) (p)->GetPlayerData(a,b,c,d)
|
---|
776 | #define IDirectPlay3_GetPlayerName(p,a,b,c) (p)->GetPlayerName(a,b,c)
|
---|
777 | #define IDirectPlay3_GetSessionDesc(p,a,b) (p)->GetSessionDesc(a,b)
|
---|
778 | #define IDirectPlay3_Initialize(p,a) (p)->Initialize(a)
|
---|
779 | #define IDirectPlay3_Open(p,a,b) (p)->Open(a,b)
|
---|
780 | #define IDirectPlay3_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e)
|
---|
781 | #define IDirectPlay3_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e)
|
---|
782 | #define IDirectPlay3_SetGroupData(p,a,b,c,d) (p)->SetGroupData(a,b,c,d)
|
---|
783 | #define IDirectPlay3_SetGroupName(p,a,b,c) (p)->SetGroupName(a,b,c)
|
---|
784 | #define IDirectPlay3_SetPlayerData(p,a,b,c,d) (p)->SetPlayerData(a,b,c,d)
|
---|
785 | #define IDirectPlay3_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c)
|
---|
786 | #define IDirectPlay3_SetSessionDesc(p,a,b) (p)->SetSessionDesc(a,b)
|
---|
787 | /*** IDirectPlay3 methods ***/
|
---|
788 | #define IDirectPlay3_AddGroupToGroup(p,a,b) (p)->AddGroupToGroup(a,b)
|
---|
789 | #define IDirectPlay3_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->CreateGroupInGroup(a,b,c,d,e,f)
|
---|
790 | #define IDirectPlay3_DeleteGroupFromGroup(p,a,b) (p)->DeleteGroupFromGroup(a,b)
|
---|
791 | #define IDirectPlay3_EnumConnections(p,a,b,c,d) (p)->EnumConnections(a,b,c,d)
|
---|
792 | #define IDirectPlay3_EnumGroupsInGroup(p,a,b,c,d,e) (p)->EnumGroupsInGroup(a,b,c,d,e)
|
---|
793 | #define IDirectPlay3_GetGroupConnectionSettings(p,a,b,c,d) (p)->GetGroupConnectionSettings(a,b,c,d)
|
---|
794 | #define IDirectPlay3_InitializeConnection(p,a,b) (p)->InitializeConnection(a,b)
|
---|
795 | #define IDirectPlay3_SecureOpen(p,a,b,c,d) (p)->SecureOpen(a,b,c,d)
|
---|
796 | #define IDirectPlay3_SendChatMessage(p,a,b,c,d) (p)->SendChatMessage(a,b,c,d)
|
---|
797 | #define IDirectPlay3_SetGroupConnectionSettings(p,a,b,c) (p)->SetGroupConnectionSettings(a,b,c)
|
---|
798 | #define IDirectPlay3_StartSession(p,a,b) (p)->StartSession(a,b)
|
---|
799 | #define IDirectPlay3_GetGroupFlags(p,a,b) (p)->GetGroupFlags(a,b)
|
---|
800 | #define IDirectPlay3_GetGroupParent(p,a,b) (p)->GetGroupParent(a,b)
|
---|
801 | #define IDirectPlay3_GetPlayerAccount(p,a,b,c,d) (p)->GetPlayerAccount(a,b,c,d)
|
---|
802 | #define IDirectPlay3_GetPlayerFlags(p,a,b) (p)->GetPlayerFlags(a,b)
|
---|
803 | #endif
|
---|
804 |
|
---|
805 | /*****************************************************************************
|
---|
806 | * IDirectPlay4 and IDirectPlay4A interface
|
---|
807 | */
|
---|
808 | #define INTERFACE IDirectPlay4
|
---|
809 | DECLARE_INTERFACE_(IDirectPlay4,IDirectPlay3)
|
---|
810 | {
|
---|
811 | /*** IUnknown methods ***/
|
---|
812 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
813 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
814 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
815 | /*** IDirectPlay2 methods ***/
|
---|
816 | STDMETHOD(AddPlayerToGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
|
---|
817 | STDMETHOD(Close)(THIS) PURE;
|
---|
818 | STDMETHOD(CreateGroup)(THIS_ LPDPID lpidGroup, LPDPNAME lpGroupName, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
|
---|
819 | STDMETHOD(CreatePlayer)(THIS_ LPDPID lpidPlayer, LPDPNAME lpPlayerName, HANDLE hEvent, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
|
---|
820 | STDMETHOD(DeletePlayerFromGroup)(THIS_ DPID idGroup, DPID idPlayer) PURE;
|
---|
821 | STDMETHOD(DestroyGroup)(THIS_ DPID idGroup) PURE;
|
---|
822 | STDMETHOD(DestroyPlayer)(THIS_ DPID idPlayer) PURE;
|
---|
823 | STDMETHOD(EnumGroupPlayers)(THIS_ DPID idGroup, LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
824 | STDMETHOD(EnumGroups)(THIS_ LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
825 | STDMETHOD(EnumPlayers)(THIS_ LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumPlayersCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
826 | STDMETHOD(EnumSessions)(THIS_ LPDPSESSIONDESC2 lpsd, DWORD dwTimeout, LPDPENUMSESSIONSCALLBACK2 lpEnumSessionsCallback2, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
827 | STDMETHOD(GetCaps)(THIS_ LPDPCAPS lpDPCaps, DWORD dwFlags) PURE;
|
---|
828 | STDMETHOD(GetGroupData)(THIS_ DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags) PURE;
|
---|
829 | STDMETHOD(GetGroupName)(THIS_ DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
830 | STDMETHOD(GetMessageCount)(THIS_ DPID idPlayer, LPDWORD lpdwCount) PURE;
|
---|
831 | STDMETHOD(GetPlayerAddress)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
832 | STDMETHOD(GetPlayerCaps)(THIS_ DPID idPlayer, LPDPCAPS lpPlayerCaps, DWORD dwFlags) PURE;
|
---|
833 | STDMETHOD(GetPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags) PURE;
|
---|
834 | STDMETHOD(GetPlayerName)(THIS_ DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
835 | STDMETHOD(GetSessionDesc)(THIS_ LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
836 | STDMETHOD(Initialize)(THIS_ LPGUID lpGUID) PURE;
|
---|
837 | STDMETHOD(Open)(THIS_ LPDPSESSIONDESC2 lpsd, DWORD dwFlags) PURE;
|
---|
838 | STDMETHOD(Receive)(THIS_ LPDPID lpidFrom, LPDPID lpidTo, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
839 | STDMETHOD(Send)(THIS_ DPID idFrom, DPID idTo, DWORD dwFlags, LPVOID lpData, DWORD dwDataSize) PURE;
|
---|
840 | STDMETHOD(SetGroupData)(THIS_ DPID idGroup, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
|
---|
841 | STDMETHOD(SetGroupName)(THIS_ DPID idGroup, LPDPNAME lpGroupName, DWORD dwFlags) PURE;
|
---|
842 | STDMETHOD(SetPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
|
---|
843 | STDMETHOD(SetPlayerName)(THIS_ DPID idPlayer, LPDPNAME lpPlayerName, DWORD dwFlags) PURE;
|
---|
844 | STDMETHOD(SetSessionDesc)(THIS_ LPDPSESSIONDESC2 lpSessDesc, DWORD dwFlags) PURE;
|
---|
845 | /*** IDirectPlay3 methods ***/
|
---|
846 | STDMETHOD(AddGroupToGroup)(THIS_ DPID idParentGroup, DPID idGroup) PURE;
|
---|
847 | STDMETHOD(CreateGroupInGroup)(THIS_ DPID idParentGroup, LPDPID lpidGroup, LPDPNAME lpGroupName, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags) PURE;
|
---|
848 | STDMETHOD(DeleteGroupFromGroup)(THIS_ DPID idParentGroup, DPID idGroup) PURE;
|
---|
849 | STDMETHOD(EnumConnections)(THIS_ LPCGUID lpguidApplication, LPDPENUMCONNECTIONSCALLBACK lpEnumCallback, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
850 | STDMETHOD(EnumGroupsInGroup)(THIS_ DPID idGroup, LPGUID lpguidInstance, LPDPENUMPLAYERSCALLBACK2 lpEnumCallback, LPVOID lpContext, DWORD dwFlags) PURE;
|
---|
851 | STDMETHOD(GetGroupConnectionSettings)(THIS_ DWORD dwFlags, DPID idGroup, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
852 | STDMETHOD(InitializeConnection)(THIS_ LPVOID lpConnection, DWORD dwFlags) PURE;
|
---|
853 | STDMETHOD(SecureOpen)(THIS_ LPCDPSESSIONDESC2 lpsd, DWORD dwFlags, LPCDPSECURITYDESC lpSecurity, LPCDPCREDENTIALS lpCredentials) PURE;
|
---|
854 | STDMETHOD(SendChatMessage)(THIS_ DPID idFrom, DPID idTo, DWORD dwFlags, LPDPCHAT lpChatMessage) PURE;
|
---|
855 | STDMETHOD(SetGroupConnectionSettings)(THIS_ DWORD dwFlags, DPID idGroup, LPDPLCONNECTION lpConnection) PURE;
|
---|
856 | STDMETHOD(StartSession)(THIS_ DWORD dwFlags, DPID idGroup) PURE;
|
---|
857 | STDMETHOD(GetGroupFlags)(THIS_ DPID idGroup, LPDWORD lpdwFlags) PURE;
|
---|
858 | STDMETHOD(GetGroupParent)(THIS_ DPID idGroup, LPDPID lpidParent) PURE;
|
---|
859 | STDMETHOD(GetPlayerAccount)(THIS_ DPID idPlayer, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize) PURE;
|
---|
860 | STDMETHOD(GetPlayerFlags)(THIS_ DPID idPlayer, LPDWORD lpdwFlags) PURE;
|
---|
861 | /*** IDirectPlay4 methods ***/
|
---|
862 | STDMETHOD(GetGroupOwner)(THIS_ DPID , LPDPID ) PURE;
|
---|
863 | STDMETHOD(SetGroupOwner)(THIS_ DPID , DPID ) PURE;
|
---|
864 | STDMETHOD(SendEx)(THIS_ DPID , DPID , DWORD , LPVOID , DWORD , DWORD , DWORD , LPVOID , LPDWORD ) PURE;
|
---|
865 | STDMETHOD(GetMessageQueue)(THIS_ DPID , DPID , DWORD , LPDWORD , LPDWORD ) PURE;
|
---|
866 | STDMETHOD(CancelMessage)(THIS_ DWORD , DWORD ) PURE;
|
---|
867 | STDMETHOD(CancelPriority)(THIS_ DWORD , DWORD , DWORD ) PURE;
|
---|
868 | };
|
---|
869 | #undef INTERFACE
|
---|
870 |
|
---|
871 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
872 | /*** IUnknown methods ***/
|
---|
873 | #define IDirectPlayX_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
874 | #define IDirectPlayX_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
875 | #define IDirectPlayX_Release(p) (p)->lpVtbl->Release(p)
|
---|
876 | /*** IDirectPlay2 methods ***/
|
---|
877 | #define IDirectPlayX_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
|
---|
878 | #define IDirectPlayX_Close(p) (p)->lpVtbl->Close(p)
|
---|
879 | #define IDirectPlayX_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e)
|
---|
880 | #define IDirectPlayX_CreatePlayer(p,a,b,c,d,e,f) (p)->lpVtbl->CreatePlayer(p,a,b,c,d,e,f)
|
---|
881 | #define IDirectPlayX_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
|
---|
882 | #define IDirectPlayX_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
|
---|
883 | #define IDirectPlayX_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
|
---|
884 | #define IDirectPlayX_EnumGroupPlayers(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d,e)
|
---|
885 | #define IDirectPlayX_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
|
---|
886 | #define IDirectPlayX_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
|
---|
887 | #define IDirectPlayX_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
|
---|
888 | #define IDirectPlayX_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
|
---|
889 | #define IDirectPlayX_GetGroupData(p,a,b,c,d) (p)->lpVtbl->GetGroupData(p,a,b,c,d)
|
---|
890 | #define IDirectPlayX_GetGroupName(p,a,b,c) (p)->lpVtbl->GetGroupName(p,a,b,c)
|
---|
891 | #define IDirectPlayX_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b)
|
---|
892 | #define IDirectPlayX_GetPlayerAddress(p,a,b,c) (p)->lpVtbl->GetPlayerAddress(p,a,b,c)
|
---|
893 | #define IDirectPlayX_GetPlayerCaps(p,a,b,c) (p)->lpVtbl->GetPlayerCaps(p,a,b,c)
|
---|
894 | #define IDirectPlayX_GetPlayerData(p,a,b,c,d) (p)->lpVtbl->GetPlayerData(p,a,b,c,d)
|
---|
895 | #define IDirectPlayX_GetPlayerName(p,a,b,c) (p)->lpVtbl->GetPlayerName(p,a,b,c)
|
---|
896 | #define IDirectPlayX_GetSessionDesc(p,a,b) (p)->lpVtbl->GetSessionDesc(p,a,b)
|
---|
897 | #define IDirectPlayX_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
|
---|
898 | #define IDirectPlayX_Open(p,a,b) (p)->lpVtbl->Open(p,a,b)
|
---|
899 | #define IDirectPlayX_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
|
---|
900 | #define IDirectPlayX_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
|
---|
901 | #define IDirectPlayX_SetGroupData(p,a,b,c,d) (p)->lpVtbl->SetGroupData(p,a,b,c,d)
|
---|
902 | #define IDirectPlayX_SetGroupName(p,a,b,c) (p)->lpVtbl->SetGroupName(p,a,b,c)
|
---|
903 | #define IDirectPlayX_SetPlayerData(p,a,b,c,d) (p)->lpVtbl->SetPlayerData(p,a,b,c,d)
|
---|
904 | #define IDirectPlayX_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
|
---|
905 | #define IDirectPlayX_SetSessionDesc(p,a,b) (p)->lpVtbl->SetSessionDesc(p,a,b)
|
---|
906 | /*** IDirectPlay3 methods ***/
|
---|
907 | #define IDirectPlayX_AddGroupToGroup(p,a,b) (p)->lpVtbl->AddGroupToGroup(p,a,b)
|
---|
908 | #define IDirectPlayX_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->lpVtbl->CreateGroupInGroup(p,a,b,c,d,e,f)
|
---|
909 | #define IDirectPlayX_DeleteGroupFromGroup(p,a,b) (p)->lpVtbl->DeleteGroupFromGroup(p,a,b)
|
---|
910 | #define IDirectPlayX_EnumConnections(p,a,b,c,d) (p)->lpVtbl->EnumConnections(p,a,b,c,d)
|
---|
911 | #define IDirectPlayX_EnumGroupsInGroup(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupsInGroup(p,a,b,c,d,e)
|
---|
912 | #define IDirectPlayX_GetGroupConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetGroupConnectionSettings(p,a,b,c,d)
|
---|
913 | #define IDirectPlayX_InitializeConnection(p,a,b) (p)->lpVtbl->InitializeConnection(p,a,b)
|
---|
914 | #define IDirectPlayX_SecureOpen(p,a,b,c,d) (p)->lpVtbl->SecureOpen(p,a,b,c,d)
|
---|
915 | #define IDirectPlayX_SendChatMessage(p,a,b,c,d) (p)->lpVtbl->SendChatMessage(p,a,b,c,d)
|
---|
916 | #define IDirectPlayX_SetGroupConnectionSettings(p,a,b,c) (p)->lpVtbl->SetGroupConnectionSettings(p,a,b,c)
|
---|
917 | #define IDirectPlayX_StartSession(p,a,b) (p)->lpVtbl->StartSession(p,a,b)
|
---|
918 | #define IDirectPlayX_GetGroupFlags(p,a,b) (p)->lpVtbl->GetGroupFlags(p,a,b)
|
---|
919 | #define IDirectPlayX_GetGroupParent(p,a,b) (p)->lpVtbl->GetGroupParent(p,a,b)
|
---|
920 | #define IDirectPlayX_GetPlayerAccount(p,a,b,c,d) (p)->lpVtbl->GetPlayerAccount(p,a,b,c,d)
|
---|
921 | #define IDirectPlayX_GetPlayerFlags(p,a,b) (p)->lpVtbl->GetPlayerFlags(p,a,b)
|
---|
922 | /*** IDirectPlay4 methods ***/
|
---|
923 | #define IDirectPlayX_GetGroupOwner(p,a,b) (p)->lpVtbl->GetGroupOwner(p,a,b)
|
---|
924 | #define IDirectPlayX_SetGroupOwner(p,a,b) (p)->lpVtbl->SetGroupOwner(p,a,b)
|
---|
925 | #define IDirectPlayX_SendEx(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->SendEx(p,a,b,c,d,e,f,g,h,i)
|
---|
926 | #define IDirectPlayX_GetMessageQueue(p,a,b,c,d,e) (p)->lpVtbl->GetMessageQueue(p,a,b,c,d,e)
|
---|
927 | #define IDirectPlayX_CancelMessage(p,a,b) (p)->lpVtbl->CancelMessage(p,a,b)
|
---|
928 | #define IDirectPlayX_CancelPriority(p,a,b,c) (p)->lpVtbl->CancelPriority(p,a,b,c)
|
---|
929 | #else
|
---|
930 | /*** IUnknown methods ***/
|
---|
931 | #define IDirectPlayX_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
932 | #define IDirectPlayX_AddRef(p) (p)->AddRef()
|
---|
933 | #define IDirectPlayX_Release(p) (p)->Release()
|
---|
934 | /*** IDirectPlay2 methods ***/
|
---|
935 | #define IDirectPlayX_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b)
|
---|
936 | #define IDirectPlayX_Close(p) (p)->Close()
|
---|
937 | #define IDirectPlayX_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e)
|
---|
938 | #define IDirectPlayX_CreatePlayer(p,a,b,c,d,e,f) (p)->CreatePlayer(a,b,c,d,e,f)
|
---|
939 | #define IDirectPlayX_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b)
|
---|
940 | #define IDirectPlayX_DestroyGroup(p,a) (p)->DestroyGroup(a)
|
---|
941 | #define IDirectPlayX_DestroyPlayer(p,a) (p)->DestroyPlayer(a)
|
---|
942 | #define IDirectPlayX_EnumGroupPlayers(p,a,b,c,d,e) (p)->EnumGroupPlayers(a,b,c,d,e)
|
---|
943 | #define IDirectPlayX_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d)
|
---|
944 | #define IDirectPlayX_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d)
|
---|
945 | #define IDirectPlayX_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e)
|
---|
946 | #define IDirectPlayX_GetCaps(p,a,b) (p)->GetCaps(a,b)
|
---|
947 | #define IDirectPlayX_GetGroupData(p,a,b,c,d) (p)->GetGroupData(a,b,c,d)
|
---|
948 | #define IDirectPlayX_GetGroupName(p,a,b,c) (p)->GetGroupName(a,b,c)
|
---|
949 | #define IDirectPlayX_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b)
|
---|
950 | #define IDirectPlayX_GetPlayerAddress(p,a,b,c) (p)->GetPlayerAddress(a,b,c)
|
---|
951 | #define IDirectPlayX_GetPlayerCaps(p,a,b,c) (p)->GetPlayerCaps(a,b,c)
|
---|
952 | #define IDirectPlayX_GetPlayerData(p,a,b,c,d) (p)->GetPlayerData(a,b,c,d)
|
---|
953 | #define IDirectPlayX_GetPlayerName(p,a,b,c) (p)->GetPlayerName(a,b,c)
|
---|
954 | #define IDirectPlayX_GetSessionDesc(p,a,b) (p)->GetSessionDesc(a,b)
|
---|
955 | #define IDirectPlayX_Initialize(p,a) (p)->Initialize(a)
|
---|
956 | #define IDirectPlayX_Open(p,a,b) (p)->Open(a,b)
|
---|
957 | #define IDirectPlayX_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e)
|
---|
958 | #define IDirectPlayX_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e)
|
---|
959 | #define IDirectPlayX_SetGroupData(p,a,b,c,d) (p)->SetGroupData(a,b,c,d)
|
---|
960 | #define IDirectPlayX_SetGroupName(p,a,b,c) (p)->SetGroupName(a,b,c)
|
---|
961 | #define IDirectPlayX_SetPlayerData(p,a,b,c,d) (p)->SetPlayerData(a,b,c,d)
|
---|
962 | #define IDirectPlayX_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c)
|
---|
963 | #define IDirectPlayX_SetSessionDesc(p,a,b) (p)->SetSessionDesc(a,b)
|
---|
964 | /*** IDirectPlay3 methods ***/
|
---|
965 | #define IDirectPlayX_AddGroupToGroup(p,a,b) (p)->AddGroupToGroup(a,b)
|
---|
966 | #define IDirectPlayX_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->CreateGroupInGroup(a,b,c,d,e,f)
|
---|
967 | #define IDirectPlayX_DeleteGroupFromGroup(p,a,b) (p)->DeleteGroupFromGroup(a,b)
|
---|
968 | #define IDirectPlayX_EnumConnections(p,a,b,c,d) (p)->EnumConnections(a,b,c,d)
|
---|
969 | #define IDirectPlayX_EnumGroupsInGroup(p,a,b,c,d,e) (p)->EnumGroupsInGroup(a,b,c,d,e)
|
---|
970 | #define IDirectPlayX_GetGroupConnectionSettings(p,a,b,c,d) (p)->GetGroupConnectionSettings(a,b,c,d)
|
---|
971 | #define IDirectPlayX_InitializeConnection(p,a,b) (p)->InitializeConnection(a,b)
|
---|
972 | #define IDirectPlayX_SecureOpen(p,a,b,c,d) (p)->SecureOpen(a,b,c,d)
|
---|
973 | #define IDirectPlayX_SendChatMessage(p,a,b,c,d) (p)->SendChatMessage(a,b,c,d)
|
---|
974 | #define IDirectPlayX_SetGroupConnectionSettings(p,a,b,c) (p)->SetGroupConnectionSettings(a,b,c)
|
---|
975 | #define IDirectPlayX_StartSession(p,a,b) (p)->StartSession(a,b)
|
---|
976 | #define IDirectPlayX_GetGroupFlags(p,a,b) (p)->GetGroupFlags(a,b)
|
---|
977 | #define IDirectPlayX_GetGroupParent(p,a,b) (p)->GetGroupParent(a,b)
|
---|
978 | #define IDirectPlayX_GetPlayerAccount(p,a,b,c,d) (p)->GetPlayerAccount(a,b,c,d)
|
---|
979 | #define IDirectPlayX_GetPlayerFlags(p,a,b) (p)->GetPlayerFlags(a,b)
|
---|
980 | /*** IDirectPlay4 methods ***/
|
---|
981 | #define IDirectPlayX_GetGroupOwner(p,a,b) (p)->GetGroupOwner(a,b)
|
---|
982 | #define IDirectPlayX_SetGroupOwner(p,a,b) (p)->SetGroupOwner(a,b)
|
---|
983 | #define IDirectPlayX_SendEx(p,a,b,c,d,e,f,g,h,i) (p)->SendEx(a,b,c,d,e,f,g,h,i)
|
---|
984 | #define IDirectPlayX_GetMessageQueue(p,a,b,c,d,e) (p)->GetMessageQueue(a,b,c,d,e)
|
---|
985 | #define IDirectPlayX_CancelMessage(p,a,b) (p)->CancelMessage(a,b)
|
---|
986 | #define IDirectPlayX_CancelPriority(p,a,b,c) (p)->CancelPriority(a,b,c)
|
---|
987 | #endif
|
---|
988 |
|
---|
989 |
|
---|
990 | /* For DirectPlay::EnumConnections */
|
---|
991 | #define DPCONNECTION_DIRECTPLAY 0x00000001
|
---|
992 | #define DPCONNECTION_DIRECTPLAYLOBBY 0x00000002
|
---|
993 |
|
---|
994 | /* For DirectPlay::EnumPlayers and DirectPlay::EnumGroups */
|
---|
995 | #define DPENUMPLAYERS_ALL 0x00000000
|
---|
996 | #define DPENUMPLAYERS_LOCAL 0x00000008
|
---|
997 | #define DPENUMPLAYERS_REMOTE 0x00000010
|
---|
998 | #define DPENUMPLAYERS_GROUP 0x00000020
|
---|
999 | #define DPENUMPLAYERS_SESSION 0x00000080
|
---|
1000 | #define DPENUMPLAYERS_SERVERPLAYER 0x00000100
|
---|
1001 | #define DPENUMPLAYERS_SPECTATOR 0x00000200
|
---|
1002 | #define DPENUMPLAYERS_OWNER 0x00002000
|
---|
1003 |
|
---|
1004 | #define DPENUMGROUPS_ALL DPENUMPLAYERS_ALL
|
---|
1005 | #define DPENUMGROUPS_LOCAL DPENUMPLAYERS_LOCAL
|
---|
1006 | #define DPENUMGROUPS_REMOTE DPENUMPLAYERS_REMOTE
|
---|
1007 | #define DPENUMGROUPS_SESSION DPENUMPLAYERS_SESSION
|
---|
1008 | #define DPENUMGROUPS_SHORTCUT 0x00000400
|
---|
1009 | #define DPENUMGROUPS_STAGINGAREA 0x00000800
|
---|
1010 | #define DPENUMGROUPS_HIDDEN 0x00001000
|
---|
1011 |
|
---|
1012 |
|
---|
1013 | /* For DirectPlay::CreatePlayer */
|
---|
1014 | #define DPPLAYER_SERVERPLAYER DPENUMPLAYERS_SERVERPLAYER
|
---|
1015 | #define DPPLAYER_SPECTATOR DPENUMPLAYERS_SPECTATOR
|
---|
1016 | #define DPPLAYER_LOCAL DPENUMPLAYERS_LOCAL
|
---|
1017 | #define DPPLAYER_OWNER DPENUMPLAYERS_OWNER
|
---|
1018 |
|
---|
1019 | /* For DirectPlay::CreateGroup */
|
---|
1020 | #define DPGROUP_STAGINGAREA DPENUMGROUPS_STAGINGAREA
|
---|
1021 | #define DPGROUP_LOCAL DPENUMGROUPS_LOCAL
|
---|
1022 | #define DPGROUP_HIDDEN DPENUMGROUPS_HIDDEN
|
---|
1023 |
|
---|
1024 | /* For DirectPlay::EnumSessions */
|
---|
1025 | #define DPENUMSESSIONS_AVAILABLE 0x00000001
|
---|
1026 | #define DPENUMSESSIONS_ALL 0x00000002
|
---|
1027 | #define DPENUMSESSIONS_ASYNC 0x00000010
|
---|
1028 | #define DPENUMSESSIONS_STOPASYNC 0x00000020
|
---|
1029 | #define DPENUMSESSIONS_PASSWORDREQUIRED 0x00000040
|
---|
1030 | #define DPENUMSESSIONS_RETURNSTATUS 0x00000080
|
---|
1031 |
|
---|
1032 | /* For DirectPlay::GetCaps and DirectPlay::GetPlayerCaps */
|
---|
1033 | #define DPGETCAPS_GUARANTEED 0x00000001
|
---|
1034 |
|
---|
1035 | /* For DirectPlay::GetGroupData and DirectPlay::GetPlayerData */
|
---|
1036 | #define DPGET_REMOTE 0x00000000
|
---|
1037 | #define DPGET_LOCAL 0x00000001
|
---|
1038 |
|
---|
1039 | /* For DirectPlay::Receive */
|
---|
1040 | #define DPRECEIVE_ALL 0x00000001
|
---|
1041 | #define DPRECEIVE_TOPLAYER 0x00000002
|
---|
1042 | #define DPRECEIVE_FROMPLAYER 0x00000004
|
---|
1043 | #define DPRECEIVE_PEEK 0x00000008
|
---|
1044 |
|
---|
1045 | /* For DirectPlay::Send */
|
---|
1046 | #define DPSEND_NONGUARANTEED 0x00000000
|
---|
1047 | #define DPSEND_GUARANTEED 0x00000001
|
---|
1048 | #define DPSEND_HIGHPRIORITY 0x00000002
|
---|
1049 | #define DPSEND_OPENSTREAM 0x00000008
|
---|
1050 | #define DPSEND_CLOSESTREAM 0x00000010
|
---|
1051 | #define DPSEND_SIGNED 0x00000020
|
---|
1052 | #define DPSEND_ENCRYPTED 0x00000040
|
---|
1053 | #define DPSEND_LOBBYSYSTEMMESSAGE 0x00000080
|
---|
1054 | #define DPSEND_ASYNC 0x00000200
|
---|
1055 | #define DPSEND_NOSENDCOMPLETEMSG 0x00000400
|
---|
1056 |
|
---|
1057 | #define DPSEND_MAX_PRI 0x0000FFFF
|
---|
1058 | #define DPSEND_MAX_PRIORITY DPSEND_MAX_PRI
|
---|
1059 |
|
---|
1060 |
|
---|
1061 | /* For DirectPlay::SetGroupData, DirectPlay::SetGroupName,
|
---|
1062 | * DirectPlay::SetPlayerData, DirectPlay::SetPlayerName and
|
---|
1063 | * DirectPlay::SetSessionDesc.
|
---|
1064 | */
|
---|
1065 | #define DPSET_REMOTE 0x00000000
|
---|
1066 | #define DPSET_LOCAL 0x00000001
|
---|
1067 | #define DPSET_GUARANTEED 0x00000002
|
---|
1068 |
|
---|
1069 | /* For DirectPlay::GetMessageQueue */
|
---|
1070 | #define DPMESSAGEQUEUE_SEND 0x00000001
|
---|
1071 | #define DPMESSAGEQUEUE_RECEIVE 0x00000002
|
---|
1072 |
|
---|
1073 | /* DirectPlay::Connect */
|
---|
1074 | #define DPCONNECT_RETURNSTATUS (DPENUMSESSIONS_RETURNSTATUS)
|
---|
1075 |
|
---|
1076 | /* DirectPlay::GetCaps and DirectPlay::GetPlayerCaps */
|
---|
1077 | #define DPCAPS_ISHOST 0x00000002
|
---|
1078 | #define DPCAPS_GROUPOPTIMIZED 0x00000008
|
---|
1079 | #define DPCAPS_KEEPALIVEOPTIMIZED 0x00000010
|
---|
1080 | #define DPCAPS_GUARANTEEDOPTIMIZED 0x00000020
|
---|
1081 | #define DPCAPS_GUARANTEEDSUPPORTED 0x00000040
|
---|
1082 | #define DPCAPS_SIGNINGSUPPORTED 0x00000080
|
---|
1083 | #define DPCAPS_ENCRYPTIONSUPPORTED 0x00000100
|
---|
1084 | #define DPPLAYERCAPS_LOCAL 0x00000800
|
---|
1085 | #define DPCAPS_ASYNCCANCELSUPPORTED 0x00001000
|
---|
1086 | #define DPCAPS_ASYNCCANCELALLSUPPORTED 0x00002000
|
---|
1087 | #define DPCAPS_SENDTIMEOUTSUPPORTED 0x00004000
|
---|
1088 | #define DPCAPS_SENDPRIORITYSUPPORTED 0x00008000
|
---|
1089 | #define DPCAPS_ASYNCSUPPORTED 0x00010000
|
---|
1090 |
|
---|
1091 | /** DirectPlay system messages **/
|
---|
1092 |
|
---|
1093 | /* A new player or group has been created in the session */
|
---|
1094 | #define DPSYS_CREATEPLAYERORGROUP 0x0003
|
---|
1095 |
|
---|
1096 | /* A player or group has been deleted from the session */
|
---|
1097 | #define DPSYS_DESTROYPLAYERORGROUP 0x0005
|
---|
1098 |
|
---|
1099 | /* A player has been added to a group */
|
---|
1100 | #define DPSYS_ADDPLAYERTOGROUP 0x0007
|
---|
1101 |
|
---|
1102 | /* A player has been deleted from a group */
|
---|
1103 | #define DPSYS_DELETEPLAYERFROMGROUP 0x0021
|
---|
1104 |
|
---|
1105 | /* Session lost for this object - ie lost contact with all players */
|
---|
1106 | #define DPSYS_SESSIONLOST 0x0031
|
---|
1107 |
|
---|
1108 | /* The current host has left the session */
|
---|
1109 | #define DPSYS_HOST 0x0101
|
---|
1110 |
|
---|
1111 | /* Player or group data has changed */
|
---|
1112 | #define DPSYS_SETPLAYERORGROUPDATA 0x0102
|
---|
1113 |
|
---|
1114 | /* The name of a player or group has changed */
|
---|
1115 | #define DPSYS_SETPLAYERORGROUPNAME 0x0103
|
---|
1116 |
|
---|
1117 | /* The session description has changed */
|
---|
1118 | #define DPSYS_SETSESSIONDESC 0x0104
|
---|
1119 |
|
---|
1120 | /* A group has been added to a group */
|
---|
1121 | #define DPSYS_ADDGROUPTOGROUP 0x0105
|
---|
1122 |
|
---|
1123 | /* A group has been deleted from a group */
|
---|
1124 | #define DPSYS_DELETEGROUPFROMGROUP 0x0106
|
---|
1125 |
|
---|
1126 | /* A secure player to player message has arrived */
|
---|
1127 | #define DPSYS_SECUREMESSAGE 0x0107
|
---|
1128 |
|
---|
1129 | /* Start a new session */
|
---|
1130 | #define DPSYS_STARTSESSION 0x0108
|
---|
1131 |
|
---|
1132 | /* A chat message has arrived */
|
---|
1133 | #define DPSYS_CHAT 0x0109
|
---|
1134 |
|
---|
1135 | /* The owner of a group has changed */
|
---|
1136 | #define DPSYS_SETGROUPOWNER 0x010A
|
---|
1137 |
|
---|
1138 | /* An async send is done (finished normally, failed or cancelled) */
|
---|
1139 | #define DPSYS_SENDCOMPLETE 0x010d
|
---|
1140 |
|
---|
1141 | /** DirectPlay System Messages **/
|
---|
1142 |
|
---|
1143 | #define DPPLAYERTYPE_GROUP 0x00000000
|
---|
1144 | #define DPPLAYERTYPE_PLAYER 0x00000001
|
---|
1145 |
|
---|
1146 |
|
---|
1147 | /* NOTE: DPMSG_HOST and DPMSG_GENERIC share the same format */
|
---|
1148 | typedef struct tagDPMSG_GENERIC
|
---|
1149 | {
|
---|
1150 | DWORD dwType; /* Use message type as described above */
|
---|
1151 | } DPMSG_GENERIC, *LPDPMSG_GENERIC,
|
---|
1152 | DPMSG_HOST, *LPDPMSG_HOST,
|
---|
1153 | DPMSG_SESSIONLOST, *LPDPMSG_SESSIONLOST;
|
---|
1154 |
|
---|
1155 | typedef struct tagDPMSG_CREATEPLAYERORGROUP
|
---|
1156 | {
|
---|
1157 | DWORD dwType; /* Use message type as described above */
|
---|
1158 | DWORD dwPlayerType; /* Use DPPLAYERTYPE_GROUP or DPPLAYERTYPE_PLAYER */
|
---|
1159 | DPID dpId; /* ID of the player/group */
|
---|
1160 | DWORD dwCurrentPlayers; /* Current number of players/groups in session */
|
---|
1161 | LPVOID lpData; /* Pointer to data */
|
---|
1162 | DWORD dwDataSize; /* Size of data */
|
---|
1163 | DPNAME dpnName; /* Name info */
|
---|
1164 |
|
---|
1165 | /* dpIdParent and dwFlags are only valid in DirectPlay3 and later. What
|
---|
1166 | * does that mean about the message size before? -PH */
|
---|
1167 | DPID dpIdParent; /* id of parent group */
|
---|
1168 | DWORD dwFlags; /* Flags for the player/group */
|
---|
1169 | } DPMSG_CREATEPLAYERORGROUP, *LPDPMSG_CREATEPLAYERORGROUP;
|
---|
1170 |
|
---|
1171 | typedef struct tagDPMSG_DESTROYPLAYERORGROUP
|
---|
1172 | {
|
---|
1173 | DWORD dwType; /* Use message type as described above */
|
---|
1174 | DWORD dwPlayerType; /* Use DPPLAYERTYPE_GROUP or DPPLAYERTYPE_PLAYER */
|
---|
1175 | DPID dpId; /* ID of player/group to be deleted */
|
---|
1176 | LPVOID lpLocalData; /* Pointer to local data */
|
---|
1177 | DWORD dwLocalDataSize; /* Sizeof local data */
|
---|
1178 | LPVOID lpRemoteData; /* Pointer to remote data */
|
---|
1179 | DWORD dwRemoteDataSize; /* Sizeof remote data */
|
---|
1180 |
|
---|
1181 | /* dpnName, dpIdParent and dwFlags are only valid in DirectPlay3 and later. What
|
---|
1182 | * does that mean about the message size before? -PH */
|
---|
1183 | DPNAME dpnName; /* Name info */
|
---|
1184 | DPID dpIdParent; /* id of parent group */
|
---|
1185 | DWORD dwFlags; /* Flags for the player/group */
|
---|
1186 | } DPMSG_DESTROYPLAYERORGROUP, *LPDPMSG_DESTROYPLAYERORGROUP;
|
---|
1187 |
|
---|
1188 | /* NOTE: DPMSG_ADDPLAYERTOGROUP and DPMSG_DELETEPLAYERFROMGROUP are the same */
|
---|
1189 | typedef struct tagDPMSG_ADDPLAYERTOGROUP
|
---|
1190 | {
|
---|
1191 | DWORD dwType; /* Use message type as described above */
|
---|
1192 | DPID dpIdGroup; /* Group ID to add player into */
|
---|
1193 | DPID dpIdPlayer; /* ID of player to add */
|
---|
1194 | } DPMSG_ADDPLAYERTOGROUP, *LPDPMSG_ADDPLAYERTOGROUP,
|
---|
1195 | DPMSG_DELETEPLAYERFROMGROUP, *LPDPMSG_DELETEPLAYERFROMGROUP;
|
---|
1196 |
|
---|
1197 | /* NOTE: DPMSG_ADDGROUPTOGROUP and DPMSG_DELETEGROUPFROMGROUP are the same */
|
---|
1198 | typedef struct tagDPMSG_ADDGROUPTOGROUP
|
---|
1199 | {
|
---|
1200 | DWORD dwType; /* Use message type as described above */
|
---|
1201 | DPID dpIdParentGroup; /* Group ID to add group into */
|
---|
1202 | DPID dpIdGroup; /* ID of group to add */
|
---|
1203 | } DPMSG_ADDGROUPTOGROUP, *LPDPMSG_ADDGROUPTOGROUP,
|
---|
1204 | DPMSG_DELETEGROUPFROMGROUP, *LPDPMSG_DELETEGROUPFROMGROUP;
|
---|
1205 |
|
---|
1206 | typedef struct tagDPMSG_SETPLAYERORGROUPDATA
|
---|
1207 | {
|
---|
1208 | DWORD dwType; /* Use message type as described above */
|
---|
1209 | DWORD dwPlayerType; /* Use DPPLAYERTYPE_GROUP or DPPLAYERTYPE_PLAYER */
|
---|
1210 | DPID dpId; /* ID of player/group */
|
---|
1211 | LPVOID lpData; /* Pointer to data */
|
---|
1212 | DWORD dwDataSize; /* Size of data */
|
---|
1213 | } DPMSG_SETPLAYERORGROUPDATA, *LPDPMSG_SETPLAYERORGROUPDATA;
|
---|
1214 |
|
---|
1215 | typedef struct tagDPMSG_SETPLAYERORGROUPNAME
|
---|
1216 | {
|
---|
1217 | DWORD dwType; /* Use message type as described above */
|
---|
1218 | DWORD dwPlayerType; /* Use DPPLAYERTYPE_GROUP or DPPLAYERTYPE_PLAYER */
|
---|
1219 | DPID dpId; /* ID of player/group */
|
---|
1220 | DPNAME dpnName; /* New name */
|
---|
1221 | } DPMSG_SETPLAYERORGROUPNAME, *LPDPMSG_SETPLAYERORGROUPNAME;
|
---|
1222 |
|
---|
1223 | typedef struct tagDPMSG_SETSESSIONDESC
|
---|
1224 | {
|
---|
1225 | DWORD dwType; /* Use message type as described above */
|
---|
1226 | DPSESSIONDESC2 dpDesc; /* New session desc */
|
---|
1227 | } DPMSG_SETSESSIONDESC, *LPDPMSG_SETSESSIONDESC;
|
---|
1228 |
|
---|
1229 | typedef struct tagDPMSG_SECUREMESSAGE
|
---|
1230 | {
|
---|
1231 | DWORD dwType; /* Use message type as described above */
|
---|
1232 | DWORD dwFlags; /* Signed/Encrypted */
|
---|
1233 | DPID dpIdFrom; /* ID of from player */
|
---|
1234 | LPVOID lpData; /* Message sent */
|
---|
1235 | DWORD dwDataSize; /* Size of message */
|
---|
1236 | } DPMSG_SECUREMESSAGE, *LPDPMSG_SECUREMESSAGE;
|
---|
1237 |
|
---|
1238 | typedef struct tagDPMSG_STARTSESSION
|
---|
1239 | {
|
---|
1240 | DWORD dwType; /* Use message type as described above */
|
---|
1241 | LPDPLCONNECTION lpConn; /* DPLCONNECTION structure */
|
---|
1242 | } DPMSG_STARTSESSION, *LPDPMSG_STARTSESSION;
|
---|
1243 |
|
---|
1244 | typedef struct tagDPMSG_CHAT
|
---|
1245 | {
|
---|
1246 | DWORD dwType; /* Use message type as described above */
|
---|
1247 | DWORD dwFlags; /* Message flags */
|
---|
1248 | DPID idFromPlayer; /* ID of sender */
|
---|
1249 | DPID idToPlayer; /* ID of who msg is for */
|
---|
1250 | DPID idToGroup; /* ID of what group msg is for */
|
---|
1251 | LPDPCHAT lpChat; /* Chat message */
|
---|
1252 | } DPMSG_CHAT, *LPDPMSG_CHAT;
|
---|
1253 |
|
---|
1254 | typedef struct tagDPMSG_SETGROUPOWNER
|
---|
1255 | {
|
---|
1256 | DWORD dwType; /* Use message type as described above */
|
---|
1257 | DPID idGroup; /* Group ID */
|
---|
1258 | DPID idNewOwner; /* ID of player who now owns group */
|
---|
1259 | DPID idOldOwner; /* ID of player who used to own group */
|
---|
1260 | } DPMSG_SETGROUPOWNER, *LPDPMSG_SETGROUPOWNER;
|
---|
1261 |
|
---|
1262 | typedef struct
|
---|
1263 | {
|
---|
1264 | DWORD dwType; /* Use message type as described above */
|
---|
1265 | DPID idFrom; /* ID from */
|
---|
1266 | DPID idTo; /* ID to */
|
---|
1267 | DWORD dwFlags;
|
---|
1268 | DWORD dwPriority;
|
---|
1269 | DWORD dwTimeout;
|
---|
1270 | LPVOID lpvContext;
|
---|
1271 | DWORD dwMsgID;
|
---|
1272 | HRESULT hr;
|
---|
1273 | DWORD dwSendTime; /* When sent ? */
|
---|
1274 | } DPMSG_SENDCOMPLETE, *LPDPMSG_SENDCOMPLETE;
|
---|
1275 |
|
---|
1276 |
|
---|
1277 |
|
---|
1278 | #ifdef __cplusplus
|
---|
1279 | } /* extern "C" */
|
---|
1280 | #endif /* defined(__cplusplus) */
|
---|
1281 |
|
---|
1282 | #endif /* __WINE_DPLAY_H */
|
---|