1 | /*
|
---|
2 | * Copyright 2000 Peter Hunnisett
|
---|
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_DIRECT_PLAY_SP_H
|
---|
29 | #define __WINE_DIRECT_PLAY_SP_H
|
---|
30 |
|
---|
31 | #include <stdarg.h>
|
---|
32 |
|
---|
33 | #include "windef.h"
|
---|
34 | #include "winbase.h"
|
---|
35 | #include "winuser.h"
|
---|
36 | #include "dplay.h"
|
---|
37 | #include "dplobby.h"
|
---|
38 |
|
---|
39 | /* GUID for IDirectPlaySP {0C9F6360-CC61-11cf-ACEC-00AA006886E3} */
|
---|
40 | DEFINE_GUID(IID_IDirectPlaySP, 0xc9f6360, 0xcc61, 0x11cf, 0xac, 0xec, 0x0, 0xaa, 0x0, 0x68, 0x86, 0xe3);
|
---|
41 | typedef struct IDirectPlaySP *LPDIRECTPLAYSP;
|
---|
42 |
|
---|
43 |
|
---|
44 | typedef BOOL (CALLBACK *LPENUMMRUCALLBACK)( LPCVOID lpData,
|
---|
45 | DWORD dwDataSize,
|
---|
46 | LPVOID lpContext );
|
---|
47 |
|
---|
48 | /* For SP. Top 16 bits is dplay, bottom 16 is SP */
|
---|
49 | #define DPSP_MAJORVERSION 0x00060000
|
---|
50 | #define DPSP_DX5VERSION 0x00050000
|
---|
51 | #define DPSP_DX3VERSION 0x00040000
|
---|
52 |
|
---|
53 | #define DPSP_MAJORVERSIONMASK 0xFFFF0000
|
---|
54 | #define DPSP_MINORVERSIONMASK 0x0000FFFF
|
---|
55 |
|
---|
56 |
|
---|
57 | /* Some flags */
|
---|
58 | #define DPLAYI_PLAYER_SYSPLAYER 0x00000001
|
---|
59 | #define DPLAYI_PLAYER_NAMESRVR 0x00000002
|
---|
60 | #define DPLAYI_PLAYER_PLAYERINGROUP 0x00000004
|
---|
61 | #define DPLAYI_PLAYER_PLAYERLOCAL 0x00000008
|
---|
62 | #define DPLAYI_GROUP_SYSGROUP 0x00000020
|
---|
63 | #define DPLAYI_GROUP_DPLAYOWNS 0x00000040
|
---|
64 | #define DPLAYI_PLAYER_APPSERVER 0x00000080
|
---|
65 | #define DPLAYI_GROUP_HIDDEN 0x00000400
|
---|
66 |
|
---|
67 | /* Define the COM interface */
|
---|
68 | #define INTERFACE IDirectPlaySP
|
---|
69 | DECLARE_INTERFACE_(IDirectPlaySP,IUnknown)
|
---|
70 | {
|
---|
71 | /*** IUnknown methods ***/
|
---|
72 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
73 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
74 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
75 | /*** IDirectPlaySP methods ***/
|
---|
76 | STDMETHOD(AddMRUEntry)(THIS_ LPCWSTR lpSection, LPCWSTR lpKey, LPCVOID lpData, DWORD dwDataSize, DWORD dwMaxEntries ) PURE;
|
---|
77 | STDMETHOD(CreateAddress)(THIS_ REFGUID guidSP, REFGUID guidDataType, LPCVOID lpData, DWORD dwDataSize, LPVOID lpAddress,LPDWORD lpdwAddressSize) PURE;
|
---|
78 | STDMETHOD(EnumAddress)(THIS_ LPDPENUMADDRESSCALLBACK lpEnumAddressCallback, LPCVOID lpAddress, DWORD dwAddressSize, LPVOID lpContext ) PURE;
|
---|
79 | STDMETHOD(EnumMRUEntries)(THIS_ LPCWSTR lpSection, LPCWSTR lpKey, LPENUMMRUCALLBACK lpEnumMRUCallback, LPVOID lpContext ) PURE;
|
---|
80 | STDMETHOD(GetPlayerFlags)(THIS_ DPID idPlayer, LPDWORD lpdwPlayerFlags ) PURE;
|
---|
81 | STDMETHOD(GetSPPlayerData)(THIS_ DPID idPlayer, LPVOID *lplpData, LPDWORD lpdwDataSize, DWORD dwFlags ) PURE;
|
---|
82 | STDMETHOD(HandleMessage)(THIS_ LPVOID lpMessageBody, DWORD dwMessageBodySize, LPVOID lpMessageHeader ) PURE;
|
---|
83 | STDMETHOD(SetSPPlayerData)(THIS_ DPID idPlayer, LPVOID lpData, DWORD dwDataSize, DWORD dwFlags ) PURE;
|
---|
84 | STDMETHOD(CreateCompoundAddress)(THIS_ LPCDPCOMPOUNDADDRESSELEMENT lpElements, DWORD dwElementCount, LPVOID lpAddress, LPDWORD lpdwAddressSize ) PURE;
|
---|
85 | STDMETHOD(GetSPData)(THIS_ LPVOID *lplpData, LPDWORD dwDataSize, DWORD dwFlags ) PURE;
|
---|
86 | STDMETHOD(SetSPData)(THIS_ LPVOID lpData, DWORD dwDataSize, DWORD dwFlags ) PURE;
|
---|
87 | STDMETHOD_(VOID,SendComplete)(THIS_ LPVOID , DWORD ) PURE;
|
---|
88 | };
|
---|
89 | #undef INTERFACE
|
---|
90 |
|
---|
91 |
|
---|
92 | /* NOTE: The microsoft provided header file doesn't have these access
|
---|
93 | * functions
|
---|
94 | */
|
---|
95 | #if !defined (__cplusplus) || defined(CINTERFACE)
|
---|
96 | /*** IUnknown methods ***/
|
---|
97 | #define IDirectPlaySP_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
98 | #define IDirectPlaySP_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
99 | #define IDirectPlaySP_Release(p) (p)->lpVtbl->Release(p)
|
---|
100 | /*** IDirectPlaySP methods ***/
|
---|
101 | #define IDirectPlaySP_AddMRUEntry(p,a,b,c,d,e) (p)->lpVtbl->AddMRUEntry(p,a,b,c,d,e)
|
---|
102 | #define IDirectPlaySP_CreateAddress(p,a,b,c,d,e,f) (p)->lpVtbl->CreateAddress(p,a,b,c,d,e,f)
|
---|
103 | #define IDirectPlaySP_EnumAddress(p,a,b,c,d) (p)->lpVtbl->EnumAddress(p,a,b,c,d)
|
---|
104 | #define IDirectPlaySP_EnumMRUEntries(p,a,b,c,d) (p)->lpVtbl->EnumMRUEntries(p,a,b,c,d)
|
---|
105 | #define IDirectPlaySP_GetPlayerFlags(p,a,b) (p)->lpVtbl->GetPlayerFlags(p,a,b)
|
---|
106 | #define IDirectPlaySP_GetSPPlayerData(p,a,b,c,d) (p)->lpVtbl->GetSPPlayerData(p,a,b,c,d)
|
---|
107 | #define IDirectPlaySP_HandleMessage(p,a,b,c) (p)->lpVtbl->HandleMessage(p,a,b,c)
|
---|
108 | #define IDirectPlaySP_SetSPPlayerData(p,a,b,c,d) (p)->lpVtbl->SetSPPlayerData(p,a,b,c,d)
|
---|
109 | #define IDirectPlaySP_CreateCompoundAddress(p,a,b,c,d) (p)->lpVtbl->CreateCompoundAddress(p,a,b,c,d)
|
---|
110 | #define IDirectPlaySP_GetSPData(p,a,b,c) (p)->lpVtbl->GetSPData(p,a,b,c)
|
---|
111 | #define IDirectPlaySP_SetSPData(p,a,b,c) (p)->lpVtbl->SetSPData(p,a,b,c)
|
---|
112 | #define IDirectPlaySP_SendComplete(p,a,b) (p)->lpVtbl->SendComplete(p,a,b)
|
---|
113 | #endif
|
---|
114 |
|
---|
115 | /* SP Callback stuff */
|
---|
116 |
|
---|
117 | typedef struct tagDPSP_ADDPLAYERTOGROUPDATA
|
---|
118 | {
|
---|
119 | DPID idPlayer;
|
---|
120 | DPID idGroup;
|
---|
121 | IDirectPlaySP* lpISP;
|
---|
122 | } DPSP_ADDPLAYERTOGROUPDATA, *LPDPSP_ADDPLAYERTOGROUPDATA;
|
---|
123 |
|
---|
124 | typedef struct tagDPSP_CLOSEDATA
|
---|
125 | {
|
---|
126 | IDirectPlaySP* lpISP;
|
---|
127 | } DPSP_CLOSEDATA, *LPDPSP_CLOSEDATA;
|
---|
128 |
|
---|
129 | typedef struct tagDPSP_CREATEGROUPDATA
|
---|
130 | {
|
---|
131 | DPID idGroup;
|
---|
132 | DWORD dwFlags;
|
---|
133 | LPVOID lpSPMessageHeader;
|
---|
134 | IDirectPlaySP* lpISP;
|
---|
135 | } DPSP_CREATEGROUPDATA, *LPDPSP_CREATEGROUPDATA;
|
---|
136 |
|
---|
137 | typedef struct tagDPSP_CREATEPLAYERDATA
|
---|
138 | {
|
---|
139 | DPID idPlayer;
|
---|
140 | DWORD dwFlags;
|
---|
141 | LPVOID lpSPMessageHeader;
|
---|
142 | IDirectPlaySP* lpISP;
|
---|
143 | } DPSP_CREATEPLAYERDATA, *LPDPSP_CREATEPLAYERDATA;
|
---|
144 |
|
---|
145 | typedef struct tagDPSP_DELETEGROUPDATA
|
---|
146 | {
|
---|
147 | DPID idGroup;
|
---|
148 | DWORD dwFlags;
|
---|
149 | IDirectPlaySP* lpISP;
|
---|
150 | } DPSP_DELETEGROUPDATA, *LPDPSP_DELETEGROUPDATA;
|
---|
151 |
|
---|
152 | typedef struct tagDPSP_DELETEPLAYERDATA
|
---|
153 | {
|
---|
154 | DPID idPlayer;
|
---|
155 | DWORD dwFlags;
|
---|
156 | IDirectPlaySP* lpISP;
|
---|
157 | } DPSP_DELETEPLAYERDATA, *LPDPSP_DELETEPLAYERDATA;
|
---|
158 |
|
---|
159 | typedef struct tagDPSP_ENUMSESSIONSDATA
|
---|
160 | {
|
---|
161 | LPVOID lpMessage;
|
---|
162 | DWORD dwMessageSize;
|
---|
163 | IDirectPlaySP* lpISP;
|
---|
164 | BOOL bReturnStatus;
|
---|
165 | } DPSP_ENUMSESSIONSDATA, *LPDPSP_ENUMSESSIONSDATA;
|
---|
166 |
|
---|
167 | typedef struct _DPSP_GETADDRESSDATA
|
---|
168 | {
|
---|
169 | DPID idPlayer;
|
---|
170 | DWORD dwFlags;
|
---|
171 | LPDPADDRESS lpAddress;
|
---|
172 | LPDWORD lpdwAddressSize;
|
---|
173 | IDirectPlaySP* lpISP;
|
---|
174 | } DPSP_GETADDRESSDATA, *LPDPSP_GETADDRESSDATA;
|
---|
175 |
|
---|
176 | typedef struct tagDPSP_GETADDRESSCHOICESDATA
|
---|
177 | {
|
---|
178 | LPDPADDRESS lpAddress;
|
---|
179 | LPDWORD lpdwAddressSize;
|
---|
180 | IDirectPlaySP* lpISP;
|
---|
181 | } DPSP_GETADDRESSCHOICESDATA, *LPDPSP_GETADDRESSCHOICESDATA;
|
---|
182 |
|
---|
183 | typedef struct tagDPSP_GETCAPSDATA
|
---|
184 | {
|
---|
185 | DPID idPlayer;
|
---|
186 | LPDPCAPS lpCaps;
|
---|
187 | DWORD dwFlags;
|
---|
188 | IDirectPlaySP* lpISP;
|
---|
189 | } DPSP_GETCAPSDATA, *LPDPSP_GETCAPSDATA;
|
---|
190 |
|
---|
191 | typedef struct tagDPSP_OPENDATA
|
---|
192 | {
|
---|
193 | BOOL bCreate;
|
---|
194 | LPVOID lpSPMessageHeader;
|
---|
195 | IDirectPlaySP* lpISP;
|
---|
196 | BOOL bReturnStatus;
|
---|
197 | DWORD dwOpenFlags;
|
---|
198 | DWORD dwSessionFlags;
|
---|
199 | } DPSP_OPENDATA, *LPDPSP_OPENDATA;
|
---|
200 |
|
---|
201 | typedef struct tagDPSP_REMOVEPLAYERFROMGROUPDATA
|
---|
202 | {
|
---|
203 | DPID idPlayer;
|
---|
204 | DPID idGroup;
|
---|
205 | IDirectPlaySP* lpISP;
|
---|
206 | } DPSP_REMOVEPLAYERFROMGROUPDATA, *LPDPSP_REMOVEPLAYERFROMGROUPDATA;
|
---|
207 |
|
---|
208 | typedef struct tagDPSP_REPLYDATA
|
---|
209 | {
|
---|
210 | LPVOID lpSPMessageHeader;
|
---|
211 | LPVOID lpMessage;
|
---|
212 | DWORD dwMessageSize;
|
---|
213 | DPID idNameServer;
|
---|
214 | IDirectPlaySP* lpISP;
|
---|
215 | } DPSP_REPLYDATA, *LPDPSP_REPLYDATA;
|
---|
216 |
|
---|
217 | typedef struct tagDPSP_SENDDATA
|
---|
218 | {
|
---|
219 | DWORD dwFlags;
|
---|
220 | DPID idPlayerTo;
|
---|
221 | DPID idPlayerFrom;
|
---|
222 | LPVOID lpMessage;
|
---|
223 | DWORD dwMessageSize;
|
---|
224 | BOOL bSystemMessage;
|
---|
225 | IDirectPlaySP* lpISP;
|
---|
226 | } DPSP_SENDDATA, *LPDPSP_SENDDATA;
|
---|
227 |
|
---|
228 | typedef struct tagDPSP_SENDTOGROUPDATA
|
---|
229 | {
|
---|
230 | DWORD dwFlags;
|
---|
231 | DPID idGroupTo;
|
---|
232 | DPID idPlayerFrom;
|
---|
233 | LPVOID lpMessage;
|
---|
234 | DWORD dwMessageSize;
|
---|
235 | IDirectPlaySP* lpISP;
|
---|
236 | } DPSP_SENDTOGROUPDATA, *LPDPSP_SENDTOGROUPDATA;
|
---|
237 |
|
---|
238 | typedef struct tagDPSP_SENDEXDATA
|
---|
239 | {
|
---|
240 | IDirectPlaySP* lpISP;
|
---|
241 | DWORD dwFlags;
|
---|
242 | DPID idPlayerTo;
|
---|
243 | DPID idPlayerFrom;
|
---|
244 | LPSGBUFFER lpSendBuffers;
|
---|
245 | DWORD cBuffers;
|
---|
246 | DWORD dwMessageSize;
|
---|
247 | DWORD dwPriority;
|
---|
248 | DWORD dwTimeout;
|
---|
249 | LPVOID lpDPContext;
|
---|
250 | LPDWORD lpdwSPMsgID;
|
---|
251 | BOOL bSystemMessage;
|
---|
252 | } DPSP_SENDEXDATA, *LPDPSP_SENDEXDATA;
|
---|
253 |
|
---|
254 | typedef struct tagDPSP_SENDTOGROUPEXDATA
|
---|
255 | {
|
---|
256 | IDirectPlaySP* lpISP;
|
---|
257 | DWORD dwFlags;
|
---|
258 | DPID idGroupTo;
|
---|
259 | DPID idPlayerFrom;
|
---|
260 | LPSGBUFFER lpSendBuffers;
|
---|
261 | DWORD cBuffers;
|
---|
262 | DWORD dwMessageSize;
|
---|
263 | DWORD dwPriority;
|
---|
264 | DWORD dwTimeout;
|
---|
265 | LPVOID lpDPContext;
|
---|
266 | LPDWORD lpdwSPMsgID;
|
---|
267 | } DPSP_SENDTOGROUPEXDATA, *LPDPSP_SENDTOGROUPEXDATA;
|
---|
268 |
|
---|
269 | typedef struct tagDPSP_GETMESSAGEQUEUEDATA
|
---|
270 | {
|
---|
271 | IDirectPlaySP* lpISP;
|
---|
272 | DWORD dwFlags;
|
---|
273 | DPID idFrom;
|
---|
274 | DPID idTo;
|
---|
275 | LPDWORD lpdwNumMsgs;
|
---|
276 | LPDWORD lpdwNumBytes;
|
---|
277 | } DPSP_GETMESSAGEQUEUEDATA, *LPDPSP_GETMESSAGEQUEUEDATA;
|
---|
278 |
|
---|
279 | #define DPCANCELSEND_PRIORITY 0x00000001
|
---|
280 | #define DPCANCELSEND_ALL 0x00000002
|
---|
281 |
|
---|
282 | typedef struct tagDPSP_CANCELDATA
|
---|
283 | {
|
---|
284 | IDirectPlaySP* lpISP;
|
---|
285 | DWORD dwFlags;
|
---|
286 | LPRGLPVOID lprglpvSPMsgID;
|
---|
287 | DWORD cSPMsgID;
|
---|
288 | DWORD dwMinPriority;
|
---|
289 | DWORD dwMaxPriority;
|
---|
290 | } DPSP_CANCELDATA, *LPDPSP_CANCELDATA;
|
---|
291 |
|
---|
292 | typedef struct tagDPSP_SHUTDOWNDATA
|
---|
293 | {
|
---|
294 | IDirectPlaySP* lpISP;
|
---|
295 | } DPSP_SHUTDOWNDATA, *LPDPSP_SHUTDOWNDATA;
|
---|
296 |
|
---|
297 |
|
---|
298 | /* Prototypes returned by SPInit */
|
---|
299 | typedef HRESULT (WINAPI *LPDPSP_CREATEPLAYER)(LPDPSP_CREATEPLAYERDATA);
|
---|
300 | typedef HRESULT (WINAPI *LPDPSP_DELETEPLAYER)(LPDPSP_DELETEPLAYERDATA);
|
---|
301 | typedef HRESULT (WINAPI *LPDPSP_SEND)(LPDPSP_SENDDATA);
|
---|
302 | typedef HRESULT (WINAPI *LPDPSP_ENUMSESSIONS)(LPDPSP_ENUMSESSIONSDATA);
|
---|
303 | typedef HRESULT (WINAPI *LPDPSP_REPLY)(LPDPSP_REPLYDATA);
|
---|
304 | typedef HRESULT (WINAPI *LPDPSP_SHUTDOWN)(void);
|
---|
305 | typedef HRESULT (WINAPI *LPDPSP_CREATEGROUP)(LPDPSP_CREATEGROUPDATA);
|
---|
306 | typedef HRESULT (WINAPI *LPDPSP_DELETEGROUP)(LPDPSP_DELETEGROUPDATA);
|
---|
307 | typedef HRESULT (WINAPI *LPDPSP_ADDPLAYERTOGROUP)(LPDPSP_ADDPLAYERTOGROUPDATA);
|
---|
308 | typedef HRESULT (WINAPI *LPDPSP_REMOVEPLAYERFROMGROUP)(LPDPSP_REMOVEPLAYERFROMGROUPDATA);
|
---|
309 | typedef HRESULT (WINAPI *LPDPSP_GETCAPS)(LPDPSP_GETCAPSDATA);
|
---|
310 | typedef HRESULT (WINAPI *LPDPSP_GETADDRESS)(LPDPSP_GETADDRESSDATA);
|
---|
311 | typedef HRESULT (WINAPI *LPDPSP_GETADDRESSCHOICES)(LPDPSP_GETADDRESSCHOICESDATA);
|
---|
312 | typedef HRESULT (WINAPI *LPDPSP_OPEN)(LPDPSP_OPENDATA);
|
---|
313 | typedef HRESULT (WINAPI *LPDPSP_CLOSE)(void);
|
---|
314 | typedef HRESULT (WINAPI *LPDPSP_SENDTOGROUP)(LPDPSP_SENDTOGROUPDATA);
|
---|
315 | typedef HRESULT (WINAPI *LPDPSP_SHUTDOWNEX)(LPDPSP_SHUTDOWNDATA);
|
---|
316 | typedef HRESULT (WINAPI *LPDPSP_CLOSEEX)(LPDPSP_CLOSEDATA);
|
---|
317 | typedef HRESULT (WINAPI *LPDPSP_SENDEX)(LPDPSP_SENDEXDATA);
|
---|
318 | typedef HRESULT (WINAPI *LPDPSP_SENDTOGROUPEX)(LPDPSP_SENDTOGROUPEXDATA);
|
---|
319 | typedef HRESULT (WINAPI *LPDPSP_CANCEL)(LPDPSP_CANCELDATA);
|
---|
320 | typedef HRESULT (WINAPI *LPDPSP_GETMESSAGEQUEUE)(LPDPSP_GETMESSAGEQUEUEDATA);
|
---|
321 |
|
---|
322 |
|
---|
323 | typedef struct tagDPSP_SPCALLBACKS
|
---|
324 | {
|
---|
325 | DWORD dwSize;
|
---|
326 | DWORD dwVersion;
|
---|
327 |
|
---|
328 | LPDPSP_ENUMSESSIONS EnumSessions; /* Must be provided */
|
---|
329 | LPDPSP_REPLY Reply; /* Must be provided */
|
---|
330 | LPDPSP_SEND Send; /* Must be provided */
|
---|
331 | LPDPSP_ADDPLAYERTOGROUP AddPlayerToGroup; /* Optional */
|
---|
332 | LPDPSP_CLOSE Close; /* Optional */
|
---|
333 | LPDPSP_CREATEGROUP CreateGroup; /* Optional */
|
---|
334 | LPDPSP_CREATEPLAYER CreatePlayer; /* Optional */
|
---|
335 | LPDPSP_DELETEGROUP DeleteGroup; /* Optional */
|
---|
336 | LPDPSP_DELETEPLAYER DeletePlayer; /* Optional */
|
---|
337 | LPDPSP_GETADDRESS GetAddress; /* Optional */
|
---|
338 | LPDPSP_GETCAPS GetCaps; /* Optional */
|
---|
339 | LPDPSP_OPEN Open; /* Optional */
|
---|
340 | LPDPSP_REMOVEPLAYERFROMGROUP RemovePlayerFromGroup; /* Optional */
|
---|
341 | LPDPSP_SENDTOGROUP SendToGroup; /* Optional */
|
---|
342 | LPDPSP_SHUTDOWN Shutdown; /* Optional */
|
---|
343 |
|
---|
344 | LPDPSP_CLOSEEX CloseEx; /* Optional */
|
---|
345 | LPDPSP_SHUTDOWNEX ShutdownEx; /* Optional */
|
---|
346 | LPDPSP_GETADDRESSCHOICES GetAddressChoices; /* Optional */
|
---|
347 |
|
---|
348 | LPDPSP_SENDEX SendEx; /* Optional */
|
---|
349 | LPDPSP_SENDTOGROUPEX SendToGroupEx; /* Optional */
|
---|
350 | LPDPSP_CANCEL Cancel; /* Optional */
|
---|
351 | LPDPSP_GETMESSAGEQUEUE GetMessageQueue; /* Optional */
|
---|
352 | } DPSP_SPCALLBACKS, *LPDPSP_SPCALLBACKS;
|
---|
353 |
|
---|
354 | typedef struct tagSPINITDATA
|
---|
355 | {
|
---|
356 | LPDPSP_SPCALLBACKS lpCB;
|
---|
357 | IDirectPlaySP* lpISP;
|
---|
358 | LPWSTR lpszName;
|
---|
359 | LPGUID lpGuid;
|
---|
360 | DWORD dwReserved1;
|
---|
361 | DWORD dwReserved2;
|
---|
362 | DWORD dwSPHeaderSize;
|
---|
363 | LPDPADDRESS lpAddress;
|
---|
364 | DWORD dwAddressSize;
|
---|
365 | DWORD dwSPVersion;
|
---|
366 | } SPINITDATA, *LPSPINITDATA;
|
---|
367 |
|
---|
368 | typedef HRESULT (WINAPI *LPDPSP_SPINIT)(LPSPINITDATA);
|
---|
369 |
|
---|
370 | /* This variable is exported from the DLL at ordinal 6 to be accessed by the
|
---|
371 | * SP directly
|
---|
372 | */
|
---|
373 | extern DWORD gdwDPlaySPRefCount;
|
---|
374 |
|
---|
375 | #endif
|
---|