| 1 | /* $Id: dplayx.cpp,v 1.3 1999-12-24 01:24:59 hugh Exp $ */ | 
|---|
| 2 |  | 
|---|
| 3 | /* Direct Play 3 and Direct Play Lobby 2 Implementation | 
|---|
| 4 | * | 
|---|
| 5 | * Copyright 1998,1999 - Peter Hunnisett | 
|---|
| 6 | * | 
|---|
| 7 | * <presently under construction - contact hunnise@nortelnetworks.com> | 
|---|
| 8 | * | 
|---|
| 9 | */ | 
|---|
| 10 | #include <string.h> | 
|---|
| 11 |  | 
|---|
| 12 | #include <odin.h> | 
|---|
| 13 | #define ICOM_CINTERFACE 1 | 
|---|
| 14 | #define CINTERFACE | 
|---|
| 15 |  | 
|---|
| 16 | #include "winerror.h" | 
|---|
| 17 | #include "winnt.h" | 
|---|
| 18 | #include "winreg.h" | 
|---|
| 19 | #define INITGUID | 
|---|
| 20 | #include "dplay.h" | 
|---|
| 21 | #include "dplobby.h" | 
|---|
| 22 | #include "heap.h" | 
|---|
| 23 | #include "debugtools.h" | 
|---|
| 24 |  | 
|---|
| 25 | #include <misc.h> | 
|---|
| 26 | #include <heapstring.h> | 
|---|
| 27 |  | 
|---|
| 28 | DEFAULT_DEBUG_CHANNEL(dplay) | 
|---|
| 29 |  | 
|---|
| 30 | /***************************************************************************** | 
|---|
| 31 | * Predeclare the interface implementation structures | 
|---|
| 32 | */ | 
|---|
| 33 | typedef struct IDirectPlayLobbyImpl IDirectPlayLobbyImpl; | 
|---|
| 34 | typedef struct IDirectPlayLobbyImpl IDirectPlayLobbyAImpl; | 
|---|
| 35 | typedef struct IDirectPlayLobbyImpl IDirectPlayLobbyWImpl; | 
|---|
| 36 | typedef struct IDirectPlayLobby2Impl IDirectPlayLobby2Impl; | 
|---|
| 37 | typedef struct IDirectPlayLobby2Impl IDirectPlayLobby2AImpl; | 
|---|
| 38 | typedef struct IDirectPlay2Impl IDirectPlay2Impl; | 
|---|
| 39 | typedef struct IDirectPlay2Impl IDirectPlay2AImpl; | 
|---|
| 40 | typedef struct IDirectPlay3Impl IDirectPlay3Impl; | 
|---|
| 41 | typedef struct IDirectPlay3Impl IDirectPlay3AImpl; | 
|---|
| 42 |  | 
|---|
| 43 | /***************************************************************************** | 
|---|
| 44 | * IDirectPlayLobby implementation structure | 
|---|
| 45 | */ | 
|---|
| 46 | struct IDirectPlayLobbyImpl | 
|---|
| 47 | { | 
|---|
| 48 | /* IUnknown fields */ | 
|---|
| 49 | ICOM_VTABLE(IDirectPlayLobby)* lpvtbl; | 
|---|
| 50 | DWORD                          ref; | 
|---|
| 51 | /* IDirectPlayLobbyImpl fields */ | 
|---|
| 52 | DWORD                    dwConnFlags; | 
|---|
| 53 | DPSESSIONDESC2           sessionDesc; | 
|---|
| 54 | DPNAME                   playerName; | 
|---|
| 55 | GUID                     guidSP; | 
|---|
| 56 | LPVOID                   lpAddress; | 
|---|
| 57 | DWORD                    dwAddressSize; | 
|---|
| 58 | }; | 
|---|
| 59 |  | 
|---|
| 60 | /***************************************************************************** | 
|---|
| 61 | * IDirectPlayLobby2 implementation structure | 
|---|
| 62 | */ | 
|---|
| 63 | struct IDirectPlayLobby2Impl | 
|---|
| 64 | { | 
|---|
| 65 | /* IUnknown fields */ | 
|---|
| 66 | ICOM_VTABLE(IDirectPlayLobby2)* lpvtbl; | 
|---|
| 67 | DWORD                           ref; | 
|---|
| 68 | /* IDirectPlayLobby2Impl fields */ | 
|---|
| 69 | DWORD                     dwConnFlags; | 
|---|
| 70 | DPSESSIONDESC2            lpSessionDesc; | 
|---|
| 71 | DPNAME                    lpPlayerName; | 
|---|
| 72 | GUID                      guidSP; | 
|---|
| 73 | LPVOID                    lpAddress; | 
|---|
| 74 | DWORD                     dwAddressSize; | 
|---|
| 75 | }; | 
|---|
| 76 |  | 
|---|
| 77 | /***************************************************************************** | 
|---|
| 78 | * IDirectPlay2 implementation structure | 
|---|
| 79 | */ | 
|---|
| 80 | struct IDirectPlay2Impl | 
|---|
| 81 | { | 
|---|
| 82 | /* IUnknown fields */ | 
|---|
| 83 | ICOM_VTABLE(IDirectPlay2)* lpvtbl; | 
|---|
| 84 | DWORD                      ref; | 
|---|
| 85 | /* IDirectPlay2Impl fields */ | 
|---|
| 86 | /* none */ | 
|---|
| 87 | }; | 
|---|
| 88 |  | 
|---|
| 89 | /***************************************************************************** | 
|---|
| 90 | * IDirectPlay3 implementation structure | 
|---|
| 91 | */ | 
|---|
| 92 | struct IDirectPlay3Impl | 
|---|
| 93 | { | 
|---|
| 94 | /* IUnknown fields */ | 
|---|
| 95 | ICOM_VTABLE(IDirectPlay3)* lpvtbl; | 
|---|
| 96 | DWORD                      ref; | 
|---|
| 97 | /* IDirectPlay3Impl fields */ | 
|---|
| 98 | /* none */ | 
|---|
| 99 | }; | 
|---|
| 100 |  | 
|---|
| 101 | /* Forward declarations of virtual tables */ | 
|---|
| 102 | extern ICOM_VTABLE(IDirectPlayLobby) directPlayLobbyAVT; | 
|---|
| 103 | extern ICOM_VTABLE(IDirectPlayLobby) directPlayLobbyWVT; | 
|---|
| 104 | extern ICOM_VTABLE(IDirectPlayLobby2) directPlayLobby2AVT; | 
|---|
| 105 | extern ICOM_VTABLE(IDirectPlayLobby2) directPlayLobby2WVT; | 
|---|
| 106 | extern ICOM_VTABLE(IDirectPlay2) directPlay2WVT; | 
|---|
| 107 | extern ICOM_VTABLE(IDirectPlay2) directPlay2AVT; | 
|---|
| 108 | extern ICOM_VTABLE(IDirectPlay3) directPlay3WVT; | 
|---|
| 109 | extern ICOM_VTABLE(IDirectPlay3) directPlay3AVT; | 
|---|
| 110 |  | 
|---|
| 111 |  | 
|---|
| 112 |  | 
|---|
| 113 |  | 
|---|
| 114 | /* Routine called when starting up the server thread */ | 
|---|
| 115 | DWORD DPLobby_Spawn_Server( LPVOID startData ) | 
|---|
| 116 | { | 
|---|
| 117 | DPSESSIONDESC2* lpSession = (DPSESSIONDESC2*) startData; | 
|---|
| 118 | DWORD sessionDwFlags = lpSession->dwFlags; | 
|---|
| 119 |  | 
|---|
| 120 | TRACE("spawing thread for lpConn=%p dwFlags=%08lx\n", lpSession, sessionDwFlags ); | 
|---|
| 121 | FIXME("thread needs something to do\n" ); | 
|---|
| 122 |  | 
|---|
| 123 | /*for(;;)*/ | 
|---|
| 124 | { | 
|---|
| 125 |  | 
|---|
| 126 | /* Check out the connection flags to determine what to do. Ensure we have | 
|---|
| 127 | no leftover bits in this structure */ | 
|---|
| 128 | if( sessionDwFlags & DPSESSION_CLIENTSERVER ) | 
|---|
| 129 | { | 
|---|
| 130 | /* This indicates that the application which is requesting the creation | 
|---|
| 131 | * of this session is going to be the server (application/player) | 
|---|
| 132 | */ | 
|---|
| 133 | if( sessionDwFlags & DPSESSION_SECURESERVER ) | 
|---|
| 134 | { | 
|---|
| 135 | sessionDwFlags &= ~DPSESSION_SECURESERVER; | 
|---|
| 136 | } | 
|---|
| 137 | sessionDwFlags &= ~DPSESSION_CLIENTSERVER; | 
|---|
| 138 | } | 
|---|
| 139 |  | 
|---|
| 140 | if( sessionDwFlags & DPSESSION_JOINDISABLED ) | 
|---|
| 141 | { | 
|---|
| 142 | sessionDwFlags &= ~DPSESSION_JOINDISABLED; | 
|---|
| 143 | } | 
|---|
| 144 |  | 
|---|
| 145 | if( sessionDwFlags & DPSESSION_KEEPALIVE ) | 
|---|
| 146 | { | 
|---|
| 147 | sessionDwFlags &= ~DPSESSION_KEEPALIVE; | 
|---|
| 148 | } | 
|---|
| 149 |  | 
|---|
| 150 | if( sessionDwFlags & DPSESSION_MIGRATEHOST ) | 
|---|
| 151 | { | 
|---|
| 152 | sessionDwFlags &= ~DPSESSION_MIGRATEHOST; | 
|---|
| 153 | } | 
|---|
| 154 |  | 
|---|
| 155 | if( sessionDwFlags & DPSESSION_MULTICASTSERVER ) | 
|---|
| 156 | { | 
|---|
| 157 | sessionDwFlags &= ~DPSESSION_MULTICASTSERVER; | 
|---|
| 158 | } | 
|---|
| 159 |  | 
|---|
| 160 | if( sessionDwFlags & DPSESSION_NEWPLAYERSDISABLED ) | 
|---|
| 161 | { | 
|---|
| 162 | sessionDwFlags &= ~DPSESSION_NEWPLAYERSDISABLED; | 
|---|
| 163 | } | 
|---|
| 164 |  | 
|---|
| 165 | if( sessionDwFlags & DPSESSION_NODATAMESSAGES ) | 
|---|
| 166 | { | 
|---|
| 167 | sessionDwFlags &= ~DPSESSION_NODATAMESSAGES; | 
|---|
| 168 | } | 
|---|
| 169 |  | 
|---|
| 170 | if( sessionDwFlags & DPSESSION_NOMESSAGEID ) | 
|---|
| 171 | { | 
|---|
| 172 | sessionDwFlags &= ~DPSESSION_NOMESSAGEID; | 
|---|
| 173 | } | 
|---|
| 174 |  | 
|---|
| 175 | if( sessionDwFlags & DPSESSION_PASSWORDREQUIRED ) | 
|---|
| 176 | { | 
|---|
| 177 | sessionDwFlags &= ~DPSESSION_PASSWORDREQUIRED; | 
|---|
| 178 | } | 
|---|
| 179 |  | 
|---|
| 180 | } | 
|---|
| 181 |  | 
|---|
| 182 | ExitThread(0); | 
|---|
| 183 | return 0; | 
|---|
| 184 | } | 
|---|
| 185 |  | 
|---|
| 186 |  | 
|---|
| 187 | /********************************************************* | 
|---|
| 188 | * | 
|---|
| 189 | * Direct Play and Direct Play Lobby Interface Implementation | 
|---|
| 190 | * | 
|---|
| 191 | *********************************************************/ | 
|---|
| 192 |  | 
|---|
| 193 | /* The COM interface for upversioning an interface | 
|---|
| 194 | * We've been given a GUID (riid) and we need to replace the present | 
|---|
| 195 | * interface with that of the requested interface. | 
|---|
| 196 | * | 
|---|
| 197 | * Snip from some Microsoft document: | 
|---|
| 198 | * There are four requirements for implementations of QueryInterface (In these | 
|---|
| 199 | * cases, "must succeed" means "must succeed barring catastrophic failure."): | 
|---|
| 200 | * | 
|---|
| 201 | *  * The set of interfaces accessible on an object through | 
|---|
| 202 | *    IUnknown::QueryInterface must be static, not dynamic. This means that | 
|---|
| 203 | *    if a call to QueryInterface for a pointer to a specified interface | 
|---|
| 204 | *    succeeds the first time, it must succeed again, and if it fails the | 
|---|
| 205 | *    first time, it must fail on all subsequent queries. | 
|---|
| 206 | *  * It must be symmetric ~W if a client holds a pointer to an interface on | 
|---|
| 207 | *    an object, and queries for that interface, the call must succeed. | 
|---|
| 208 | *  * It must be reflexive ~W if a client holding a pointer to one interface | 
|---|
| 209 | *    queries successfully for another, a query through the obtained pointer | 
|---|
| 210 | *    for the first interface must succeed. | 
|---|
| 211 | *  * It must be transitive ~W if a client holding a pointer to one interface | 
|---|
| 212 | *    queries successfully for a second, and through that pointer queries | 
|---|
| 213 | *    successfully for a third interface, a query for the first interface | 
|---|
| 214 | *    through the pointer for the third interface must succeed. | 
|---|
| 215 | * | 
|---|
| 216 | *  As you can see, this interface doesn't qualify but will most likely | 
|---|
| 217 | *  be good enough for the time being. | 
|---|
| 218 | */ | 
|---|
| 219 |  | 
|---|
| 220 | /* Helper function for DirectPlayLobby  QueryInterface */ | 
|---|
| 221 | static HRESULT directPlayLobby_QueryInterface | 
|---|
| 222 | ( REFIID riid, LPVOID* ppvObj ) | 
|---|
| 223 | { | 
|---|
| 224 |  | 
|---|
| 225 | if( IsEqualGUID( &IID_IDirectPlayLobby, riid ) ) | 
|---|
| 226 | { | 
|---|
| 227 | IDirectPlayLobbyImpl* lpDpL = (IDirectPlayLobbyImpl*)(*ppvObj); | 
|---|
| 228 |  | 
|---|
| 229 | lpDpL = (IDirectPlayLobbyImpl*)HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, | 
|---|
| 230 | sizeof( *lpDpL ) ); | 
|---|
| 231 |  | 
|---|
| 232 | if( !lpDpL ) | 
|---|
| 233 | { | 
|---|
| 234 | return E_NOINTERFACE; | 
|---|
| 235 | } | 
|---|
| 236 |  | 
|---|
| 237 | lpDpL->lpvtbl = &directPlayLobbyWVT; | 
|---|
| 238 | lpDpL->ref    = 1; | 
|---|
| 239 |  | 
|---|
| 240 | return S_OK; | 
|---|
| 241 | } | 
|---|
| 242 | else if( IsEqualGUID( &IID_IDirectPlayLobbyA, riid ) ) | 
|---|
| 243 | { | 
|---|
| 244 | IDirectPlayLobbyAImpl* lpDpL = (IDirectPlayLobbyAImpl*)(*ppvObj); | 
|---|
| 245 |  | 
|---|
| 246 | lpDpL = (IDirectPlayLobbyAImpl*)HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, | 
|---|
| 247 | sizeof( *lpDpL ) ); | 
|---|
| 248 |  | 
|---|
| 249 | if( !lpDpL ) | 
|---|
| 250 | { | 
|---|
| 251 | return E_NOINTERFACE; | 
|---|
| 252 | } | 
|---|
| 253 |  | 
|---|
| 254 | lpDpL->lpvtbl = &directPlayLobbyAVT; | 
|---|
| 255 | lpDpL->ref    = 1; | 
|---|
| 256 |  | 
|---|
| 257 | return S_OK; | 
|---|
| 258 | } | 
|---|
| 259 | else if( IsEqualGUID( &IID_IDirectPlayLobby2, riid ) ) | 
|---|
| 260 | { | 
|---|
| 261 | IDirectPlayLobby2Impl* lpDpL = (IDirectPlayLobby2Impl*)(*ppvObj); | 
|---|
| 262 |  | 
|---|
| 263 | lpDpL = (IDirectPlayLobby2Impl*)HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, | 
|---|
| 264 | sizeof( *lpDpL ) ); | 
|---|
| 265 |  | 
|---|
| 266 | if( !lpDpL ) | 
|---|
| 267 | { | 
|---|
| 268 | return E_NOINTERFACE; | 
|---|
| 269 | } | 
|---|
| 270 |  | 
|---|
| 271 | lpDpL->lpvtbl = &directPlayLobby2WVT; | 
|---|
| 272 | lpDpL->ref    = 1; | 
|---|
| 273 |  | 
|---|
| 274 | return S_OK; | 
|---|
| 275 | } | 
|---|
| 276 | else if( IsEqualGUID( &IID_IDirectPlayLobby2A, riid ) ) | 
|---|
| 277 | { | 
|---|
| 278 | IDirectPlayLobby2AImpl* lpDpL = (IDirectPlayLobby2AImpl*)(*ppvObj); | 
|---|
| 279 |  | 
|---|
| 280 | lpDpL = (IDirectPlayLobby2AImpl*)HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, | 
|---|
| 281 | sizeof( *lpDpL ) ); | 
|---|
| 282 |  | 
|---|
| 283 | if( !lpDpL ) | 
|---|
| 284 | { | 
|---|
| 285 | return E_NOINTERFACE; | 
|---|
| 286 | } | 
|---|
| 287 |  | 
|---|
| 288 | lpDpL->lpvtbl = &directPlayLobby2AVT; | 
|---|
| 289 | lpDpL->ref    = 1; | 
|---|
| 290 |  | 
|---|
| 291 | return S_OK; | 
|---|
| 292 | } | 
|---|
| 293 |  | 
|---|
| 294 | /* Unknown interface */ | 
|---|
| 295 | *ppvObj = NULL; | 
|---|
| 296 | return E_NOINTERFACE; | 
|---|
| 297 | } | 
|---|
| 298 | static HRESULT WINAPI IDirectPlayLobbyAImpl_QueryInterface | 
|---|
| 299 | ( LPDIRECTPLAYLOBBYA iface, | 
|---|
| 300 | REFIID riid, | 
|---|
| 301 | LPVOID* ppvObj ) | 
|---|
| 302 | { | 
|---|
| 303 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 304 | TRACE("(%p)->(%p,%p)\n", This, riid, ppvObj ); | 
|---|
| 305 |  | 
|---|
| 306 | if( IsEqualGUID( &IID_IUnknown, riid )  || | 
|---|
| 307 | IsEqualGUID( &IID_IDirectPlayLobbyA, riid ) | 
|---|
| 308 | ) | 
|---|
| 309 | { | 
|---|
| 310 | IDirectPlayLobby_AddRef( iface ); | 
|---|
| 311 | *ppvObj = This; | 
|---|
| 312 | return S_OK; | 
|---|
| 313 | } | 
|---|
| 314 |  | 
|---|
| 315 | return directPlayLobby_QueryInterface( riid, ppvObj ); | 
|---|
| 316 |  | 
|---|
| 317 | } | 
|---|
| 318 |  | 
|---|
| 319 | static HRESULT WINAPI IDirectPlayLobbyW_QueryInterface | 
|---|
| 320 | ( LPDIRECTPLAYLOBBY iface, | 
|---|
| 321 | REFIID riid, | 
|---|
| 322 | LPVOID* ppvObj ) | 
|---|
| 323 | { | 
|---|
| 324 | ICOM_THIS(IDirectPlayLobbyImpl,iface); | 
|---|
| 325 | TRACE("(%p)->(%p,%p)\n", This, riid, ppvObj ); | 
|---|
| 326 |  | 
|---|
| 327 | if( IsEqualGUID( &IID_IUnknown, riid )  || | 
|---|
| 328 | IsEqualGUID( &IID_IDirectPlayLobby, riid ) | 
|---|
| 329 | ) | 
|---|
| 330 | { | 
|---|
| 331 | IDirectPlayLobby_AddRef( iface ); | 
|---|
| 332 | *ppvObj = This; | 
|---|
| 333 | return S_OK; | 
|---|
| 334 | } | 
|---|
| 335 |  | 
|---|
| 336 | return directPlayLobby_QueryInterface( riid, ppvObj ); | 
|---|
| 337 | } | 
|---|
| 338 |  | 
|---|
| 339 |  | 
|---|
| 340 | static HRESULT WINAPI IDirectPlayLobby2AImpl_QueryInterface | 
|---|
| 341 | ( LPDIRECTPLAYLOBBY2A iface, | 
|---|
| 342 | REFIID riid, | 
|---|
| 343 | LPVOID* ppvObj ) | 
|---|
| 344 | { | 
|---|
| 345 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 346 | TRACE("(%p)->(%p,%p)\n", This, riid, ppvObj ); | 
|---|
| 347 |  | 
|---|
| 348 | /* Compare riids. We know this object is a direct play lobby 2A object. | 
|---|
| 349 | If we are asking about the same type of interface we're fine. | 
|---|
| 350 | */ | 
|---|
| 351 | if( IsEqualGUID( &IID_IUnknown, riid )  || | 
|---|
| 352 | IsEqualGUID( &IID_IDirectPlayLobby2A, riid ) | 
|---|
| 353 | ) | 
|---|
| 354 | { | 
|---|
| 355 | IDirectPlayLobby2_AddRef( iface ); | 
|---|
| 356 | *ppvObj = This; | 
|---|
| 357 | return S_OK; | 
|---|
| 358 | } | 
|---|
| 359 | return directPlayLobby_QueryInterface( riid, ppvObj ); | 
|---|
| 360 | } | 
|---|
| 361 |  | 
|---|
| 362 | static HRESULT WINAPI IDirectPlayLobby2WImpl_QueryInterface | 
|---|
| 363 | ( LPDIRECTPLAYLOBBY2 iface, | 
|---|
| 364 | REFIID riid, | 
|---|
| 365 | LPVOID* ppvObj ) | 
|---|
| 366 | { | 
|---|
| 367 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 368 |  | 
|---|
| 369 | /* Compare riids. We know this object is a direct play lobby 2 object. | 
|---|
| 370 | If we are asking about the same type of interface we're fine. | 
|---|
| 371 | */ | 
|---|
| 372 | if( IsEqualGUID( &IID_IUnknown, riid ) || | 
|---|
| 373 | IsEqualGUID( &IID_IDirectPlayLobby2, riid ) | 
|---|
| 374 | ) | 
|---|
| 375 | { | 
|---|
| 376 | IDirectPlayLobby2_AddRef( iface ); | 
|---|
| 377 | *ppvObj = This; | 
|---|
| 378 | return S_OK; | 
|---|
| 379 | } | 
|---|
| 380 |  | 
|---|
| 381 | return directPlayLobby_QueryInterface( riid, ppvObj ); | 
|---|
| 382 |  | 
|---|
| 383 | } | 
|---|
| 384 |  | 
|---|
| 385 | /* | 
|---|
| 386 | * Simple procedure. Just increment the reference count to this | 
|---|
| 387 | * structure and return the new reference count. | 
|---|
| 388 | */ | 
|---|
| 389 | static ULONG WINAPI IDirectPlayLobby2AImpl_AddRef | 
|---|
| 390 | ( LPDIRECTPLAYLOBBY2A iface ) | 
|---|
| 391 | { | 
|---|
| 392 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 393 | ++(This->ref); | 
|---|
| 394 | TRACE("ref count now %lu\n", This->ref ); | 
|---|
| 395 | return (This->ref); | 
|---|
| 396 | } | 
|---|
| 397 |  | 
|---|
| 398 | static ULONG WINAPI IDirectPlayLobby2WImpl_AddRef | 
|---|
| 399 | ( LPDIRECTPLAYLOBBY2 iface ) | 
|---|
| 400 | { | 
|---|
| 401 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 402 | return IDirectPlayLobby2AImpl_AddRef( (LPDIRECTPLAYLOBBY2) This ); | 
|---|
| 403 | } | 
|---|
| 404 |  | 
|---|
| 405 | static ULONG WINAPI IDirectPlayLobbyAImpl_AddRef | 
|---|
| 406 | ( LPDIRECTPLAYLOBBYA iface ) | 
|---|
| 407 | { | 
|---|
| 408 | return IDirectPlayLobby2AImpl_AddRef( (LPDIRECTPLAYLOBBY2A)iface ); | 
|---|
| 409 | } | 
|---|
| 410 |  | 
|---|
| 411 |  | 
|---|
| 412 | /* | 
|---|
| 413 | * Simple COM procedure. Decrease the reference count to this object. | 
|---|
| 414 | * If the object no longer has any reference counts, free up the associated | 
|---|
| 415 | * memory. | 
|---|
| 416 | */ | 
|---|
| 417 | static ULONG WINAPI IDirectPlayLobby2AImpl_Release | 
|---|
| 418 | ( LPDIRECTPLAYLOBBY2A iface ) | 
|---|
| 419 | { | 
|---|
| 420 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 421 | TRACE("ref count decremeneted from %lu\n", This->ref ); | 
|---|
| 422 |  | 
|---|
| 423 | This->ref--; | 
|---|
| 424 |  | 
|---|
| 425 | /* Deallocate if this is the last reference to the object */ | 
|---|
| 426 | if( !(This->ref) ) | 
|---|
| 427 | { | 
|---|
| 428 | FIXME("memory leak\n" ); | 
|---|
| 429 | /* Implement memory deallocation */ | 
|---|
| 430 |  | 
|---|
| 431 | HeapFree( GetProcessHeap(), 0, This ); | 
|---|
| 432 |  | 
|---|
| 433 | return 0; | 
|---|
| 434 | } | 
|---|
| 435 |  | 
|---|
| 436 | return This->ref; | 
|---|
| 437 | } | 
|---|
| 438 |  | 
|---|
| 439 | static ULONG WINAPI IDirectPlayLobby2WImpl_Release | 
|---|
| 440 | ( LPDIRECTPLAYLOBBY2 iface ) | 
|---|
| 441 | { | 
|---|
| 442 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 443 | return IDirectPlayLobby2AImpl_Release( (LPDIRECTPLAYLOBBY2A) This ); | 
|---|
| 444 | } | 
|---|
| 445 |  | 
|---|
| 446 | static ULONG WINAPI IDirectPlayLobbyAImpl_Release | 
|---|
| 447 | ( LPDIRECTPLAYLOBBYA iface ) | 
|---|
| 448 | { | 
|---|
| 449 | return IDirectPlayLobby2AImpl_Release( (LPDIRECTPLAYLOBBY2A)iface ); | 
|---|
| 450 | } | 
|---|
| 451 |  | 
|---|
| 452 |  | 
|---|
| 453 | /******************************************************************** | 
|---|
| 454 | * | 
|---|
| 455 | * Connects an application to the session specified by the DPLCONNECTION | 
|---|
| 456 | * structure currently stored with the DirectPlayLobby object. | 
|---|
| 457 | * | 
|---|
| 458 | * Returns a IDirectPlay interface. | 
|---|
| 459 | * | 
|---|
| 460 | */ | 
|---|
| 461 | static HRESULT WINAPI IDirectPlayLobby2AImpl_Connect | 
|---|
| 462 | ( LPDIRECTPLAYLOBBY2A iface, | 
|---|
| 463 | DWORD dwFlags, | 
|---|
| 464 | LPDIRECTPLAY2* lplpDP, | 
|---|
| 465 | IUnknown* pUnk) | 
|---|
| 466 | { | 
|---|
| 467 | FIXME(": dwFlags=%08lx %p %p stub\n", dwFlags, lplpDP, pUnk ); | 
|---|
| 468 | return DPERR_OUTOFMEMORY; | 
|---|
| 469 | } | 
|---|
| 470 |  | 
|---|
| 471 |  | 
|---|
| 472 | static HRESULT WINAPI IDirectPlayLobby2WImpl_Connect | 
|---|
| 473 | ( LPDIRECTPLAYLOBBY2 iface, | 
|---|
| 474 | DWORD dwFlags, | 
|---|
| 475 | LPDIRECTPLAY2* lplpDP, | 
|---|
| 476 | IUnknown* pUnk) | 
|---|
| 477 | { | 
|---|
| 478 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 479 | LPDIRECTPLAY2* directPlay2W; | 
|---|
| 480 | HRESULT        createRC; | 
|---|
| 481 |  | 
|---|
| 482 | FIXME("(%p)->(%08lx,%p,%p): stub\n", This, dwFlags, lplpDP, pUnk ); | 
|---|
| 483 |  | 
|---|
| 484 | if( dwFlags ) | 
|---|
| 485 | { | 
|---|
| 486 | return DPERR_INVALIDPARAMS; | 
|---|
| 487 | } | 
|---|
| 488 |  | 
|---|
| 489 | if( ( createRC = DirectPlayCreate( (LPGUID)&IID_IDirectPlayLobby2, lplpDP, pUnk ) ) != DP_OK ) | 
|---|
| 490 | { | 
|---|
| 491 | ERR("error creating Direct Play 2W interface. Return Code = %ld.\n", createRC ); | 
|---|
| 492 | return createRC; | 
|---|
| 493 | } | 
|---|
| 494 |  | 
|---|
| 495 | /* This should invoke IDirectPlay3::InitializeConnection IDirectPlay3::Open */ | 
|---|
| 496 | directPlay2W = lplpDP; | 
|---|
| 497 |  | 
|---|
| 498 |  | 
|---|
| 499 |  | 
|---|
| 500 |  | 
|---|
| 501 | #if 0 | 
|---|
| 502 | /* All the stuff below this is WRONG! */ | 
|---|
| 503 | if( This->lpSession->dwFlags == DPLCONNECTION_CREATESESSION ) | 
|---|
| 504 | { | 
|---|
| 505 | DWORD threadIdSink; | 
|---|
| 506 |  | 
|---|
| 507 | /* Spawn a thread to deal with all of this and to handle the incomming requests */ | 
|---|
| 508 | threadIdSink = CreateThread( NULL, 0, &DPLobby_Spawn_Server, | 
|---|
| 509 | (LPVOID)This->lpSession->lpConn->lpSessionDesc, 0, &threadIdSink ); | 
|---|
| 510 |  | 
|---|
| 511 | } | 
|---|
| 512 | else if ( This->lpSession->dwFlags == DPLCONNECTION_JOINSESSION ) | 
|---|
| 513 | { | 
|---|
| 514 | /* Let's search for a matching session */ | 
|---|
| 515 | FIXME("joining session not yet supported.\n"); | 
|---|
| 516 | return DPERR_OUTOFMEMORY; | 
|---|
| 517 | } | 
|---|
| 518 | else /* Unknown type of connection request */ | 
|---|
| 519 | { | 
|---|
| 520 | ERR(": Unknown connection request lpConn->dwFlags=%08lx\n", | 
|---|
| 521 | lpConn->dwFlags ); | 
|---|
| 522 |  | 
|---|
| 523 | return DPERR_OUTOFMEMORY; | 
|---|
| 524 | } | 
|---|
| 525 |  | 
|---|
| 526 | /* This does the work of the following methods... | 
|---|
| 527 | IDirectPlay3::InitializeConnection, | 
|---|
| 528 | IDirectPlay3::EnumSessions, | 
|---|
| 529 | IDirectPlay3::Open | 
|---|
| 530 | */ | 
|---|
| 531 |  | 
|---|
| 532 |  | 
|---|
| 533 | #endif | 
|---|
| 534 |  | 
|---|
| 535 | return DP_OK; | 
|---|
| 536 |  | 
|---|
| 537 | } | 
|---|
| 538 |  | 
|---|
| 539 | static HRESULT WINAPI IDirectPlayLobbyAImpl_Connect | 
|---|
| 540 | ( LPDIRECTPLAYLOBBYA iface, | 
|---|
| 541 | DWORD dwFlags, | 
|---|
| 542 | LPDIRECTPLAY2* lplpDP, | 
|---|
| 543 | IUnknown *pUnk) | 
|---|
| 544 | { | 
|---|
| 545 | return IDirectPlayLobby2AImpl_Connect( (LPDIRECTPLAYLOBBY2A)iface, | 
|---|
| 546 | dwFlags, | 
|---|
| 547 | (LPDIRECTPLAY2*)lplpDP, | 
|---|
| 548 | pUnk); | 
|---|
| 549 | } | 
|---|
| 550 |  | 
|---|
| 551 |  | 
|---|
| 552 | /******************************************************************** | 
|---|
| 553 | * | 
|---|
| 554 | * Creates a DirectPlay Address, given a service provider-specific network | 
|---|
| 555 | * address. | 
|---|
| 556 | * Returns an address contains the globally unique identifier | 
|---|
| 557 | * (GUID) of the service provider and data that the service provider can | 
|---|
| 558 | * interpret as a network address. | 
|---|
| 559 | * | 
|---|
| 560 | */ | 
|---|
| 561 | static HRESULT WINAPI IDirectPlayLobby2AImpl_CreateAddress | 
|---|
| 562 | ( LPDIRECTPLAYLOBBY2A iface, | 
|---|
| 563 | REFGUID guidSP, | 
|---|
| 564 | REFGUID guidDataType, | 
|---|
| 565 | LPCVOID lpData, | 
|---|
| 566 | DWORD dwDataSize, | 
|---|
| 567 | LPVOID lpAddress, | 
|---|
| 568 | LPDWORD lpdwAddressSize ) | 
|---|
| 569 | { | 
|---|
| 570 | FIXME(":stub\n"); | 
|---|
| 571 | return DPERR_OUTOFMEMORY; | 
|---|
| 572 | } | 
|---|
| 573 |  | 
|---|
| 574 | static HRESULT WINAPI IDirectPlayLobby2WImpl_CreateAddress | 
|---|
| 575 | ( LPDIRECTPLAYLOBBY2 iface, | 
|---|
| 576 | REFGUID guidSP, | 
|---|
| 577 | REFGUID guidDataType, | 
|---|
| 578 | LPCVOID lpData, | 
|---|
| 579 | DWORD dwDataSize, | 
|---|
| 580 | LPVOID lpAddress, | 
|---|
| 581 | LPDWORD lpdwAddressSize ) | 
|---|
| 582 | { | 
|---|
| 583 | FIXME(":stub\n"); | 
|---|
| 584 | return DPERR_OUTOFMEMORY; | 
|---|
| 585 | } | 
|---|
| 586 |  | 
|---|
| 587 | static HRESULT WINAPI IDirectPlayLobbyAImpl_CreateAddress | 
|---|
| 588 | ( LPDIRECTPLAYLOBBYA iface, | 
|---|
| 589 | REFGUID guidSP, | 
|---|
| 590 | REFGUID guidDataType, | 
|---|
| 591 | LPCVOID lpData, | 
|---|
| 592 | DWORD dwDataSize, | 
|---|
| 593 | LPVOID lpAddress, | 
|---|
| 594 | LPDWORD lpdwAddressSize ) | 
|---|
| 595 | { | 
|---|
| 596 | return IDirectPlayLobby2AImpl_CreateAddress( (LPDIRECTPLAYLOBBY2A)iface, | 
|---|
| 597 | guidSP, | 
|---|
| 598 | guidDataType, | 
|---|
| 599 | lpData, | 
|---|
| 600 | dwDataSize, | 
|---|
| 601 | lpAddress, | 
|---|
| 602 | lpdwAddressSize); | 
|---|
| 603 | } | 
|---|
| 604 |  | 
|---|
| 605 |  | 
|---|
| 606 | /******************************************************************** | 
|---|
| 607 | * | 
|---|
| 608 | * Parses out chunks from the DirectPlay Address buffer by calling the | 
|---|
| 609 | * given callback function, with lpContext, for each of the chunks. | 
|---|
| 610 | * | 
|---|
| 611 | */ | 
|---|
| 612 | static HRESULT WINAPI IDirectPlayLobby2AImpl_EnumAddress | 
|---|
| 613 | ( LPDIRECTPLAYLOBBY2A iface, | 
|---|
| 614 | LPDPENUMADDRESSCALLBACK lpEnumAddressCallback, | 
|---|
| 615 | LPCVOID lpAddress, | 
|---|
| 616 | DWORD dwAddressSize, | 
|---|
| 617 | LPVOID lpContext ) | 
|---|
| 618 | { | 
|---|
| 619 | FIXME(":stub\n"); | 
|---|
| 620 | return DPERR_OUTOFMEMORY; | 
|---|
| 621 | } | 
|---|
| 622 |  | 
|---|
| 623 | static HRESULT WINAPI IDirectPlayLobby2WImpl_EnumAddress | 
|---|
| 624 | ( LPDIRECTPLAYLOBBY2 iface, | 
|---|
| 625 | LPDPENUMADDRESSCALLBACK lpEnumAddressCallback, | 
|---|
| 626 | LPCVOID lpAddress, | 
|---|
| 627 | DWORD dwAddressSize, | 
|---|
| 628 | LPVOID lpContext ) | 
|---|
| 629 | { | 
|---|
| 630 | FIXME(":stub\n"); | 
|---|
| 631 | return DPERR_OUTOFMEMORY; | 
|---|
| 632 | } | 
|---|
| 633 |  | 
|---|
| 634 | static HRESULT WINAPI IDirectPlayLobbyAImpl_EnumAddress | 
|---|
| 635 | ( LPDIRECTPLAYLOBBYA iface, | 
|---|
| 636 | LPDPENUMADDRESSCALLBACK lpEnumAddressCallback, | 
|---|
| 637 | LPCVOID lpAddress, | 
|---|
| 638 | DWORD dwAddressSize, | 
|---|
| 639 | LPVOID lpContext) | 
|---|
| 640 | { | 
|---|
| 641 | return IDirectPlayLobby2AImpl_EnumAddress( (LPDIRECTPLAYLOBBY2A)iface, | 
|---|
| 642 | lpEnumAddressCallback, | 
|---|
| 643 | lpAddress, | 
|---|
| 644 | dwAddressSize, | 
|---|
| 645 | lpContext); | 
|---|
| 646 | } | 
|---|
| 647 |  | 
|---|
| 648 |  | 
|---|
| 649 | /******************************************************************** | 
|---|
| 650 | * | 
|---|
| 651 | * Enumerates all the address types that a given service provider needs to | 
|---|
| 652 | * build the DirectPlay Address. | 
|---|
| 653 | * | 
|---|
| 654 | */ | 
|---|
| 655 | static HRESULT WINAPI IDirectPlayLobbyAImpl_EnumAddressTypes | 
|---|
| 656 | ( LPDIRECTPLAYLOBBYA iface, | 
|---|
| 657 | LPDPLENUMADDRESSTYPESCALLBACK lpEnumAddressTypeCallback, | 
|---|
| 658 | REFGUID guidSP, | 
|---|
| 659 | LPVOID lpContext, | 
|---|
| 660 | DWORD dwFlags ) | 
|---|
| 661 | { | 
|---|
| 662 | FIXME(":stub\n"); | 
|---|
| 663 | return DPERR_OUTOFMEMORY; | 
|---|
| 664 | } | 
|---|
| 665 |  | 
|---|
| 666 | static HRESULT WINAPI IDirectPlayLobby2AImpl_EnumAddressTypes | 
|---|
| 667 | ( LPDIRECTPLAYLOBBY2A iface, | 
|---|
| 668 | LPDPLENUMADDRESSTYPESCALLBACK lpEnumAddressTypeCallback, | 
|---|
| 669 | REFGUID guidSP, | 
|---|
| 670 | LPVOID lpContext, | 
|---|
| 671 | DWORD dwFlags ) | 
|---|
| 672 | { | 
|---|
| 673 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 674 | return IDirectPlayLobbyAImpl_EnumAddressTypes( (LPDIRECTPLAYLOBBYA)This, lpEnumAddressTypeCallback, | 
|---|
| 675 | guidSP, lpContext, dwFlags ); | 
|---|
| 676 | } | 
|---|
| 677 |  | 
|---|
| 678 | static HRESULT WINAPI IDirectPlayLobby2WImpl_EnumAddressTypes | 
|---|
| 679 | ( LPDIRECTPLAYLOBBY2 iface, | 
|---|
| 680 | LPDPLENUMADDRESSTYPESCALLBACK lpEnumAddressTypeCallback, | 
|---|
| 681 | REFGUID guidSP, | 
|---|
| 682 | LPVOID lpContext, | 
|---|
| 683 | DWORD dwFlags ) | 
|---|
| 684 | { | 
|---|
| 685 | FIXME(":stub\n"); | 
|---|
| 686 | return DPERR_OUTOFMEMORY; | 
|---|
| 687 | } | 
|---|
| 688 |  | 
|---|
| 689 | /******************************************************************** | 
|---|
| 690 | * | 
|---|
| 691 | * Enumerates what applications are registered with DirectPlay by | 
|---|
| 692 | * invoking the callback function with lpContext. | 
|---|
| 693 | * | 
|---|
| 694 | */ | 
|---|
| 695 | static HRESULT WINAPI IDirectPlayLobbyW_EnumLocalApplications | 
|---|
| 696 | ( LPDIRECTPLAYLOBBY iface, | 
|---|
| 697 | LPDPLENUMLOCALAPPLICATIONSCALLBACK a, | 
|---|
| 698 | LPVOID lpContext, | 
|---|
| 699 | DWORD dwFlags ) | 
|---|
| 700 | { | 
|---|
| 701 | FIXME(":stub\n"); | 
|---|
| 702 | return DPERR_OUTOFMEMORY; | 
|---|
| 703 | } | 
|---|
| 704 |  | 
|---|
| 705 | static HRESULT WINAPI IDirectPlayLobby2WImpl_EnumLocalApplications | 
|---|
| 706 | ( LPDIRECTPLAYLOBBY2 iface, | 
|---|
| 707 | LPDPLENUMLOCALAPPLICATIONSCALLBACK a, | 
|---|
| 708 | LPVOID lpContext, | 
|---|
| 709 | DWORD dwFlags ) | 
|---|
| 710 | { | 
|---|
| 711 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 712 | return IDirectPlayLobbyW_EnumLocalApplications( (LPDIRECTPLAYLOBBY)This, a, | 
|---|
| 713 | lpContext, dwFlags ); | 
|---|
| 714 | } | 
|---|
| 715 |  | 
|---|
| 716 | static HRESULT WINAPI IDirectPlayLobbyAImpl_EnumLocalApplications | 
|---|
| 717 | ( LPDIRECTPLAYLOBBYA iface, | 
|---|
| 718 | LPDPLENUMLOCALAPPLICATIONSCALLBACK a, | 
|---|
| 719 | LPVOID lpContext, | 
|---|
| 720 | DWORD dwFlags ) | 
|---|
| 721 | { | 
|---|
| 722 | FIXME(":stub\n"); | 
|---|
| 723 | return DPERR_OUTOFMEMORY; | 
|---|
| 724 | } | 
|---|
| 725 |  | 
|---|
| 726 | static HRESULT WINAPI IDirectPlayLobby2AImpl_EnumLocalApplications | 
|---|
| 727 | ( LPDIRECTPLAYLOBBY2A iface, | 
|---|
| 728 | LPDPLENUMLOCALAPPLICATIONSCALLBACK a, | 
|---|
| 729 | LPVOID lpContext, | 
|---|
| 730 | DWORD dwFlags ) | 
|---|
| 731 | { | 
|---|
| 732 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 733 | return IDirectPlayLobbyAImpl_EnumLocalApplications( (LPDIRECTPLAYLOBBYA)This, a, | 
|---|
| 734 | lpContext, dwFlags ); | 
|---|
| 735 | } | 
|---|
| 736 |  | 
|---|
| 737 |  | 
|---|
| 738 | /******************************************************************** | 
|---|
| 739 | * | 
|---|
| 740 | * Retrieves the DPLCONNECTION structure that contains all the information | 
|---|
| 741 | * needed to start and connect an application. This was generated using | 
|---|
| 742 | * either the RunApplication or SetConnectionSettings methods. | 
|---|
| 743 | * | 
|---|
| 744 | * NOTES: If lpData is NULL then just return lpdwDataSize. This allows | 
|---|
| 745 | *        the data structure to be allocated by our caller which can then | 
|---|
| 746 | *        call this procedure/method again with a valid data pointer. | 
|---|
| 747 | */ | 
|---|
| 748 | static HRESULT WINAPI IDirectPlayLobbyAImpl_GetConnectionSettings | 
|---|
| 749 | ( LPDIRECTPLAYLOBBYA iface, | 
|---|
| 750 | DWORD dwAppID, | 
|---|
| 751 | LPVOID lpData, | 
|---|
| 752 | LPDWORD lpdwDataSize ) | 
|---|
| 753 | { | 
|---|
| 754 | ICOM_THIS(IDirectPlayLobbyImpl,iface); | 
|---|
| 755 | LPDPLCONNECTION lpDplConnection; | 
|---|
| 756 |  | 
|---|
| 757 | FIXME(": semi stub (%p)->(0x%08lx,%p,%p)\n", This, dwAppID, lpData, lpdwDataSize ); | 
|---|
| 758 |  | 
|---|
| 759 | /* Application is requesting us to give the required size */ | 
|---|
| 760 | if ( !lpData ) | 
|---|
| 761 | { | 
|---|
| 762 | /* Let's check the size of the buffer that the application has allocated */ | 
|---|
| 763 | if( *lpdwDataSize >= sizeof( DPLCONNECTION ) ) | 
|---|
| 764 | { | 
|---|
| 765 | return DP_OK; | 
|---|
| 766 | } | 
|---|
| 767 | else | 
|---|
| 768 | { | 
|---|
| 769 | *lpdwDataSize = sizeof( DPLCONNECTION ); | 
|---|
| 770 | return DPERR_BUFFERTOOSMALL; | 
|---|
| 771 | } | 
|---|
| 772 | } | 
|---|
| 773 |  | 
|---|
| 774 | /* Fill in the fields - let them just use the ptrs */ | 
|---|
| 775 | lpDplConnection = (LPDPLCONNECTION)lpData; | 
|---|
| 776 |  | 
|---|
| 777 | /* Make sure we were given the right size */ | 
|---|
| 778 | if( lpDplConnection->dwSize < sizeof( DPLCONNECTION ) ) | 
|---|
| 779 | { | 
|---|
| 780 | ERR("bad passed size 0x%08lx.\n", lpDplConnection->dwSize ); | 
|---|
| 781 | return DPERR_INVALIDPARAMS; | 
|---|
| 782 | } | 
|---|
| 783 |  | 
|---|
| 784 | /* Copy everything we've got into here */ | 
|---|
| 785 | /* Need to actually store the stuff here. Check if we've already allocated each field first. */ | 
|---|
| 786 | lpDplConnection->dwFlags = This->dwConnFlags; | 
|---|
| 787 |  | 
|---|
| 788 | /* Copy LPDPSESSIONDESC2 struct */ | 
|---|
| 789 | lpDplConnection->lpSessionDesc = (tagDPSESSIONDESC2*)HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof( This->sessionDesc ) ); | 
|---|
| 790 | memcpy( lpDplConnection->lpSessionDesc, &(This->sessionDesc), sizeof( This->sessionDesc ) ); | 
|---|
| 791 |  | 
|---|
| 792 | if( This->sessionDesc.sess.lpszSessionName ) | 
|---|
| 793 | { | 
|---|
| 794 | lpDplConnection->lpSessionDesc->sess.lpszSessionName = | 
|---|
| 795 | HEAP_strdupW( GetProcessHeap(), HEAP_ZERO_MEMORY, This->sessionDesc.sess.lpszSessionName ); | 
|---|
| 796 | } | 
|---|
| 797 |  | 
|---|
| 798 | if( This->sessionDesc.pass.lpszPassword ) | 
|---|
| 799 | { | 
|---|
| 800 | lpDplConnection->lpSessionDesc->pass.lpszPassword = | 
|---|
| 801 | HEAP_strdupW( GetProcessHeap(), HEAP_ZERO_MEMORY, This->sessionDesc.pass.lpszPassword ); | 
|---|
| 802 | } | 
|---|
| 803 |  | 
|---|
| 804 | /* I don't know what to use the reserved for. We'll set it to 0 just for fun */ | 
|---|
| 805 | This->sessionDesc.dwReserved1 = This->sessionDesc.dwReserved2 = 0; | 
|---|
| 806 |  | 
|---|
| 807 | /* Copy DPNAME struct - seems to be optional - check for existance first */ | 
|---|
| 808 | lpDplConnection->lpPlayerName = (tagDPNAME*)HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof( This->playerName ) ); | 
|---|
| 809 | memcpy( lpDplConnection->lpPlayerName, &(This->playerName), sizeof( This->playerName ) ); | 
|---|
| 810 |  | 
|---|
| 811 | if( This->playerName.psn.lpszShortName ) | 
|---|
| 812 | { | 
|---|
| 813 | lpDplConnection->lpPlayerName->psn.lpszShortName = | 
|---|
| 814 | HEAP_strdupW( GetProcessHeap(), HEAP_ZERO_MEMORY, This->playerName.psn.lpszShortName ); | 
|---|
| 815 | } | 
|---|
| 816 |  | 
|---|
| 817 | if( This->playerName.pln.lpszLongName ) | 
|---|
| 818 | { | 
|---|
| 819 | lpDplConnection->lpPlayerName->pln.lpszLongName = | 
|---|
| 820 | HEAP_strdupW( GetProcessHeap(), HEAP_ZERO_MEMORY, This->playerName.pln.lpszLongName ); | 
|---|
| 821 | } | 
|---|
| 822 |  | 
|---|
| 823 |  | 
|---|
| 824 |  | 
|---|
| 825 | memcpy( &(lpDplConnection->guidSP), &(This->guidSP), sizeof( This->guidSP ) ); | 
|---|
| 826 |  | 
|---|
| 827 | lpDplConnection->lpAddress = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, This->dwAddressSize ); | 
|---|
| 828 | memcpy( lpDplConnection->lpAddress, This->lpAddress, This->dwAddressSize ); | 
|---|
| 829 |  | 
|---|
| 830 | lpDplConnection->dwAddressSize = This->dwAddressSize; | 
|---|
| 831 |  | 
|---|
| 832 | return DP_OK; | 
|---|
| 833 | } | 
|---|
| 834 |  | 
|---|
| 835 | static HRESULT WINAPI IDirectPlayLobby2AImpl_GetConnectionSettings | 
|---|
| 836 | ( LPDIRECTPLAYLOBBY2A iface, | 
|---|
| 837 | DWORD dwAppID, | 
|---|
| 838 | LPVOID lpData, | 
|---|
| 839 | LPDWORD lpdwDataSize ) | 
|---|
| 840 | { | 
|---|
| 841 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 842 | return IDirectPlayLobbyAImpl_GetConnectionSettings( (LPDIRECTPLAYLOBBYA)This, | 
|---|
| 843 | dwAppID, lpData, lpdwDataSize ); | 
|---|
| 844 | } | 
|---|
| 845 |  | 
|---|
| 846 | static HRESULT WINAPI IDirectPlayLobbyWImpl_GetConnectionSettings | 
|---|
| 847 | ( LPDIRECTPLAYLOBBY iface, | 
|---|
| 848 | DWORD dwAppID, | 
|---|
| 849 | LPVOID lpData, | 
|---|
| 850 | LPDWORD lpdwDataSize ) | 
|---|
| 851 | { | 
|---|
| 852 | ICOM_THIS(IDirectPlayLobbyImpl,iface); | 
|---|
| 853 | FIXME(":semi stub %p %08lx %p %p \n", This, dwAppID, lpData, lpdwDataSize ); | 
|---|
| 854 |  | 
|---|
| 855 | /* Application is requesting us to give the required size */ | 
|---|
| 856 | if ( !lpData ) | 
|---|
| 857 | { | 
|---|
| 858 | /* Let's check the size of the buffer that the application has allocated */ | 
|---|
| 859 | if( *lpdwDataSize >= sizeof( DPLCONNECTION ) ) | 
|---|
| 860 | { | 
|---|
| 861 | return DP_OK; | 
|---|
| 862 | } | 
|---|
| 863 | else | 
|---|
| 864 | { | 
|---|
| 865 | *lpdwDataSize = sizeof( DPLCONNECTION ); | 
|---|
| 866 | return DPERR_BUFFERTOOSMALL; | 
|---|
| 867 | } | 
|---|
| 868 | } | 
|---|
| 869 |  | 
|---|
| 870 | /* Fill in the fields - let them just use the ptrs */ | 
|---|
| 871 | FIXME("stub\n" ); | 
|---|
| 872 |  | 
|---|
| 873 | return DP_OK; | 
|---|
| 874 | } | 
|---|
| 875 |  | 
|---|
| 876 | static HRESULT WINAPI IDirectPlayLobby2WImpl_GetConnectionSettings | 
|---|
| 877 | ( LPDIRECTPLAYLOBBY2 iface, | 
|---|
| 878 | DWORD dwAppID, | 
|---|
| 879 | LPVOID lpData, | 
|---|
| 880 | LPDWORD lpdwDataSize ) | 
|---|
| 881 | { | 
|---|
| 882 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 883 | return IDirectPlayLobbyWImpl_GetConnectionSettings( (LPDIRECTPLAYLOBBY)This, | 
|---|
| 884 | dwAppID, lpData, lpdwDataSize ); | 
|---|
| 885 | } | 
|---|
| 886 |  | 
|---|
| 887 | /******************************************************************** | 
|---|
| 888 | * | 
|---|
| 889 | * Retrieves the message sent between a lobby client and a DirectPlay | 
|---|
| 890 | * application. All messages are queued until received. | 
|---|
| 891 | * | 
|---|
| 892 | */ | 
|---|
| 893 | static HRESULT WINAPI IDirectPlayLobbyAImpl_ReceiveLobbyMessage | 
|---|
| 894 | ( LPDIRECTPLAYLOBBYA iface, | 
|---|
| 895 | DWORD dwFlags, | 
|---|
| 896 | DWORD dwAppID, | 
|---|
| 897 | LPDWORD lpdwMessageFlags, | 
|---|
| 898 | LPVOID lpData, | 
|---|
| 899 | LPDWORD lpdwDataSize ) | 
|---|
| 900 | { | 
|---|
| 901 | ICOM_THIS(IDirectPlayLobbyImpl,iface); | 
|---|
| 902 | FIXME(":stub %p %08lx %08lx %p %p %p\n", This, dwFlags, dwAppID, lpdwMessageFlags, lpData, | 
|---|
| 903 | lpdwDataSize ); | 
|---|
| 904 | return DPERR_OUTOFMEMORY; | 
|---|
| 905 | } | 
|---|
| 906 |  | 
|---|
| 907 | static HRESULT WINAPI IDirectPlayLobby2AImpl_ReceiveLobbyMessage | 
|---|
| 908 | ( LPDIRECTPLAYLOBBY2A iface, | 
|---|
| 909 | DWORD dwFlags, | 
|---|
| 910 | DWORD dwAppID, | 
|---|
| 911 | LPDWORD lpdwMessageFlags, | 
|---|
| 912 | LPVOID lpData, | 
|---|
| 913 | LPDWORD lpdwDataSize ) | 
|---|
| 914 | { | 
|---|
| 915 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 916 | return IDirectPlayLobbyAImpl_ReceiveLobbyMessage( (LPDIRECTPLAYLOBBYA)This, dwFlags, dwAppID, | 
|---|
| 917 | lpdwMessageFlags, lpData, lpdwDataSize ); | 
|---|
| 918 | } | 
|---|
| 919 |  | 
|---|
| 920 |  | 
|---|
| 921 | static HRESULT WINAPI IDirectPlayLobbyW_ReceiveLobbyMessage | 
|---|
| 922 | ( LPDIRECTPLAYLOBBY iface, | 
|---|
| 923 | DWORD dwFlags, | 
|---|
| 924 | DWORD dwAppID, | 
|---|
| 925 | LPDWORD lpdwMessageFlags, | 
|---|
| 926 | LPVOID lpData, | 
|---|
| 927 | LPDWORD lpdwDataSize ) | 
|---|
| 928 | { | 
|---|
| 929 | ICOM_THIS(IDirectPlayLobbyImpl,iface); | 
|---|
| 930 | FIXME(":stub %p %08lx %08lx %p %p %p\n", This, dwFlags, dwAppID, lpdwMessageFlags, lpData, | 
|---|
| 931 | lpdwDataSize ); | 
|---|
| 932 | return DPERR_OUTOFMEMORY; | 
|---|
| 933 | } | 
|---|
| 934 |  | 
|---|
| 935 | static HRESULT WINAPI IDirectPlayLobby2WImpl_ReceiveLobbyMessage | 
|---|
| 936 | ( LPDIRECTPLAYLOBBY2 iface, | 
|---|
| 937 | DWORD dwFlags, | 
|---|
| 938 | DWORD dwAppID, | 
|---|
| 939 | LPDWORD lpdwMessageFlags, | 
|---|
| 940 | LPVOID lpData, | 
|---|
| 941 | LPDWORD lpdwDataSize ) | 
|---|
| 942 | { | 
|---|
| 943 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 944 | return IDirectPlayLobbyW_ReceiveLobbyMessage( (LPDIRECTPLAYLOBBY)This, dwFlags, dwAppID, | 
|---|
| 945 | lpdwMessageFlags, lpData, lpdwDataSize ); | 
|---|
| 946 | } | 
|---|
| 947 |  | 
|---|
| 948 | /******************************************************************** | 
|---|
| 949 | * | 
|---|
| 950 | * Starts an application and passes to it all the information to | 
|---|
| 951 | * connect to a session. | 
|---|
| 952 | * | 
|---|
| 953 | */ | 
|---|
| 954 | static HRESULT WINAPI IDirectPlayLobbyAImpl_RunApplication | 
|---|
| 955 | ( LPDIRECTPLAYLOBBYA iface, | 
|---|
| 956 | DWORD dwFlags, | 
|---|
| 957 | LPDWORD lpdwAppID, | 
|---|
| 958 | LPDPLCONNECTION lpConn, | 
|---|
| 959 | HANDLE hReceiveEvent ) | 
|---|
| 960 | { | 
|---|
| 961 | FIXME(":stub\n"); | 
|---|
| 962 | return DPERR_OUTOFMEMORY; | 
|---|
| 963 | } | 
|---|
| 964 |  | 
|---|
| 965 | static HRESULT WINAPI IDirectPlayLobby2AImpl_RunApplication | 
|---|
| 966 | ( LPDIRECTPLAYLOBBY2A iface, | 
|---|
| 967 | DWORD dwFlags, | 
|---|
| 968 | LPDWORD lpdwAppID, | 
|---|
| 969 | LPDPLCONNECTION lpConn, | 
|---|
| 970 | HANDLE hReceiveEvent ) | 
|---|
| 971 | { | 
|---|
| 972 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 973 | return IDirectPlayLobbyAImpl_RunApplication( (LPDIRECTPLAYLOBBYA)This, dwFlags, | 
|---|
| 974 | lpdwAppID, lpConn, hReceiveEvent ); | 
|---|
| 975 | } | 
|---|
| 976 |  | 
|---|
| 977 | static HRESULT WINAPI IDirectPlayLobbyW_RunApplication | 
|---|
| 978 | ( LPDIRECTPLAYLOBBY iface, | 
|---|
| 979 | DWORD dwFlags, | 
|---|
| 980 | LPDWORD lpdwAppID, | 
|---|
| 981 | LPDPLCONNECTION lpConn, | 
|---|
| 982 | HANDLE hReceiveEvent ) | 
|---|
| 983 | { | 
|---|
| 984 | FIXME(":stub\n"); | 
|---|
| 985 | return DPERR_OUTOFMEMORY; | 
|---|
| 986 | } | 
|---|
| 987 |  | 
|---|
| 988 | static HRESULT WINAPI IDirectPlayLobby2WImpl_RunApplication | 
|---|
| 989 | ( LPDIRECTPLAYLOBBY2 iface, | 
|---|
| 990 | DWORD dwFlags, | 
|---|
| 991 | LPDWORD lpdwAppID, | 
|---|
| 992 | LPDPLCONNECTION lpConn, | 
|---|
| 993 | HANDLE hReceiveEvent ) | 
|---|
| 994 | { | 
|---|
| 995 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 996 | return IDirectPlayLobbyW_RunApplication( (LPDIRECTPLAYLOBBY)This, dwFlags, | 
|---|
| 997 | lpdwAppID, lpConn, hReceiveEvent ); | 
|---|
| 998 | } | 
|---|
| 999 |  | 
|---|
| 1000 |  | 
|---|
| 1001 | /******************************************************************** | 
|---|
| 1002 | * | 
|---|
| 1003 | * Sends a message between the application and the lobby client. | 
|---|
| 1004 | * All messages are queued until received. | 
|---|
| 1005 | * | 
|---|
| 1006 | */ | 
|---|
| 1007 | static HRESULT WINAPI IDirectPlayLobbyAImpl_SendLobbyMessage | 
|---|
| 1008 | ( LPDIRECTPLAYLOBBYA iface, | 
|---|
| 1009 | DWORD dwFlags, | 
|---|
| 1010 | DWORD dwAppID, | 
|---|
| 1011 | LPVOID lpData, | 
|---|
| 1012 | DWORD dwDataSize ) | 
|---|
| 1013 | { | 
|---|
| 1014 | FIXME(":stub\n"); | 
|---|
| 1015 | return DPERR_OUTOFMEMORY; | 
|---|
| 1016 | } | 
|---|
| 1017 |  | 
|---|
| 1018 | static HRESULT WINAPI IDirectPlayLobby2AImpl_SendLobbyMessage | 
|---|
| 1019 | ( LPDIRECTPLAYLOBBY2A iface, | 
|---|
| 1020 | DWORD dwFlags, | 
|---|
| 1021 | DWORD dwAppID, | 
|---|
| 1022 | LPVOID lpData, | 
|---|
| 1023 | DWORD dwDataSize ) | 
|---|
| 1024 | { | 
|---|
| 1025 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 1026 | return IDirectPlayLobbyAImpl_SendLobbyMessage( (LPDIRECTPLAYLOBBYA)This, dwFlags, | 
|---|
| 1027 | dwAppID, lpData, dwDataSize ); | 
|---|
| 1028 | } | 
|---|
| 1029 |  | 
|---|
| 1030 |  | 
|---|
| 1031 | static HRESULT WINAPI IDirectPlayLobbyW_SendLobbyMessage | 
|---|
| 1032 | ( LPDIRECTPLAYLOBBY iface, | 
|---|
| 1033 | DWORD dwFlags, | 
|---|
| 1034 | DWORD dwAppID, | 
|---|
| 1035 | LPVOID lpData, | 
|---|
| 1036 | DWORD dwDataSize ) | 
|---|
| 1037 | { | 
|---|
| 1038 | FIXME(":stub\n"); | 
|---|
| 1039 | return DPERR_OUTOFMEMORY; | 
|---|
| 1040 | } | 
|---|
| 1041 |  | 
|---|
| 1042 | static HRESULT WINAPI IDirectPlayLobby2WImpl_SendLobbyMessage | 
|---|
| 1043 | ( LPDIRECTPLAYLOBBY2 iface, | 
|---|
| 1044 | DWORD dwFlags, | 
|---|
| 1045 | DWORD dwAppID, | 
|---|
| 1046 | LPVOID lpData, | 
|---|
| 1047 | DWORD dwDataSize ) | 
|---|
| 1048 | { | 
|---|
| 1049 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 1050 | return IDirectPlayLobbyW_SendLobbyMessage( (LPDIRECTPLAYLOBBY)This, dwFlags, | 
|---|
| 1051 | dwAppID, lpData, dwDataSize ); | 
|---|
| 1052 | } | 
|---|
| 1053 |  | 
|---|
| 1054 | /******************************************************************** | 
|---|
| 1055 | * | 
|---|
| 1056 | * Modifies the DPLCONNECTION structure to contain all information | 
|---|
| 1057 | * needed to start and connect an application. | 
|---|
| 1058 | * | 
|---|
| 1059 | */ | 
|---|
| 1060 | static HRESULT WINAPI IDirectPlayLobbyW_SetConnectionSettings | 
|---|
| 1061 | ( LPDIRECTPLAYLOBBY iface, | 
|---|
| 1062 | DWORD dwFlags, | 
|---|
| 1063 | DWORD dwAppID, | 
|---|
| 1064 | LPDPLCONNECTION lpConn ) | 
|---|
| 1065 | { | 
|---|
| 1066 | ICOM_THIS(IDirectPlayLobbyImpl,iface); | 
|---|
| 1067 | TRACE(": This=%p, dwFlags=%08lx, dwAppId=%08lx, lpConn=%p\n", | 
|---|
| 1068 | This, dwFlags, dwAppID, lpConn ); | 
|---|
| 1069 |  | 
|---|
| 1070 | /* Paramater check */ | 
|---|
| 1071 | if( dwFlags || !This || !lpConn ) | 
|---|
| 1072 | { | 
|---|
| 1073 | ERR("invalid parameters.\n"); | 
|---|
| 1074 | return DPERR_INVALIDPARAMS; | 
|---|
| 1075 | } | 
|---|
| 1076 |  | 
|---|
| 1077 | /* See if there is a connection associated with this request. | 
|---|
| 1078 | * dwAppID == 0 indicates that this request isn't associated with a connection. | 
|---|
| 1079 | */ | 
|---|
| 1080 | if( dwAppID ) | 
|---|
| 1081 | { | 
|---|
| 1082 | FIXME(": Connection dwAppID=%08lx given. Not implemented yet.\n", | 
|---|
| 1083 | dwAppID ); | 
|---|
| 1084 |  | 
|---|
| 1085 | /* Need to add a check for this application Id...*/ | 
|---|
| 1086 | return DPERR_NOTLOBBIED; | 
|---|
| 1087 | } | 
|---|
| 1088 |  | 
|---|
| 1089 | if(  lpConn->dwSize != sizeof(DPLCONNECTION) ) | 
|---|
| 1090 | { | 
|---|
| 1091 | ERR(": old/new DPLCONNECTION type? Size=%08lx vs. expected=%ul bytes\n", | 
|---|
| 1092 | lpConn->dwSize, sizeof( DPLCONNECTION ) ); | 
|---|
| 1093 | return DPERR_INVALIDPARAMS; | 
|---|
| 1094 | } | 
|---|
| 1095 |  | 
|---|
| 1096 | /* Need to investigate the lpConn->lpSessionDesc to figure out | 
|---|
| 1097 | * what type of session we need to join/create. | 
|---|
| 1098 | */ | 
|---|
| 1099 | if(  (!lpConn->lpSessionDesc ) || | 
|---|
| 1100 | ( lpConn->lpSessionDesc->dwSize != sizeof( DPSESSIONDESC2 ) ) | 
|---|
| 1101 | ) | 
|---|
| 1102 | { | 
|---|
| 1103 | ERR("DPSESSIONDESC passed in? Size=%08lx vs. expected=%ul bytes\n", | 
|---|
| 1104 | lpConn->lpSessionDesc->dwSize, sizeof( DPSESSIONDESC2 ) ); | 
|---|
| 1105 | return DPERR_INVALIDPARAMS; | 
|---|
| 1106 | } | 
|---|
| 1107 |  | 
|---|
| 1108 | /* Need to actually store the stuff here. Check if we've already allocated each field first. */ | 
|---|
| 1109 | This->dwConnFlags = lpConn->dwFlags; | 
|---|
| 1110 |  | 
|---|
| 1111 | /* Copy LPDPSESSIONDESC2 struct - this is required */ | 
|---|
| 1112 | memcpy( &(This->sessionDesc), lpConn->lpSessionDesc, sizeof( *(lpConn->lpSessionDesc) ) ); | 
|---|
| 1113 |  | 
|---|
| 1114 | if( lpConn->lpSessionDesc->sess.lpszSessionName ) | 
|---|
| 1115 | This->sessionDesc.sess.lpszSessionName = HEAP_strdupW( GetProcessHeap(), HEAP_ZERO_MEMORY, lpConn->lpSessionDesc->sess.lpszSessionName ); | 
|---|
| 1116 | else | 
|---|
| 1117 | This->sessionDesc.sess.lpszSessionName = NULL; | 
|---|
| 1118 |  | 
|---|
| 1119 | if( lpConn->lpSessionDesc->pass.lpszPassword ) | 
|---|
| 1120 | This->sessionDesc.pass.lpszPassword = HEAP_strdupW( GetProcessHeap(), HEAP_ZERO_MEMORY, lpConn->lpSessionDesc->pass.lpszPassword ); | 
|---|
| 1121 | else | 
|---|
| 1122 | This->sessionDesc.pass.lpszPassword = NULL; | 
|---|
| 1123 |  | 
|---|
| 1124 | /* I don't know what to use the reserved for ... */ | 
|---|
| 1125 | This->sessionDesc.dwReserved1 = This->sessionDesc.dwReserved2 = 0; | 
|---|
| 1126 |  | 
|---|
| 1127 | /* Copy DPNAME struct - seems to be optional - check for existance first */ | 
|---|
| 1128 | if( lpConn->lpPlayerName ) | 
|---|
| 1129 | { | 
|---|
| 1130 | memcpy( &(This->playerName), lpConn->lpPlayerName, sizeof( *lpConn->lpPlayerName ) ); | 
|---|
| 1131 |  | 
|---|
| 1132 | if( lpConn->lpPlayerName->psn.lpszShortName ) | 
|---|
| 1133 | This->playerName.psn.lpszShortName = HEAP_strdupW( GetProcessHeap(), HEAP_ZERO_MEMORY, lpConn->lpPlayerName->psn.lpszShortName ); | 
|---|
| 1134 |  | 
|---|
| 1135 | if( lpConn->lpPlayerName->pln.lpszLongName ) | 
|---|
| 1136 | This->playerName.pln.lpszLongName = HEAP_strdupW( GetProcessHeap(), HEAP_ZERO_MEMORY, lpConn->lpPlayerName->pln.lpszLongName ); | 
|---|
| 1137 |  | 
|---|
| 1138 | } | 
|---|
| 1139 |  | 
|---|
| 1140 | memcpy( &(This->guidSP), &(lpConn->guidSP), sizeof( lpConn->guidSP ) ); | 
|---|
| 1141 |  | 
|---|
| 1142 | This->lpAddress = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, lpConn->dwAddressSize ); | 
|---|
| 1143 | memcpy( This->lpAddress, lpConn->lpAddress, lpConn->dwAddressSize ); | 
|---|
| 1144 |  | 
|---|
| 1145 | This->dwAddressSize = lpConn->dwAddressSize; | 
|---|
| 1146 |  | 
|---|
| 1147 | return DP_OK; | 
|---|
| 1148 | } | 
|---|
| 1149 |  | 
|---|
| 1150 | static HRESULT WINAPI IDirectPlayLobby2WImpl_SetConnectionSettings | 
|---|
| 1151 | ( LPDIRECTPLAYLOBBY2 iface, | 
|---|
| 1152 | DWORD dwFlags, | 
|---|
| 1153 | DWORD dwAppID, | 
|---|
| 1154 | LPDPLCONNECTION lpConn ) | 
|---|
| 1155 | { | 
|---|
| 1156 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 1157 | return IDirectPlayLobbyW_SetConnectionSettings( (LPDIRECTPLAYLOBBY)This, | 
|---|
| 1158 | dwFlags, dwAppID, lpConn ); | 
|---|
| 1159 | } | 
|---|
| 1160 |  | 
|---|
| 1161 | static HRESULT WINAPI IDirectPlayLobbyAImpl_SetConnectionSettings | 
|---|
| 1162 | ( LPDIRECTPLAYLOBBYA iface, | 
|---|
| 1163 | DWORD dwFlags, | 
|---|
| 1164 | DWORD dwAppID, | 
|---|
| 1165 | LPDPLCONNECTION lpConn ) | 
|---|
| 1166 | { | 
|---|
| 1167 | ICOM_THIS(IDirectPlayLobbyImpl,iface); | 
|---|
| 1168 | FIXME(": This=%p, dwFlags=%08lx, dwAppId=%08lx, lpConn=%p: stub\n", | 
|---|
| 1169 | This, dwFlags, dwAppID, lpConn ); | 
|---|
| 1170 | return DPERR_OUTOFMEMORY; | 
|---|
| 1171 | } | 
|---|
| 1172 |  | 
|---|
| 1173 | static HRESULT WINAPI IDirectPlayLobby2AImpl_SetConnectionSettings | 
|---|
| 1174 | ( LPDIRECTPLAYLOBBY2A iface, | 
|---|
| 1175 | DWORD dwFlags, | 
|---|
| 1176 | DWORD dwAppID, | 
|---|
| 1177 | LPDPLCONNECTION lpConn ) | 
|---|
| 1178 | { | 
|---|
| 1179 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 1180 | return IDirectPlayLobbyAImpl_SetConnectionSettings( (LPDIRECTPLAYLOBBYA)This, | 
|---|
| 1181 | dwFlags, dwAppID, lpConn ); | 
|---|
| 1182 | } | 
|---|
| 1183 |  | 
|---|
| 1184 | /******************************************************************** | 
|---|
| 1185 | * | 
|---|
| 1186 | * Registers an event that will be set when a lobby message is received. | 
|---|
| 1187 | * | 
|---|
| 1188 | */ | 
|---|
| 1189 | static HRESULT WINAPI IDirectPlayLobbyAImpl_SetLobbyMessageEvent | 
|---|
| 1190 | ( LPDIRECTPLAYLOBBYA iface, | 
|---|
| 1191 | DWORD dwFlags, | 
|---|
| 1192 | DWORD dwAppID, | 
|---|
| 1193 | HANDLE hReceiveEvent ) | 
|---|
| 1194 | { | 
|---|
| 1195 | FIXME(":stub\n"); | 
|---|
| 1196 | return DPERR_OUTOFMEMORY; | 
|---|
| 1197 | } | 
|---|
| 1198 |  | 
|---|
| 1199 | static HRESULT WINAPI IDirectPlayLobby2AImpl_SetLobbyMessageEvent | 
|---|
| 1200 | ( LPDIRECTPLAYLOBBY2A iface, | 
|---|
| 1201 | DWORD dwFlags, | 
|---|
| 1202 | DWORD dwAppID, | 
|---|
| 1203 | HANDLE hReceiveEvent ) | 
|---|
| 1204 | { | 
|---|
| 1205 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 1206 | return IDirectPlayLobbyAImpl_SetLobbyMessageEvent( (LPDIRECTPLAYLOBBYA)This, dwFlags, | 
|---|
| 1207 | dwAppID, hReceiveEvent ); | 
|---|
| 1208 | } | 
|---|
| 1209 |  | 
|---|
| 1210 | static HRESULT WINAPI IDirectPlayLobbyW_SetLobbyMessageEvent | 
|---|
| 1211 | ( LPDIRECTPLAYLOBBY iface, | 
|---|
| 1212 | DWORD dwFlags, | 
|---|
| 1213 | DWORD dwAppID, | 
|---|
| 1214 | HANDLE hReceiveEvent ) | 
|---|
| 1215 | { | 
|---|
| 1216 | FIXME(":stub\n"); | 
|---|
| 1217 | return DPERR_OUTOFMEMORY; | 
|---|
| 1218 | } | 
|---|
| 1219 |  | 
|---|
| 1220 | static HRESULT WINAPI IDirectPlayLobby2WImpl_SetLobbyMessageEvent | 
|---|
| 1221 | ( LPDIRECTPLAYLOBBY2 iface, | 
|---|
| 1222 | DWORD dwFlags, | 
|---|
| 1223 | DWORD dwAppID, | 
|---|
| 1224 | HANDLE hReceiveEvent ) | 
|---|
| 1225 | { | 
|---|
| 1226 | ICOM_THIS(IDirectPlayLobby2Impl,iface); | 
|---|
| 1227 | return IDirectPlayLobbyW_SetLobbyMessageEvent( (LPDIRECTPLAYLOBBY)This, dwFlags, | 
|---|
| 1228 | dwAppID, hReceiveEvent ); | 
|---|
| 1229 | } | 
|---|
| 1230 |  | 
|---|
| 1231 |  | 
|---|
| 1232 | /******************************************************************** | 
|---|
| 1233 | * | 
|---|
| 1234 | * Registers an event that will be set when a lobby message is received. | 
|---|
| 1235 | * | 
|---|
| 1236 | */ | 
|---|
| 1237 | static HRESULT WINAPI IDirectPlayLobby2WImpl_CreateCompoundAddress | 
|---|
| 1238 | ( LPDIRECTPLAYLOBBY2 iface, | 
|---|
| 1239 | LPCDPCOMPOUNDADDRESSELEMENT lpElements, | 
|---|
| 1240 | DWORD dwElementCount, | 
|---|
| 1241 | LPVOID lpAddress, | 
|---|
| 1242 | LPDWORD lpdwAddressSize ) | 
|---|
| 1243 | { | 
|---|
| 1244 | FIXME(":stub\n"); | 
|---|
| 1245 | return DPERR_OUTOFMEMORY; | 
|---|
| 1246 | } | 
|---|
| 1247 |  | 
|---|
| 1248 | static HRESULT WINAPI IDirectPlayLobby2AImpl_CreateCompoundAddress | 
|---|
| 1249 | ( LPDIRECTPLAYLOBBY2A iface, | 
|---|
| 1250 | LPCDPCOMPOUNDADDRESSELEMENT lpElements, | 
|---|
| 1251 | DWORD dwElementCount, | 
|---|
| 1252 | LPVOID lpAddress, | 
|---|
| 1253 | LPDWORD lpdwAddressSize ) | 
|---|
| 1254 | { | 
|---|
| 1255 | FIXME(":stub\n"); | 
|---|
| 1256 | return DPERR_OUTOFMEMORY; | 
|---|
| 1257 | } | 
|---|
| 1258 |  | 
|---|
| 1259 |  | 
|---|
| 1260 | /* Direct Play Lobby 1 (ascii) Virtual Table for methods */ | 
|---|
| 1261 | /* All lobby 1 methods are exactly the same except QueryInterface */ | 
|---|
| 1262 |  | 
|---|
| 1263 |  | 
|---|
| 1264 | struct ICOM_VTABLE(IDirectPlayLobby) directPlayLobbyAVT = | 
|---|
| 1265 | { | 
|---|
| 1266 | ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE | 
|---|
| 1267 | IDirectPlayLobbyAImpl_QueryInterface, | 
|---|
| 1268 | IDirectPlayLobbyAImpl_AddRef, | 
|---|
| 1269 | IDirectPlayLobbyAImpl_Release, | 
|---|
| 1270 | IDirectPlayLobbyAImpl_Connect, | 
|---|
| 1271 | IDirectPlayLobbyAImpl_CreateAddress, | 
|---|
| 1272 | IDirectPlayLobbyAImpl_EnumAddress, | 
|---|
| 1273 | IDirectPlayLobbyAImpl_EnumAddressTypes, | 
|---|
| 1274 | IDirectPlayLobbyAImpl_EnumLocalApplications, | 
|---|
| 1275 | IDirectPlayLobbyAImpl_GetConnectionSettings, | 
|---|
| 1276 | IDirectPlayLobbyAImpl_ReceiveLobbyMessage, | 
|---|
| 1277 | IDirectPlayLobbyAImpl_RunApplication, | 
|---|
| 1278 | IDirectPlayLobbyAImpl_SendLobbyMessage, | 
|---|
| 1279 | IDirectPlayLobbyAImpl_SetConnectionSettings, | 
|---|
| 1280 | IDirectPlayLobbyAImpl_SetLobbyMessageEvent | 
|---|
| 1281 | }; | 
|---|
| 1282 |  | 
|---|
| 1283 |  | 
|---|
| 1284 | /* Direct Play Lobby 1 (unicode) Virtual Table for methods */ | 
|---|
| 1285 | ICOM_VTABLE(IDirectPlayLobby) directPlayLobbyWVT = | 
|---|
| 1286 | { | 
|---|
| 1287 | ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE | 
|---|
| 1288 | IDirectPlayLobbyW_QueryInterface, | 
|---|
| 1289 | IDirectPlayLobbyAImpl_AddRef, | 
|---|
| 1290 | IDirectPlayLobbyAImpl_Release, | 
|---|
| 1291 | IDirectPlayLobbyAImpl_Connect, | 
|---|
| 1292 | IDirectPlayLobbyAImpl_CreateAddress, | 
|---|
| 1293 | IDirectPlayLobbyAImpl_EnumAddress, | 
|---|
| 1294 | IDirectPlayLobbyAImpl_EnumAddressTypes, | 
|---|
| 1295 | IDirectPlayLobbyAImpl_EnumLocalApplications, | 
|---|
| 1296 | IDirectPlayLobbyWImpl_GetConnectionSettings, | 
|---|
| 1297 | IDirectPlayLobbyAImpl_ReceiveLobbyMessage, | 
|---|
| 1298 | IDirectPlayLobbyAImpl_RunApplication, | 
|---|
| 1299 | IDirectPlayLobbyAImpl_SendLobbyMessage, | 
|---|
| 1300 | IDirectPlayLobbyAImpl_SetConnectionSettings, | 
|---|
| 1301 | IDirectPlayLobbyAImpl_SetLobbyMessageEvent | 
|---|
| 1302 | }; | 
|---|
| 1303 |  | 
|---|
| 1304 |  | 
|---|
| 1305 | /* Direct Play Lobby 2 (ascii) Virtual Table for methods */ | 
|---|
| 1306 | ICOM_VTABLE(IDirectPlayLobby2) directPlayLobby2AVT = | 
|---|
| 1307 | { | 
|---|
| 1308 | ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE | 
|---|
| 1309 | IDirectPlayLobby2AImpl_QueryInterface, | 
|---|
| 1310 | IDirectPlayLobby2AImpl_AddRef, | 
|---|
| 1311 | IDirectPlayLobby2AImpl_Release, | 
|---|
| 1312 | IDirectPlayLobby2AImpl_Connect, | 
|---|
| 1313 | IDirectPlayLobby2AImpl_CreateAddress, | 
|---|
| 1314 | IDirectPlayLobby2AImpl_EnumAddress, | 
|---|
| 1315 | IDirectPlayLobby2AImpl_EnumAddressTypes, | 
|---|
| 1316 | IDirectPlayLobby2AImpl_EnumLocalApplications, | 
|---|
| 1317 | IDirectPlayLobby2AImpl_GetConnectionSettings, | 
|---|
| 1318 | IDirectPlayLobby2AImpl_ReceiveLobbyMessage, | 
|---|
| 1319 | IDirectPlayLobby2AImpl_RunApplication, | 
|---|
| 1320 | IDirectPlayLobby2AImpl_SendLobbyMessage, | 
|---|
| 1321 | IDirectPlayLobby2AImpl_SetConnectionSettings, | 
|---|
| 1322 | IDirectPlayLobby2AImpl_SetLobbyMessageEvent, | 
|---|
| 1323 | IDirectPlayLobby2AImpl_CreateCompoundAddress | 
|---|
| 1324 | }; | 
|---|
| 1325 |  | 
|---|
| 1326 | /* Direct Play Lobby 2 (unicode) Virtual Table for methods */ | 
|---|
| 1327 | ICOM_VTABLE(IDirectPlayLobby2) directPlayLobby2WVT = | 
|---|
| 1328 | { | 
|---|
| 1329 | ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE | 
|---|
| 1330 | IDirectPlayLobby2WImpl_QueryInterface, | 
|---|
| 1331 | IDirectPlayLobby2WImpl_AddRef, | 
|---|
| 1332 | IDirectPlayLobby2WImpl_Release, | 
|---|
| 1333 | IDirectPlayLobby2WImpl_Connect, | 
|---|
| 1334 | IDirectPlayLobby2WImpl_CreateAddress, | 
|---|
| 1335 | IDirectPlayLobby2WImpl_EnumAddress, | 
|---|
| 1336 | IDirectPlayLobby2WImpl_EnumAddressTypes, | 
|---|
| 1337 | IDirectPlayLobby2WImpl_EnumLocalApplications, | 
|---|
| 1338 | IDirectPlayLobby2WImpl_GetConnectionSettings, | 
|---|
| 1339 | IDirectPlayLobby2WImpl_ReceiveLobbyMessage, | 
|---|
| 1340 | IDirectPlayLobby2WImpl_RunApplication, | 
|---|
| 1341 | IDirectPlayLobby2WImpl_SendLobbyMessage, | 
|---|
| 1342 | IDirectPlayLobby2WImpl_SetConnectionSettings, | 
|---|
| 1343 | IDirectPlayLobby2WImpl_SetLobbyMessageEvent, | 
|---|
| 1344 | IDirectPlayLobby2WImpl_CreateCompoundAddress | 
|---|
| 1345 | }; | 
|---|
| 1346 |  | 
|---|
| 1347 | /*************************************************************************** | 
|---|
| 1348 | *  DirectPlayLobbyCreateA   (DPLAYX.4) | 
|---|
| 1349 | * | 
|---|
| 1350 | */ | 
|---|
| 1351 | HRESULT WINAPI DirectPlayLobbyCreateA( LPGUID lpGUIDDSP, | 
|---|
| 1352 | LPDIRECTPLAYLOBBYA *lplpDPL, | 
|---|
| 1353 | IUnknown *lpUnk, | 
|---|
| 1354 | LPVOID lpData, | 
|---|
| 1355 | DWORD dwDataSize ) | 
|---|
| 1356 | { | 
|---|
| 1357 | IDirectPlayLobbyAImpl** ilplpDPL=(IDirectPlayLobbyAImpl**)lplpDPL; | 
|---|
| 1358 | TRACE("lpGUIDDSP=%p lplpDPL=%p lpUnk=%p lpData=%p dwDataSize=%08lx\n", | 
|---|
| 1359 | lpGUIDDSP,ilplpDPL,lpUnk,lpData,dwDataSize); | 
|---|
| 1360 |  | 
|---|
| 1361 | /* Parameter Check: lpGUIDSP, lpUnk & lpData must be NULL. dwDataSize must | 
|---|
| 1362 | * equal 0. These fields are mostly for future expansion. | 
|---|
| 1363 | */ | 
|---|
| 1364 | if ( lpGUIDDSP || lpUnk || lpData || dwDataSize ) | 
|---|
| 1365 | { | 
|---|
| 1366 | *ilplpDPL = NULL; | 
|---|
| 1367 | return DPERR_INVALIDPARAMS; | 
|---|
| 1368 | } | 
|---|
| 1369 |  | 
|---|
| 1370 | /* Yes...really we should be returning a lobby 1 object */ | 
|---|
| 1371 | *ilplpDPL = (IDirectPlayLobbyAImpl*)HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, | 
|---|
| 1372 | sizeof( IDirectPlayLobbyAImpl ) ); | 
|---|
| 1373 |  | 
|---|
| 1374 | if( ! (*ilplpDPL) ) | 
|---|
| 1375 | { | 
|---|
| 1376 | return DPERR_OUTOFMEMORY; | 
|---|
| 1377 | } | 
|---|
| 1378 |  | 
|---|
| 1379 | (*ilplpDPL)->lpvtbl = &directPlayLobbyAVT; | 
|---|
| 1380 | (*ilplpDPL)->ref    = 1; | 
|---|
| 1381 |  | 
|---|
| 1382 | /* All fields were nulled out by the allocation */ | 
|---|
| 1383 |  | 
|---|
| 1384 | return DP_OK; | 
|---|
| 1385 | } | 
|---|
| 1386 |  | 
|---|
| 1387 | /*************************************************************************** | 
|---|
| 1388 | *  DirectPlayLobbyCreateW   (DPLAYX.5) | 
|---|
| 1389 | * | 
|---|
| 1390 | */ | 
|---|
| 1391 | HRESULT WINAPI DirectPlayLobbyCreateW( LPGUID lpGUIDDSP, | 
|---|
| 1392 | LPDIRECTPLAYLOBBY *lplpDPL, | 
|---|
| 1393 | IUnknown *lpUnk, | 
|---|
| 1394 | LPVOID lpData, | 
|---|
| 1395 | DWORD dwDataSize ) | 
|---|
| 1396 | { | 
|---|
| 1397 | IDirectPlayLobbyImpl** ilplpDPL=(IDirectPlayLobbyImpl**)lplpDPL; | 
|---|
| 1398 | TRACE("lpGUIDDSP=%p lplpDPL=%p lpUnk=%p lpData=%p dwDataSize=%08lx\n", | 
|---|
| 1399 | lpGUIDDSP,ilplpDPL,lpUnk,lpData,dwDataSize); | 
|---|
| 1400 |  | 
|---|
| 1401 | /* Parameter Check: lpGUIDSP, lpUnk & lpData must be NULL. dwDataSize must | 
|---|
| 1402 | * equal 0. These fields are mostly for future expansion. | 
|---|
| 1403 | */ | 
|---|
| 1404 | if ( lpGUIDDSP || lpUnk || lpData || dwDataSize ) | 
|---|
| 1405 | { | 
|---|
| 1406 | *ilplpDPL = NULL; | 
|---|
| 1407 | ERR("Bad parameters!\n" ); | 
|---|
| 1408 | return DPERR_INVALIDPARAMS; | 
|---|
| 1409 | } | 
|---|
| 1410 |  | 
|---|
| 1411 | /* Yes...really we should bre returning a lobby 1 object */ | 
|---|
| 1412 | *ilplpDPL = (IDirectPlayLobbyImpl*)HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, | 
|---|
| 1413 | sizeof( IDirectPlayLobbyImpl ) ); | 
|---|
| 1414 |  | 
|---|
| 1415 | if( !*ilplpDPL) | 
|---|
| 1416 | { | 
|---|
| 1417 | return DPERR_OUTOFMEMORY; | 
|---|
| 1418 | } | 
|---|
| 1419 |  | 
|---|
| 1420 | (*ilplpDPL)->lpvtbl = &directPlayLobbyWVT; | 
|---|
| 1421 | (*ilplpDPL)->ref    = 1; | 
|---|
| 1422 |  | 
|---|
| 1423 | /* All fields were nulled out by the allocation */ | 
|---|
| 1424 |  | 
|---|
| 1425 | return DP_OK; | 
|---|
| 1426 |  | 
|---|
| 1427 | } | 
|---|
| 1428 |  | 
|---|
| 1429 | /*************************************************************************** | 
|---|
| 1430 | *  DirectPlayEnumerateA (DPLAYX.2) | 
|---|
| 1431 | * | 
|---|
| 1432 | *  The pointer to the structure lpContext will be filled with the | 
|---|
| 1433 | *  appropriate data for each service offered by the OS. These services are | 
|---|
| 1434 | *  not necessarily available on this particular machine but are defined | 
|---|
| 1435 | *  as simple service providers under the "Service Providers" registry key. | 
|---|
| 1436 | *  This structure is then passed to lpEnumCallback for each of the different | 
|---|
| 1437 | *  services. | 
|---|
| 1438 | * | 
|---|
| 1439 | *  This API is useful only for applications written using DirectX3 or | 
|---|
| 1440 | *  worse. It is superceeded by IDirectPlay3::EnumConnections which also | 
|---|
| 1441 | *  gives information on the actual connections. | 
|---|
| 1442 | * | 
|---|
| 1443 | * defn of a service provider: | 
|---|
| 1444 | * A dynamic-link library used by DirectPlay to communicate over a network. | 
|---|
| 1445 | * The service provider contains all the network-specific code required | 
|---|
| 1446 | * to send and receive messages. Online services and network operators can | 
|---|
| 1447 | * supply service providers to use specialized hardware, protocols, communications | 
|---|
| 1448 | * media, and network resources. | 
|---|
| 1449 | * | 
|---|
| 1450 | * TODO: Allocate string buffer space from the heap (length from reg) | 
|---|
| 1451 | *       Pass real device driver numbers... | 
|---|
| 1452 | *       Get the GUID properly... | 
|---|
| 1453 | */ | 
|---|
| 1454 | HRESULT WINAPI DirectPlayEnumerateA( LPDPENUMDPCALLBACKA lpEnumCallback, | 
|---|
| 1455 | LPVOID lpContext ) | 
|---|
| 1456 | { | 
|---|
| 1457 |  | 
|---|
| 1458 | HKEY hkResult; | 
|---|
| 1459 | LPCSTR searchSubKey    = "SOFTWARE\\Microsoft\\DirectPlay\\Service Providers"; | 
|---|
| 1460 | LPSTR guidDataSubKey   = "Guid"; | 
|---|
| 1461 | LPSTR majVerDataSubKey = "dwReserved1"; | 
|---|
| 1462 | DWORD dwIndex, sizeOfSubKeyName=50; | 
|---|
| 1463 | char subKeyName[51]; | 
|---|
| 1464 |  | 
|---|
| 1465 | TRACE(": lpEnumCallback=%p lpContext=%p\n", lpEnumCallback, lpContext ); | 
|---|
| 1466 |  | 
|---|
| 1467 | if( !lpEnumCallback ) | 
|---|
| 1468 | { | 
|---|
| 1469 | return DPERR_INVALIDPARAMS; | 
|---|
| 1470 | } | 
|---|
| 1471 |  | 
|---|
| 1472 | /* Need to loop over the service providers in the registry */ | 
|---|
| 1473 | if( RegOpenKeyExA( HKEY_LOCAL_MACHINE, searchSubKey, | 
|---|
| 1474 | 0, KEY_ENUMERATE_SUB_KEYS, &hkResult ) != ERROR_SUCCESS ) | 
|---|
| 1475 | { | 
|---|
| 1476 | /* Hmmm. Does this mean that there are no service providers? */ | 
|---|
| 1477 | ERR(": no service providers?\n"); | 
|---|
| 1478 | return DP_OK; | 
|---|
| 1479 | } | 
|---|
| 1480 |  | 
|---|
| 1481 | /* Traverse all the service providers we have available */ | 
|---|
| 1482 | for( dwIndex=0; | 
|---|
| 1483 | RegEnumKeyA( hkResult, dwIndex, subKeyName, sizeOfSubKeyName ) != | 
|---|
| 1484 | ERROR_NO_MORE_ITEMS; | 
|---|
| 1485 | ++dwIndex ) | 
|---|
| 1486 | { | 
|---|
| 1487 | HKEY     hkServiceProvider; | 
|---|
| 1488 | GUID     serviceProviderGUID; | 
|---|
| 1489 | DWORD    returnTypeGUID, returnTypeReserved1, sizeOfReturnBuffer=50; | 
|---|
| 1490 | char     returnBuffer[51]; | 
|---|
| 1491 | DWORD    majVersionNum /*, minVersionNum */; | 
|---|
| 1492 | LPWSTR   lpWGUIDString; | 
|---|
| 1493 |  | 
|---|
| 1494 | TRACE(" this time through: %s\n", subKeyName ); | 
|---|
| 1495 |  | 
|---|
| 1496 | /* Get a handle for this particular service provider */ | 
|---|
| 1497 | if( RegOpenKeyExA( hkResult, subKeyName, 0, KEY_QUERY_VALUE, | 
|---|
| 1498 | &hkServiceProvider ) != ERROR_SUCCESS ) | 
|---|
| 1499 | { | 
|---|
| 1500 | ERR(": what the heck is going on?\n" ); | 
|---|
| 1501 | continue; | 
|---|
| 1502 | } | 
|---|
| 1503 |  | 
|---|
| 1504 | /* Get the GUID, Device major number and device minor number | 
|---|
| 1505 | * from the registry. | 
|---|
| 1506 | */ | 
|---|
| 1507 | if( RegQueryValueExA( hkServiceProvider, guidDataSubKey, | 
|---|
| 1508 | NULL, &returnTypeGUID, (LPBYTE)returnBuffer, | 
|---|
| 1509 | &sizeOfReturnBuffer ) != ERROR_SUCCESS ) | 
|---|
| 1510 | { | 
|---|
| 1511 | ERR(": missing GUID registry data members\n" ); | 
|---|
| 1512 | continue; | 
|---|
| 1513 | } | 
|---|
| 1514 |  | 
|---|
| 1515 | /* FIXME: Check return types to ensure we're interpreting data right */ | 
|---|
| 1516 | lpWGUIDString = HEAP_strdupAtoW( GetProcessHeap(), 0, returnBuffer ); | 
|---|
| 1517 | CLSIDFromString( (LPCOLESTR)lpWGUIDString, &serviceProviderGUID ); | 
|---|
| 1518 | HeapFree( GetProcessHeap(), 0, lpWGUIDString ); | 
|---|
| 1519 |  | 
|---|
| 1520 | sizeOfReturnBuffer = 50; | 
|---|
| 1521 |  | 
|---|
| 1522 | if( RegQueryValueExA( hkServiceProvider, majVerDataSubKey, | 
|---|
| 1523 | NULL, &returnTypeReserved1, (LPBYTE)returnBuffer, | 
|---|
| 1524 | &sizeOfReturnBuffer ) != ERROR_SUCCESS ) | 
|---|
| 1525 | { | 
|---|
| 1526 | ERR(": missing dwReserved1 registry data members\n") ; | 
|---|
| 1527 | continue; | 
|---|
| 1528 | } | 
|---|
| 1529 | /* FIXME: This couldn't possibly be right...*/ | 
|---|
| 1530 | majVersionNum = GET_DWORD( returnBuffer ); | 
|---|
| 1531 |  | 
|---|
| 1532 | /* The enumeration will return FALSE if we are not to continue */ | 
|---|
| 1533 | if( !lpEnumCallback( &serviceProviderGUID , subKeyName, | 
|---|
| 1534 | majVersionNum, (DWORD)0, lpContext ) ) | 
|---|
| 1535 | { | 
|---|
| 1536 | WARN("lpEnumCallback returning FALSE\n" ); | 
|---|
| 1537 | break; | 
|---|
| 1538 | } | 
|---|
| 1539 | } | 
|---|
| 1540 |  | 
|---|
| 1541 | return DP_OK; | 
|---|
| 1542 |  | 
|---|
| 1543 | } | 
|---|
| 1544 |  | 
|---|
| 1545 | /*************************************************************************** | 
|---|
| 1546 | *  DirectPlayEnumerateW (DPLAYX.3) | 
|---|
| 1547 | * | 
|---|
| 1548 | */ | 
|---|
| 1549 | HRESULT WINAPI DirectPlayEnumerateW( LPDPENUMDPCALLBACKW lpEnumCallback, LPVOID lpContext ) | 
|---|
| 1550 | { | 
|---|
| 1551 |  | 
|---|
| 1552 | FIXME(":stub\n"); | 
|---|
| 1553 |  | 
|---|
| 1554 | return DPERR_OUTOFMEMORY; | 
|---|
| 1555 |  | 
|---|
| 1556 | } | 
|---|
| 1557 |  | 
|---|
| 1558 | /*************************************************************************** | 
|---|
| 1559 | *  DirectPlayCreate (DPLAYX.1) (DPLAY.1) | 
|---|
| 1560 | * | 
|---|
| 1561 | */ | 
|---|
| 1562 | HRESULT WINAPI DirectPlayCreate | 
|---|
| 1563 | ( LPGUID lpGUID, LPDIRECTPLAY2 *lplpDP, IUnknown *pUnk) | 
|---|
| 1564 | { | 
|---|
| 1565 |  | 
|---|
| 1566 | TRACE("lpGUID=%p lplpDP=%p pUnk=%p\n", lpGUID,lplpDP,pUnk); | 
|---|
| 1567 |  | 
|---|
| 1568 | if( pUnk != NULL ) | 
|---|
| 1569 | { | 
|---|
| 1570 | /* Hmmm...wonder what this means! */ | 
|---|
| 1571 | ERR("What does a NULL here mean?\n" ); | 
|---|
| 1572 | return DPERR_OUTOFMEMORY; | 
|---|
| 1573 | } | 
|---|
| 1574 |  | 
|---|
| 1575 | if( IsEqualGUID( &IID_IDirectPlay2A, lpGUID ) ) | 
|---|
| 1576 | { | 
|---|
| 1577 | IDirectPlay2AImpl** ilplpDP=(IDirectPlay2AImpl**)lplpDP; | 
|---|
| 1578 | *ilplpDP = (IDirectPlay2AImpl*)HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, | 
|---|
| 1579 | sizeof( **ilplpDP ) ); | 
|---|
| 1580 |  | 
|---|
| 1581 | if( !*ilplpDP ) | 
|---|
| 1582 | { | 
|---|
| 1583 | return DPERR_OUTOFMEMORY; | 
|---|
| 1584 | } | 
|---|
| 1585 |  | 
|---|
| 1586 | (*ilplpDP)->lpvtbl = &directPlay2AVT; | 
|---|
| 1587 | (*ilplpDP)->ref    = 1; | 
|---|
| 1588 |  | 
|---|
| 1589 | return DP_OK; | 
|---|
| 1590 | } | 
|---|
| 1591 | else if( IsEqualGUID( &IID_IDirectPlay2, lpGUID ) ) | 
|---|
| 1592 | { | 
|---|
| 1593 | IDirectPlay2Impl** ilplpDP=(IDirectPlay2Impl**)lplpDP; | 
|---|
| 1594 | *ilplpDP = (IDirectPlay2Impl*)HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, | 
|---|
| 1595 | sizeof( **ilplpDP ) ); | 
|---|
| 1596 |  | 
|---|
| 1597 | if( !*ilplpDP ) | 
|---|
| 1598 | { | 
|---|
| 1599 | return DPERR_OUTOFMEMORY; | 
|---|
| 1600 | } | 
|---|
| 1601 |  | 
|---|
| 1602 | (*ilplpDP)->lpvtbl = &directPlay2WVT; | 
|---|
| 1603 | (*ilplpDP)->ref    = 1; | 
|---|
| 1604 |  | 
|---|
| 1605 | return DP_OK; | 
|---|
| 1606 | } | 
|---|
| 1607 |  | 
|---|
| 1608 | /* Unknown interface type */ | 
|---|
| 1609 | return DPERR_NOINTERFACE; | 
|---|
| 1610 |  | 
|---|
| 1611 | } | 
|---|
| 1612 |  | 
|---|
| 1613 | /* Direct Play helper methods */ | 
|---|
| 1614 |  | 
|---|
| 1615 | /* Get a new interface. To be used by QueryInterface. */ | 
|---|
| 1616 | static HRESULT directPlay_QueryInterface | 
|---|
| 1617 | ( REFIID riid, LPVOID* ppvObj ) | 
|---|
| 1618 | { | 
|---|
| 1619 |  | 
|---|
| 1620 | if( IsEqualGUID( &IID_IDirectPlay2, riid ) ) | 
|---|
| 1621 | { | 
|---|
| 1622 | IDirectPlay2Impl* lpDP = (IDirectPlay2Impl*)*ppvObj; | 
|---|
| 1623 |  | 
|---|
| 1624 | lpDP = (IDirectPlay2Impl*)HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, | 
|---|
| 1625 | sizeof( *lpDP ) ); | 
|---|
| 1626 |  | 
|---|
| 1627 | if( !lpDP ) | 
|---|
| 1628 | { | 
|---|
| 1629 | return DPERR_OUTOFMEMORY; | 
|---|
| 1630 | } | 
|---|
| 1631 |  | 
|---|
| 1632 | lpDP->lpvtbl = &directPlay2WVT; | 
|---|
| 1633 | lpDP->ref    = 1; | 
|---|
| 1634 |  | 
|---|
| 1635 | return S_OK; | 
|---|
| 1636 | } | 
|---|
| 1637 | else if( IsEqualGUID( &IID_IDirectPlay2A, riid ) ) | 
|---|
| 1638 | { | 
|---|
| 1639 | IDirectPlay2AImpl* lpDP = (IDirectPlay2AImpl*)*ppvObj; | 
|---|
| 1640 |  | 
|---|
| 1641 | lpDP = (IDirectPlay2AImpl*)HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, | 
|---|
| 1642 | sizeof( *lpDP ) ); | 
|---|
| 1643 |  | 
|---|
| 1644 | if( !lpDP ) | 
|---|
| 1645 | { | 
|---|
| 1646 | return DPERR_OUTOFMEMORY; | 
|---|
| 1647 | } | 
|---|
| 1648 |  | 
|---|
| 1649 | lpDP->lpvtbl = &directPlay2AVT; | 
|---|
| 1650 | lpDP->ref    = 1; | 
|---|
| 1651 |  | 
|---|
| 1652 | return S_OK; | 
|---|
| 1653 | } | 
|---|
| 1654 | else if( IsEqualGUID( &IID_IDirectPlay3, riid ) ) | 
|---|
| 1655 | { | 
|---|
| 1656 | IDirectPlay3Impl* lpDP = (IDirectPlay3Impl*)*ppvObj; | 
|---|
| 1657 |  | 
|---|
| 1658 | lpDP = (IDirectPlay3Impl*)HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, | 
|---|
| 1659 | sizeof( *lpDP ) ); | 
|---|
| 1660 |  | 
|---|
| 1661 | if( !lpDP ) | 
|---|
| 1662 | { | 
|---|
| 1663 | return DPERR_OUTOFMEMORY; | 
|---|
| 1664 | } | 
|---|
| 1665 |  | 
|---|
| 1666 | lpDP->lpvtbl = &directPlay3WVT; | 
|---|
| 1667 | lpDP->ref    = 1; | 
|---|
| 1668 |  | 
|---|
| 1669 | return S_OK; | 
|---|
| 1670 | } | 
|---|
| 1671 | else if( IsEqualGUID( &IID_IDirectPlay3A, riid ) ) | 
|---|
| 1672 | { | 
|---|
| 1673 | IDirectPlay3AImpl* lpDP = (IDirectPlay3AImpl*)*ppvObj; | 
|---|
| 1674 |  | 
|---|
| 1675 | lpDP = (IDirectPlay3AImpl*)HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, | 
|---|
| 1676 | sizeof( *lpDP ) ); | 
|---|
| 1677 |  | 
|---|
| 1678 | if( !lpDP ) | 
|---|
| 1679 | { | 
|---|
| 1680 | return DPERR_OUTOFMEMORY; | 
|---|
| 1681 | } | 
|---|
| 1682 |  | 
|---|
| 1683 | lpDP->lpvtbl = &directPlay3AVT; | 
|---|
| 1684 | lpDP->ref    = 1; | 
|---|
| 1685 |  | 
|---|
| 1686 | return S_OK; | 
|---|
| 1687 |  | 
|---|
| 1688 | } | 
|---|
| 1689 |  | 
|---|
| 1690 | *ppvObj = NULL; | 
|---|
| 1691 | return E_NOINTERFACE; | 
|---|
| 1692 | } | 
|---|
| 1693 |  | 
|---|
| 1694 |  | 
|---|
| 1695 | /* Direct Play methods */ | 
|---|
| 1696 | static HRESULT WINAPI DirectPlay2W_QueryInterface | 
|---|
| 1697 | ( LPDIRECTPLAY2 iface, REFIID riid, LPVOID* ppvObj ) | 
|---|
| 1698 | { | 
|---|
| 1699 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 1700 | TRACE("(%p)->(%p,%p)\n", This, riid, ppvObj ); | 
|---|
| 1701 |  | 
|---|
| 1702 | if( IsEqualGUID( &IID_IUnknown, riid ) || | 
|---|
| 1703 | IsEqualGUID( &IID_IDirectPlay2, riid ) | 
|---|
| 1704 | ) | 
|---|
| 1705 | { | 
|---|
| 1706 | IDirectPlay2_AddRef( iface ); | 
|---|
| 1707 | *ppvObj = This; | 
|---|
| 1708 | return S_OK; | 
|---|
| 1709 | } | 
|---|
| 1710 | return directPlay_QueryInterface( riid, ppvObj ); | 
|---|
| 1711 | } | 
|---|
| 1712 |  | 
|---|
| 1713 | static HRESULT WINAPI DirectPlay2A_QueryInterface | 
|---|
| 1714 | ( LPDIRECTPLAY2A iface, REFIID riid, LPVOID* ppvObj ) | 
|---|
| 1715 | { | 
|---|
| 1716 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 1717 | TRACE("(%p)->(%p,%p)\n", This, riid, ppvObj ); | 
|---|
| 1718 |  | 
|---|
| 1719 | if( IsEqualGUID( &IID_IUnknown, riid ) || | 
|---|
| 1720 | IsEqualGUID( &IID_IDirectPlay2A, riid ) | 
|---|
| 1721 | ) | 
|---|
| 1722 | { | 
|---|
| 1723 | IDirectPlay2_AddRef( iface ); | 
|---|
| 1724 | *ppvObj = This; | 
|---|
| 1725 | return S_OK; | 
|---|
| 1726 | } | 
|---|
| 1727 |  | 
|---|
| 1728 | return directPlay_QueryInterface( riid, ppvObj ); | 
|---|
| 1729 | } | 
|---|
| 1730 |  | 
|---|
| 1731 | static HRESULT WINAPI DirectPlay3WImpl_QueryInterface | 
|---|
| 1732 | ( LPDIRECTPLAY3 iface, REFIID riid, LPVOID* ppvObj ) | 
|---|
| 1733 | { | 
|---|
| 1734 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 1735 | TRACE("(%p)->(%p,%p)\n", This, riid, ppvObj ); | 
|---|
| 1736 |  | 
|---|
| 1737 | if( IsEqualGUID( &IID_IUnknown, riid ) || | 
|---|
| 1738 | IsEqualGUID( &IID_IDirectPlay3, riid ) | 
|---|
| 1739 | ) | 
|---|
| 1740 | { | 
|---|
| 1741 | IDirectPlay3_AddRef( iface ); | 
|---|
| 1742 | *ppvObj = This; | 
|---|
| 1743 | return S_OK; | 
|---|
| 1744 | } | 
|---|
| 1745 |  | 
|---|
| 1746 | return directPlay_QueryInterface( riid, ppvObj ); | 
|---|
| 1747 | } | 
|---|
| 1748 |  | 
|---|
| 1749 | static HRESULT WINAPI DirectPlay3A_QueryInterface | 
|---|
| 1750 | ( LPDIRECTPLAY3A iface, REFIID riid, LPVOID* ppvObj ) | 
|---|
| 1751 | { | 
|---|
| 1752 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 1753 | TRACE("(%p)->(%p,%p)\n", This, riid, ppvObj ); | 
|---|
| 1754 |  | 
|---|
| 1755 | if( IsEqualGUID( &IID_IUnknown, riid ) || | 
|---|
| 1756 | IsEqualGUID( &IID_IDirectPlay3A, riid ) | 
|---|
| 1757 | ) | 
|---|
| 1758 | { | 
|---|
| 1759 | IDirectPlay3_AddRef( iface ); | 
|---|
| 1760 | *ppvObj = This; | 
|---|
| 1761 | return S_OK; | 
|---|
| 1762 | } | 
|---|
| 1763 |  | 
|---|
| 1764 | return directPlay_QueryInterface( riid, ppvObj ); | 
|---|
| 1765 | } | 
|---|
| 1766 |  | 
|---|
| 1767 |  | 
|---|
| 1768 | /* Shared between all dplay types */ | 
|---|
| 1769 | static ULONG WINAPI DirectPlay3WImpl_AddRef | 
|---|
| 1770 | ( LPDIRECTPLAY3 iface ) | 
|---|
| 1771 | { | 
|---|
| 1772 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 1773 | ++(This->ref); | 
|---|
| 1774 | TRACE("ref count now %lu\n", This->ref ); | 
|---|
| 1775 | return (This->ref); | 
|---|
| 1776 | } | 
|---|
| 1777 |  | 
|---|
| 1778 | static ULONG WINAPI DirectPlay2WImpl_AddRef (LPDIRECTPLAY2 iface) | 
|---|
| 1779 | { | 
|---|
| 1780 | return DirectPlay3WImpl_AddRef( (LPDIRECTPLAY3) iface ); | 
|---|
| 1781 | } | 
|---|
| 1782 |  | 
|---|
| 1783 | static ULONG WINAPI DirectPlay3WImpl_Release | 
|---|
| 1784 | ( LPDIRECTPLAY3 iface ) | 
|---|
| 1785 | { | 
|---|
| 1786 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 1787 | TRACE("ref count decremeneted from %lu\n", This->ref ); | 
|---|
| 1788 |  | 
|---|
| 1789 | This->ref--; | 
|---|
| 1790 |  | 
|---|
| 1791 | /* Deallocate if this is the last reference to the object */ | 
|---|
| 1792 | if( !(This->ref) ) | 
|---|
| 1793 | { | 
|---|
| 1794 | FIXME("memory leak\n" ); | 
|---|
| 1795 | /* Implement memory deallocation */ | 
|---|
| 1796 |  | 
|---|
| 1797 | HeapFree( GetProcessHeap(), 0, This ); | 
|---|
| 1798 |  | 
|---|
| 1799 | return 0; | 
|---|
| 1800 | } | 
|---|
| 1801 |  | 
|---|
| 1802 | return This->ref; | 
|---|
| 1803 | } | 
|---|
| 1804 |  | 
|---|
| 1805 | static ULONG WINAPI DirectPlay2WImpl_Release (LPDIRECTPLAY2 iface) | 
|---|
| 1806 | { | 
|---|
| 1807 | return DirectPlay3WImpl_Release( (LPDIRECTPLAY3) iface ); | 
|---|
| 1808 | } | 
|---|
| 1809 |  | 
|---|
| 1810 | static ULONG WINAPI DirectPlay2A_Release | 
|---|
| 1811 | ( LPDIRECTPLAY2A iface ) | 
|---|
| 1812 | { | 
|---|
| 1813 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 1814 | TRACE("ref count decremeneted from %lu\n", This->ref ); | 
|---|
| 1815 |  | 
|---|
| 1816 | This->ref--; | 
|---|
| 1817 |  | 
|---|
| 1818 | /* Deallocate if this is the last reference to the object */ | 
|---|
| 1819 | if( !(This->ref) ) | 
|---|
| 1820 | { | 
|---|
| 1821 | FIXME("memory leak\n" ); | 
|---|
| 1822 | /* Implement memory deallocation */ | 
|---|
| 1823 |  | 
|---|
| 1824 | HeapFree( GetProcessHeap(), 0, This ); | 
|---|
| 1825 |  | 
|---|
| 1826 | return 0; | 
|---|
| 1827 | } | 
|---|
| 1828 |  | 
|---|
| 1829 | return This->ref; | 
|---|
| 1830 | } | 
|---|
| 1831 |  | 
|---|
| 1832 |  | 
|---|
| 1833 | static ULONG WINAPI DirectPlay3A_Release | 
|---|
| 1834 | ( LPDIRECTPLAY3A iface ) | 
|---|
| 1835 | { | 
|---|
| 1836 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 1837 | TRACE("ref count decremeneted from %lu\n", This->ref ); | 
|---|
| 1838 |  | 
|---|
| 1839 | This->ref--; | 
|---|
| 1840 |  | 
|---|
| 1841 | /* Deallocate if this is the last reference to the object */ | 
|---|
| 1842 | if( !(This->ref) ) | 
|---|
| 1843 | { | 
|---|
| 1844 | FIXME("memory leak\n" ); | 
|---|
| 1845 | /* Implement memory deallocation */ | 
|---|
| 1846 |  | 
|---|
| 1847 | HeapFree( GetProcessHeap(), 0, This ); | 
|---|
| 1848 |  | 
|---|
| 1849 | return 0; | 
|---|
| 1850 | } | 
|---|
| 1851 |  | 
|---|
| 1852 | return This->ref; | 
|---|
| 1853 | } | 
|---|
| 1854 |  | 
|---|
| 1855 | static ULONG WINAPI DirectPlay2AImpl_AddRef (LPDIRECTPLAY2A iface) | 
|---|
| 1856 | { | 
|---|
| 1857 | return DirectPlay3WImpl_AddRef( (LPDIRECTPLAY3A) iface ); | 
|---|
| 1858 | } | 
|---|
| 1859 |  | 
|---|
| 1860 | HRESULT WINAPI DirectPlay3A_AddPlayerToGroup | 
|---|
| 1861 | ( LPDIRECTPLAY3A iface, DPID a, DPID b ) | 
|---|
| 1862 | { | 
|---|
| 1863 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 1864 | FIXME("(%p)->(0x%08lx,0x%08lx): stub", This, a, b ); | 
|---|
| 1865 | return DP_OK; | 
|---|
| 1866 | } | 
|---|
| 1867 |  | 
|---|
| 1868 |  | 
|---|
| 1869 | HRESULT WINAPI DirectPlay3WImpl_AddPlayerToGroup | 
|---|
| 1870 | ( LPDIRECTPLAY3 iface, DPID a, DPID b ) | 
|---|
| 1871 | { | 
|---|
| 1872 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 1873 | FIXME("(%p)->(0x%08lx,0x%08lx): stub", This, a, b ); | 
|---|
| 1874 | return DP_OK; | 
|---|
| 1875 | } | 
|---|
| 1876 |  | 
|---|
| 1877 | HRESULT WINAPI DirectPlay2A_AddPlayerToGroup | 
|---|
| 1878 | ( LPDIRECTPLAY2A iface, DPID a, DPID b ) | 
|---|
| 1879 | { | 
|---|
| 1880 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 1881 | FIXME("(%p)->(0x%08lx,0x%08lx): stub", This, a, b ); | 
|---|
| 1882 | return DP_OK; | 
|---|
| 1883 | } | 
|---|
| 1884 |  | 
|---|
| 1885 | HRESULT WINAPI DirectPlay2WImpl_AddPlayerToGroup | 
|---|
| 1886 | ( LPDIRECTPLAY2 iface, DPID a, DPID b ) | 
|---|
| 1887 | { | 
|---|
| 1888 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 1889 | FIXME("(%p)->(0x%08lx,0x%08lx): stub", This, a, b ); | 
|---|
| 1890 | return DP_OK; | 
|---|
| 1891 | } | 
|---|
| 1892 |  | 
|---|
| 1893 | HRESULT WINAPI DirectPlay3A_Close | 
|---|
| 1894 | ( LPDIRECTPLAY3A iface ) | 
|---|
| 1895 | { | 
|---|
| 1896 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 1897 | FIXME("(%p)->(): stub", This ); | 
|---|
| 1898 | return DP_OK; | 
|---|
| 1899 | } | 
|---|
| 1900 |  | 
|---|
| 1901 | HRESULT WINAPI DirectPlay3WImpl_Close | 
|---|
| 1902 | ( LPDIRECTPLAY3 iface ) | 
|---|
| 1903 | { | 
|---|
| 1904 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 1905 | FIXME("(%p)->(): stub", This ); | 
|---|
| 1906 | return DP_OK; | 
|---|
| 1907 | } | 
|---|
| 1908 |  | 
|---|
| 1909 | HRESULT WINAPI DirectPlay2A_Close | 
|---|
| 1910 | ( LPDIRECTPLAY2A iface ) | 
|---|
| 1911 | { | 
|---|
| 1912 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 1913 | FIXME("(%p)->(): stub", This ); | 
|---|
| 1914 | return DP_OK; | 
|---|
| 1915 | } | 
|---|
| 1916 |  | 
|---|
| 1917 | HRESULT WINAPI DirectPlay2WImpl_Close | 
|---|
| 1918 | ( LPDIRECTPLAY2 iface ) | 
|---|
| 1919 | { | 
|---|
| 1920 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 1921 | FIXME("(%p)->(): stub", This ); | 
|---|
| 1922 | return DP_OK; | 
|---|
| 1923 | } | 
|---|
| 1924 |  | 
|---|
| 1925 |  | 
|---|
| 1926 | HRESULT WINAPI DirectPlay3A_CreateGroup | 
|---|
| 1927 | ( LPDIRECTPLAY3A iface, LPDPID a, LPDPNAME b, LPVOID c, DWORD d, DWORD e ) | 
|---|
| 1928 | { | 
|---|
| 1929 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 1930 | FIXME("(%p)->(%p,%p,%p,0x%08lx,0x%08lx): stub", This, a, b, c, d, e ); | 
|---|
| 1931 | return DP_OK; | 
|---|
| 1932 | } | 
|---|
| 1933 |  | 
|---|
| 1934 | HRESULT WINAPI DirectPlay3WImpl_CreateGroup | 
|---|
| 1935 | ( LPDIRECTPLAY3 iface, LPDPID a, LPDPNAME b, LPVOID c, DWORD d, DWORD e ) | 
|---|
| 1936 | { | 
|---|
| 1937 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 1938 | FIXME("(%p)->(%p,%p,%p,0x%08lx,0x%08lx): stub", This, a, b, c, d, e ); | 
|---|
| 1939 | return DP_OK; | 
|---|
| 1940 | } | 
|---|
| 1941 |  | 
|---|
| 1942 | HRESULT WINAPI DirectPlay2A_CreateGroup | 
|---|
| 1943 | ( LPDIRECTPLAY2A iface, LPDPID a, LPDPNAME b, LPVOID c, DWORD d, DWORD e ) | 
|---|
| 1944 | { | 
|---|
| 1945 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 1946 | FIXME("(%p)->(%p,%p,%p,0x%08lx,0x%08lx): stub", This, a, b, c, d, e ); | 
|---|
| 1947 | return DP_OK; | 
|---|
| 1948 | } | 
|---|
| 1949 |  | 
|---|
| 1950 | HRESULT WINAPI DirectPlay2WImpl_CreateGroup | 
|---|
| 1951 | ( LPDIRECTPLAY2 iface, LPDPID a, LPDPNAME b, LPVOID c, DWORD d, DWORD e ) | 
|---|
| 1952 | { | 
|---|
| 1953 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 1954 | FIXME("(%p)->(%p,%p,%p,0x%08lx,0x%08lx): stub", This, a, b, c, d, e ); | 
|---|
| 1955 | return DP_OK; | 
|---|
| 1956 | } | 
|---|
| 1957 |  | 
|---|
| 1958 | HRESULT WINAPI DirectPlay3A_CreatePlayer | 
|---|
| 1959 | ( LPDIRECTPLAY3A iface, LPDPID a, LPDPNAME b, HANDLE c, LPVOID d, DWORD e, DWORD f ) | 
|---|
| 1960 | { | 
|---|
| 1961 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 1962 | FIXME("(%p)->(%p,%p,%d,%p,0x%08lx,0x%08lx): stub", This, a, b, c, d, e, f ); | 
|---|
| 1963 | return DP_OK; | 
|---|
| 1964 | } | 
|---|
| 1965 |  | 
|---|
| 1966 | HRESULT WINAPI DirectPlay3WImpl_CreatePlayer | 
|---|
| 1967 | ( LPDIRECTPLAY3 iface, LPDPID a, LPDPNAME b, HANDLE c, LPVOID d, DWORD e, DWORD f ) | 
|---|
| 1968 | { | 
|---|
| 1969 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 1970 | FIXME("(%p)->(%p,%p,%d,%p,0x%08lx,0x%08lx): stub", This, a, b, c, d, e, f ); | 
|---|
| 1971 | return DP_OK; | 
|---|
| 1972 | } | 
|---|
| 1973 |  | 
|---|
| 1974 | HRESULT WINAPI DirectPlay2A_CreatePlayer | 
|---|
| 1975 | ( LPDIRECTPLAY2A iface, LPDPID a, LPDPNAME b, HANDLE c, LPVOID d, DWORD e, DWORD f ) | 
|---|
| 1976 | { | 
|---|
| 1977 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 1978 | FIXME("(%p)->(%p,%p,%d,%p,0x%08lx,0x%08lx): stub", This, a, b, c, d, e, f ); | 
|---|
| 1979 | return DP_OK; | 
|---|
| 1980 | } | 
|---|
| 1981 |  | 
|---|
| 1982 | HRESULT WINAPI DirectPlay2WImpl_CreatePlayer | 
|---|
| 1983 | ( LPDIRECTPLAY2 iface, LPDPID a, LPDPNAME b, HANDLE c, LPVOID d, DWORD e, DWORD f ) | 
|---|
| 1984 | { | 
|---|
| 1985 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 1986 | FIXME("(%p)->(%p,%p,%d,%p,0x%08lx,0x%08lx): stub", This, a, b, c, d, e, f ); | 
|---|
| 1987 | return DP_OK; | 
|---|
| 1988 | } | 
|---|
| 1989 |  | 
|---|
| 1990 | HRESULT WINAPI DirectPlay3A_DeletePlayerFromGroup | 
|---|
| 1991 | ( LPDIRECTPLAY3A iface, DPID a, DPID b ) | 
|---|
| 1992 | { | 
|---|
| 1993 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 1994 | FIXME("(%p)->(0x%08lx,0x%08lx): stub", This, a, b ); | 
|---|
| 1995 | return DP_OK; | 
|---|
| 1996 | } | 
|---|
| 1997 |  | 
|---|
| 1998 | HRESULT WINAPI DirectPlay3WImpl_DeletePlayerFromGroup | 
|---|
| 1999 | ( LPDIRECTPLAY3 iface, DPID a, DPID b ) | 
|---|
| 2000 | { | 
|---|
| 2001 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2002 | FIXME("(%p)->(0x%08lx,0x%08lx): stub", This, a, b ); | 
|---|
| 2003 | return DP_OK; | 
|---|
| 2004 | } | 
|---|
| 2005 |  | 
|---|
| 2006 | HRESULT WINAPI DirectPlay2A_DeletePlayerFromGroup | 
|---|
| 2007 | ( LPDIRECTPLAY2A iface, DPID a, DPID b ) | 
|---|
| 2008 | { | 
|---|
| 2009 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2010 | FIXME("(%p)->(0x%08lx,0x%08lx): stub", This, a, b ); | 
|---|
| 2011 | return DP_OK; | 
|---|
| 2012 | } | 
|---|
| 2013 |  | 
|---|
| 2014 | HRESULT WINAPI DirectPlay2WImpl_DeletePlayerFromGroup | 
|---|
| 2015 | ( LPDIRECTPLAY2 iface, DPID a, DPID b ) | 
|---|
| 2016 | { | 
|---|
| 2017 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2018 | FIXME("(%p)->(0x%08lx,0x%08lx): stub", This, a, b ); | 
|---|
| 2019 | return DP_OK; | 
|---|
| 2020 | } | 
|---|
| 2021 |  | 
|---|
| 2022 | HRESULT WINAPI DirectPlay3A_DestroyGroup | 
|---|
| 2023 | ( LPDIRECTPLAY3A iface, DPID a ) | 
|---|
| 2024 | { | 
|---|
| 2025 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2026 | FIXME("(%p)->(0x%08lx): stub", This, a ); | 
|---|
| 2027 | return DP_OK; | 
|---|
| 2028 | } | 
|---|
| 2029 |  | 
|---|
| 2030 | HRESULT WINAPI DirectPlay3WImpl_DestroyGroup | 
|---|
| 2031 | ( LPDIRECTPLAY3 iface, DPID a ) | 
|---|
| 2032 | { | 
|---|
| 2033 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2034 | FIXME("(%p)->(0x%08lx): stub", This, a ); | 
|---|
| 2035 | return DP_OK; | 
|---|
| 2036 | } | 
|---|
| 2037 |  | 
|---|
| 2038 | HRESULT WINAPI DirectPlay2A_DestroyGroup | 
|---|
| 2039 | ( LPDIRECTPLAY2A iface, DPID a ) | 
|---|
| 2040 | { | 
|---|
| 2041 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2042 | FIXME("(%p)->(0x%08lx): stub", This, a ); | 
|---|
| 2043 | return DP_OK; | 
|---|
| 2044 | } | 
|---|
| 2045 |  | 
|---|
| 2046 | HRESULT WINAPI DirectPlay2WImpl_DestroyGroup | 
|---|
| 2047 | ( LPDIRECTPLAY2 iface, DPID a ) | 
|---|
| 2048 | { | 
|---|
| 2049 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2050 | FIXME("(%p)->(0x%08lx): stub", This, a ); | 
|---|
| 2051 | return DP_OK; | 
|---|
| 2052 | } | 
|---|
| 2053 |  | 
|---|
| 2054 | HRESULT WINAPI DirectPlay3A_DestroyPlayer | 
|---|
| 2055 | ( LPDIRECTPLAY3A iface, DPID a ) | 
|---|
| 2056 | { | 
|---|
| 2057 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2058 | FIXME("(%p)->(0x%08lx): stub", This, a ); | 
|---|
| 2059 | return DP_OK; | 
|---|
| 2060 | } | 
|---|
| 2061 |  | 
|---|
| 2062 | HRESULT WINAPI DirectPlay3WImpl_DestroyPlayer | 
|---|
| 2063 | ( LPDIRECTPLAY3 iface, DPID a ) | 
|---|
| 2064 | { | 
|---|
| 2065 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2066 | FIXME("(%p)->(0x%08lx): stub", This, a ); | 
|---|
| 2067 | return DP_OK; | 
|---|
| 2068 | } | 
|---|
| 2069 |  | 
|---|
| 2070 | HRESULT WINAPI DirectPlay2A_DestroyPlayer | 
|---|
| 2071 | ( LPDIRECTPLAY2A iface, DPID a ) | 
|---|
| 2072 | { | 
|---|
| 2073 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2074 | FIXME("(%p)->(0x%08lx): stub", This, a ); | 
|---|
| 2075 | return DP_OK; | 
|---|
| 2076 | } | 
|---|
| 2077 |  | 
|---|
| 2078 | HRESULT WINAPI DirectPlay2WImpl_DestroyPlayer | 
|---|
| 2079 | ( LPDIRECTPLAY2 iface, DPID a ) | 
|---|
| 2080 | { | 
|---|
| 2081 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2082 | FIXME("(%p)->(0x%08lx): stub", This, a ); | 
|---|
| 2083 | return DP_OK; | 
|---|
| 2084 | } | 
|---|
| 2085 |  | 
|---|
| 2086 | HRESULT WINAPI DirectPlay3A_EnumGroupPlayers | 
|---|
| 2087 | ( LPDIRECTPLAY3A iface, DPID a, LPGUID b, LPDPENUMPLAYERSCALLBACK2 c, | 
|---|
| 2088 | LPVOID d, DWORD e ) | 
|---|
| 2089 | { | 
|---|
| 2090 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2091 | FIXME("(%p)->(0x%08lx,%p,%p,%p,0x%08lx): stub", This, a, b, c, d, e ); | 
|---|
| 2092 | return DP_OK; | 
|---|
| 2093 | } | 
|---|
| 2094 |  | 
|---|
| 2095 | HRESULT WINAPI DirectPlay3WImpl_EnumGroupPlayers | 
|---|
| 2096 | ( LPDIRECTPLAY3 iface, DPID a, LPGUID b, LPDPENUMPLAYERSCALLBACK2 c, | 
|---|
| 2097 | LPVOID d, DWORD e ) | 
|---|
| 2098 | { | 
|---|
| 2099 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2100 | FIXME("(%p)->(0x%08lx,%p,%p,%p,0x%08lx): stub", This, a, b, c, d, e ); | 
|---|
| 2101 | return DP_OK; | 
|---|
| 2102 | } | 
|---|
| 2103 |  | 
|---|
| 2104 | HRESULT WINAPI DirectPlay2A_EnumGroupPlayers | 
|---|
| 2105 | ( LPDIRECTPLAY2A iface, DPID a, LPGUID b, LPDPENUMPLAYERSCALLBACK2 c, | 
|---|
| 2106 | LPVOID d, DWORD e ) | 
|---|
| 2107 | { | 
|---|
| 2108 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2109 | FIXME("(%p)->(0x%08lx,%p,%p,%p,0x%08lx): stub", This, a, b, c, d, e ); | 
|---|
| 2110 | return DP_OK; | 
|---|
| 2111 | } | 
|---|
| 2112 |  | 
|---|
| 2113 | HRESULT WINAPI DirectPlay2WImpl_EnumGroupPlayers | 
|---|
| 2114 | ( LPDIRECTPLAY2 iface, DPID a, LPGUID b, LPDPENUMPLAYERSCALLBACK2 c, | 
|---|
| 2115 | LPVOID d, DWORD e ) | 
|---|
| 2116 | { | 
|---|
| 2117 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2118 | FIXME("(%p)->(0x%08lx,%p,%p,%p,0x%08lx): stub", This, a, b, c, d, e ); | 
|---|
| 2119 | return DP_OK; | 
|---|
| 2120 | } | 
|---|
| 2121 |  | 
|---|
| 2122 | HRESULT WINAPI DirectPlay3A_EnumGroups | 
|---|
| 2123 | ( LPDIRECTPLAY3A iface, LPGUID a, LPDPENUMPLAYERSCALLBACK2 b, LPVOID c, DWORD d ) | 
|---|
| 2124 | { | 
|---|
| 2125 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2126 | FIXME("(%p)->(%p,%p,%p,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2127 | return DP_OK; | 
|---|
| 2128 | } | 
|---|
| 2129 |  | 
|---|
| 2130 | HRESULT WINAPI DirectPlay3WImpl_EnumGroups | 
|---|
| 2131 | ( LPDIRECTPLAY3 iface, LPGUID a, LPDPENUMPLAYERSCALLBACK2 b, LPVOID c, DWORD d ) | 
|---|
| 2132 | { | 
|---|
| 2133 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2134 | FIXME("(%p)->(%p,%p,%p,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2135 | return DP_OK; | 
|---|
| 2136 | } | 
|---|
| 2137 |  | 
|---|
| 2138 | HRESULT WINAPI DirectPlay2A_EnumGroups | 
|---|
| 2139 | ( LPDIRECTPLAY2A iface, LPGUID a, LPDPENUMPLAYERSCALLBACK2 b, LPVOID c, DWORD d ) | 
|---|
| 2140 | { | 
|---|
| 2141 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2142 | FIXME("(%p)->(%p,%p,%p,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2143 | return DP_OK; | 
|---|
| 2144 | } | 
|---|
| 2145 |  | 
|---|
| 2146 | HRESULT WINAPI DirectPlay2WImpl_EnumGroups | 
|---|
| 2147 | ( LPDIRECTPLAY2 iface, LPGUID a, LPDPENUMPLAYERSCALLBACK2 b, LPVOID c, DWORD d ) | 
|---|
| 2148 | { | 
|---|
| 2149 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2150 | FIXME("(%p)->(%p,%p,%p,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2151 | return DP_OK; | 
|---|
| 2152 | } | 
|---|
| 2153 |  | 
|---|
| 2154 | HRESULT WINAPI DirectPlay3A_EnumPlayers | 
|---|
| 2155 | ( LPDIRECTPLAY3A iface, LPGUID a, LPDPENUMPLAYERSCALLBACK2 b, LPVOID c, DWORD d ) | 
|---|
| 2156 | { | 
|---|
| 2157 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2158 | FIXME("(%p)->(%p,%p,%p,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2159 | return DP_OK; | 
|---|
| 2160 | } | 
|---|
| 2161 |  | 
|---|
| 2162 | HRESULT WINAPI DirectPlay3WImpl_EnumPlayers | 
|---|
| 2163 | ( LPDIRECTPLAY3 iface, LPGUID a, LPDPENUMPLAYERSCALLBACK2 b, LPVOID c, DWORD d ) | 
|---|
| 2164 | { | 
|---|
| 2165 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2166 | FIXME("(%p)->(%p,%p,%p,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2167 | return DP_OK; | 
|---|
| 2168 | } | 
|---|
| 2169 |  | 
|---|
| 2170 | HRESULT WINAPI DirectPlay2A_EnumPlayers | 
|---|
| 2171 | ( LPDIRECTPLAY2A iface, LPGUID a, LPDPENUMPLAYERSCALLBACK2 b, LPVOID c, DWORD d ) | 
|---|
| 2172 | { | 
|---|
| 2173 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2174 | FIXME("(%p)->(%p,%p,%p,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2175 | return DP_OK; | 
|---|
| 2176 | } | 
|---|
| 2177 |  | 
|---|
| 2178 | HRESULT WINAPI DirectPlay2WImpl_EnumPlayers | 
|---|
| 2179 | ( LPDIRECTPLAY2 iface, LPGUID a, LPDPENUMPLAYERSCALLBACK2 b, LPVOID c, DWORD d ) | 
|---|
| 2180 | { | 
|---|
| 2181 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2182 | FIXME("(%p)->(%p,%p,%p,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2183 | return DP_OK; | 
|---|
| 2184 | } | 
|---|
| 2185 |  | 
|---|
| 2186 | HRESULT WINAPI DirectPlay3A_EnumSessions | 
|---|
| 2187 | ( LPDIRECTPLAY3A iface, LPDPSESSIONDESC2 a, DWORD b, LPDPENUMSESSIONSCALLBACK2 c, | 
|---|
| 2188 | LPVOID d, DWORD e ) | 
|---|
| 2189 | { | 
|---|
| 2190 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2191 | FIXME("(%p)->(%p,0x%08lx,%p,%p,0x%08lx): stub", This, a, b, c, d, e ); | 
|---|
| 2192 | return DP_OK; | 
|---|
| 2193 | } | 
|---|
| 2194 |  | 
|---|
| 2195 | HRESULT WINAPI DirectPlay3WImpl_EnumSessions | 
|---|
| 2196 | ( LPDIRECTPLAY3 iface, LPDPSESSIONDESC2 a, DWORD b, LPDPENUMSESSIONSCALLBACK2 c, | 
|---|
| 2197 | LPVOID d, DWORD e ) | 
|---|
| 2198 | { | 
|---|
| 2199 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2200 | FIXME("(%p)->(%p,0x%08lx,%p,%p,0x%08lx): stub", This, a, b, c, d, e ); | 
|---|
| 2201 | return DP_OK; | 
|---|
| 2202 | } | 
|---|
| 2203 |  | 
|---|
| 2204 | HRESULT WINAPI DirectPlay2A_EnumSessions | 
|---|
| 2205 | ( LPDIRECTPLAY2A iface, LPDPSESSIONDESC2 a, DWORD b, LPDPENUMSESSIONSCALLBACK2 c, | 
|---|
| 2206 | LPVOID d, DWORD e ) | 
|---|
| 2207 | { | 
|---|
| 2208 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2209 | FIXME("(%p)->(%p,0x%08lx,%p,%p,0x%08lx): stub", This, a, b, c, d, e ); | 
|---|
| 2210 | return DP_OK; | 
|---|
| 2211 | } | 
|---|
| 2212 |  | 
|---|
| 2213 | HRESULT WINAPI DirectPlay2WImpl_EnumSessions | 
|---|
| 2214 | ( LPDIRECTPLAY2 iface, LPDPSESSIONDESC2 a, DWORD b, LPDPENUMSESSIONSCALLBACK2 c, | 
|---|
| 2215 | LPVOID d, DWORD e ) | 
|---|
| 2216 | { | 
|---|
| 2217 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2218 | FIXME("(%p)->(%p,0x%08lx,%p,%p,0x%08lx): stub", This, a, b, c, d, e ); | 
|---|
| 2219 | return DP_OK; | 
|---|
| 2220 | } | 
|---|
| 2221 |  | 
|---|
| 2222 | HRESULT WINAPI DirectPlay3A_GetCaps | 
|---|
| 2223 | ( LPDIRECTPLAY3A iface, LPDPCAPS a, DWORD b ) | 
|---|
| 2224 | { | 
|---|
| 2225 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2226 | FIXME("(%p)->(%p,0x%08lx): stub", This, a, b ); | 
|---|
| 2227 | return DP_OK; | 
|---|
| 2228 | } | 
|---|
| 2229 |  | 
|---|
| 2230 | HRESULT WINAPI DirectPlay3WImpl_GetCaps | 
|---|
| 2231 | ( LPDIRECTPLAY3 iface, LPDPCAPS a, DWORD b ) | 
|---|
| 2232 | { | 
|---|
| 2233 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2234 | FIXME("(%p)->(%p,0x%08lx): stub", This, a, b ); | 
|---|
| 2235 | return DP_OK; | 
|---|
| 2236 | } | 
|---|
| 2237 |  | 
|---|
| 2238 | HRESULT WINAPI DirectPlay2A_GetCaps | 
|---|
| 2239 | ( LPDIRECTPLAY2A iface, LPDPCAPS a, DWORD b ) | 
|---|
| 2240 | { | 
|---|
| 2241 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2242 | FIXME("(%p)->(%p,0x%08lx): stub", This, a, b ); | 
|---|
| 2243 | return DP_OK; | 
|---|
| 2244 | } | 
|---|
| 2245 |  | 
|---|
| 2246 | HRESULT WINAPI DirectPlay2WImpl_GetCaps | 
|---|
| 2247 | ( LPDIRECTPLAY2 iface, LPDPCAPS a, DWORD b ) | 
|---|
| 2248 | { | 
|---|
| 2249 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2250 | FIXME("(%p)->(%p,0x%08lx): stub", This, a, b ); | 
|---|
| 2251 | return DP_OK; | 
|---|
| 2252 | } | 
|---|
| 2253 |  | 
|---|
| 2254 | HRESULT WINAPI DirectPlay3A_GetGroupData | 
|---|
| 2255 | ( LPDIRECTPLAY3 iface, DPID a, LPVOID b, LPDWORD c, DWORD d ) | 
|---|
| 2256 | { | 
|---|
| 2257 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2258 | FIXME("(%p)->(0x%08lx,%p,%p,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2259 | return DP_OK; | 
|---|
| 2260 | } | 
|---|
| 2261 |  | 
|---|
| 2262 | HRESULT WINAPI DirectPlay3WImpl_GetGroupData | 
|---|
| 2263 | ( LPDIRECTPLAY3 iface, DPID a, LPVOID b, LPDWORD c, DWORD d ) | 
|---|
| 2264 | { | 
|---|
| 2265 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2266 | FIXME("(%p)->(0x%08lx,%p,%p,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2267 | return DP_OK; | 
|---|
| 2268 | } | 
|---|
| 2269 |  | 
|---|
| 2270 | HRESULT WINAPI DirectPlay2A_GetGroupData | 
|---|
| 2271 | ( LPDIRECTPLAY2 iface, DPID a, LPVOID b, LPDWORD c, DWORD d ) | 
|---|
| 2272 | { | 
|---|
| 2273 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2274 | FIXME("(%p)->(0x%08lx,%p,%p,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2275 | return DP_OK; | 
|---|
| 2276 | } | 
|---|
| 2277 |  | 
|---|
| 2278 | HRESULT WINAPI DirectPlay2WImpl_GetGroupData | 
|---|
| 2279 | ( LPDIRECTPLAY2 iface, DPID a, LPVOID b, LPDWORD c, DWORD d ) | 
|---|
| 2280 | { | 
|---|
| 2281 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2282 | FIXME("(%p)->(0x%08lx,%p,%p,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2283 | return DP_OK; | 
|---|
| 2284 | } | 
|---|
| 2285 |  | 
|---|
| 2286 | HRESULT WINAPI DirectPlay3A_GetGroupName | 
|---|
| 2287 | ( LPDIRECTPLAY3A iface, DPID a, LPVOID b, LPDWORD c ) | 
|---|
| 2288 | { | 
|---|
| 2289 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2290 | FIXME("(%p)->(0x%08lx,%p,%p): stub", This, a, b, c ); | 
|---|
| 2291 | return DP_OK; | 
|---|
| 2292 | } | 
|---|
| 2293 |  | 
|---|
| 2294 | HRESULT WINAPI DirectPlay3WImpl_GetGroupName | 
|---|
| 2295 | ( LPDIRECTPLAY3 iface, DPID a, LPVOID b, LPDWORD c ) | 
|---|
| 2296 | { | 
|---|
| 2297 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2298 | FIXME("(%p)->(0x%08lx,%p,%p): stub", This, a, b, c ); | 
|---|
| 2299 | return DP_OK; | 
|---|
| 2300 | } | 
|---|
| 2301 |  | 
|---|
| 2302 | HRESULT WINAPI DirectPlay2A_GetGroupName | 
|---|
| 2303 | ( LPDIRECTPLAY2A iface, DPID a, LPVOID b, LPDWORD c ) | 
|---|
| 2304 | { | 
|---|
| 2305 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2306 | FIXME("(%p)->(0x%08lx,%p,%p): stub", This, a, b, c ); | 
|---|
| 2307 | return DP_OK; | 
|---|
| 2308 | } | 
|---|
| 2309 |  | 
|---|
| 2310 | HRESULT WINAPI DirectPlay2WImpl_GetGroupName | 
|---|
| 2311 | ( LPDIRECTPLAY2 iface, DPID a, LPVOID b, LPDWORD c ) | 
|---|
| 2312 | { | 
|---|
| 2313 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2314 | FIXME("(%p)->(0x%08lx,%p,%p): stub", This, a, b, c ); | 
|---|
| 2315 | return DP_OK; | 
|---|
| 2316 | } | 
|---|
| 2317 |  | 
|---|
| 2318 | HRESULT WINAPI DirectPlay3A_GetMessageCount | 
|---|
| 2319 | ( LPDIRECTPLAY3A iface, DPID a, LPDWORD b ) | 
|---|
| 2320 | { | 
|---|
| 2321 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2322 | FIXME("(%p)->(0x%08lx,%p): stub", This, a, b ); | 
|---|
| 2323 | return DP_OK; | 
|---|
| 2324 | } | 
|---|
| 2325 |  | 
|---|
| 2326 | HRESULT WINAPI DirectPlay3WImpl_GetMessageCount | 
|---|
| 2327 | ( LPDIRECTPLAY3 iface, DPID a, LPDWORD b ) | 
|---|
| 2328 | { | 
|---|
| 2329 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2330 | FIXME("(%p)->(0x%08lx,%p): stub", This, a, b ); | 
|---|
| 2331 | return DP_OK; | 
|---|
| 2332 | } | 
|---|
| 2333 |  | 
|---|
| 2334 | HRESULT WINAPI DirectPlay2A_GetMessageCount | 
|---|
| 2335 | ( LPDIRECTPLAY2A iface, DPID a, LPDWORD b ) | 
|---|
| 2336 | { | 
|---|
| 2337 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2338 | FIXME("(%p)->(0x%08lx,%p): stub", This, a, b ); | 
|---|
| 2339 | return DP_OK; | 
|---|
| 2340 | } | 
|---|
| 2341 |  | 
|---|
| 2342 | HRESULT WINAPI DirectPlay2WImpl_GetMessageCount | 
|---|
| 2343 | ( LPDIRECTPLAY2 iface, DPID a, LPDWORD b ) | 
|---|
| 2344 | { | 
|---|
| 2345 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2346 | FIXME("(%p)->(0x%08lx,%p): stub", This, a, b ); | 
|---|
| 2347 | return DP_OK; | 
|---|
| 2348 | } | 
|---|
| 2349 |  | 
|---|
| 2350 | HRESULT WINAPI DirectPlay3A_GetPlayerAddress | 
|---|
| 2351 | ( LPDIRECTPLAY3A iface, DPID a, LPVOID b, LPDWORD c ) | 
|---|
| 2352 | { | 
|---|
| 2353 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2354 | FIXME("(%p)->(0x%08lx,%p,%p): stub", This, a, b, c ); | 
|---|
| 2355 | return DP_OK; | 
|---|
| 2356 | } | 
|---|
| 2357 |  | 
|---|
| 2358 | HRESULT WINAPI DirectPlay3WImpl_GetPlayerAddress | 
|---|
| 2359 | ( LPDIRECTPLAY3 iface, DPID a, LPVOID b, LPDWORD c ) | 
|---|
| 2360 | { | 
|---|
| 2361 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2362 | FIXME("(%p)->(0x%08lx,%p,%p): stub", This, a, b, c ); | 
|---|
| 2363 | return DP_OK; | 
|---|
| 2364 | } | 
|---|
| 2365 |  | 
|---|
| 2366 | HRESULT WINAPI DirectPlay2A_GetPlayerAddress | 
|---|
| 2367 | ( LPDIRECTPLAY2A iface, DPID a, LPVOID b, LPDWORD c ) | 
|---|
| 2368 | { | 
|---|
| 2369 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2370 | FIXME("(%p)->(0x%08lx,%p,%p): stub", This, a, b, c ); | 
|---|
| 2371 | return DP_OK; | 
|---|
| 2372 | } | 
|---|
| 2373 |  | 
|---|
| 2374 | HRESULT WINAPI DirectPlay2WImpl_GetPlayerAddress | 
|---|
| 2375 | ( LPDIRECTPLAY2 iface, DPID a, LPVOID b, LPDWORD c ) | 
|---|
| 2376 | { | 
|---|
| 2377 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2378 | FIXME("(%p)->(0x%08lx,%p,%p): stub", This, a, b, c ); | 
|---|
| 2379 | return DP_OK; | 
|---|
| 2380 | } | 
|---|
| 2381 |  | 
|---|
| 2382 | HRESULT WINAPI DirectPlay3A_GetPlayerCaps | 
|---|
| 2383 | ( LPDIRECTPLAY3A iface, DPID a, LPDPCAPS b, DWORD c ) | 
|---|
| 2384 | { | 
|---|
| 2385 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2386 | FIXME("(%p)->(0x%08lx,%p,0x%08lx): stub", This, a, b, c ); | 
|---|
| 2387 | return DP_OK; | 
|---|
| 2388 | } | 
|---|
| 2389 |  | 
|---|
| 2390 | HRESULT WINAPI DirectPlay3WImpl_GetPlayerCaps | 
|---|
| 2391 | ( LPDIRECTPLAY3 iface, DPID a, LPDPCAPS b, DWORD c ) | 
|---|
| 2392 | { | 
|---|
| 2393 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2394 | FIXME("(%p)->(0x%08lx,%p,0x%08lx): stub", This, a, b, c ); | 
|---|
| 2395 | return DP_OK; | 
|---|
| 2396 | } | 
|---|
| 2397 |  | 
|---|
| 2398 | HRESULT WINAPI DirectPlay2A_GetPlayerCaps | 
|---|
| 2399 | ( LPDIRECTPLAY2A iface, DPID a, LPDPCAPS b, DWORD c ) | 
|---|
| 2400 | { | 
|---|
| 2401 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2402 | FIXME("(%p)->(0x%08lx,%p,0x%08lx): stub", This, a, b, c ); | 
|---|
| 2403 | return DP_OK; | 
|---|
| 2404 | } | 
|---|
| 2405 |  | 
|---|
| 2406 | HRESULT WINAPI DirectPlay2WImpl_GetPlayerCaps | 
|---|
| 2407 | ( LPDIRECTPLAY2 iface, DPID a, LPDPCAPS b, DWORD c ) | 
|---|
| 2408 | { | 
|---|
| 2409 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2410 | FIXME("(%p)->(0x%08lx,%p,0x%08lx): stub", This, a, b, c ); | 
|---|
| 2411 | return DP_OK; | 
|---|
| 2412 | } | 
|---|
| 2413 |  | 
|---|
| 2414 | HRESULT WINAPI DirectPlay3A_GetPlayerData | 
|---|
| 2415 | ( LPDIRECTPLAY3A iface, DPID a, LPVOID b, LPDWORD c, DWORD d ) | 
|---|
| 2416 | { | 
|---|
| 2417 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2418 | FIXME("(%p)->(0x%08lx,%p,%p,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2419 | return DP_OK; | 
|---|
| 2420 | } | 
|---|
| 2421 |  | 
|---|
| 2422 | HRESULT WINAPI DirectPlay3WImpl_GetPlayerData | 
|---|
| 2423 | ( LPDIRECTPLAY3 iface, DPID a, LPVOID b, LPDWORD c, DWORD d ) | 
|---|
| 2424 | { | 
|---|
| 2425 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2426 | FIXME("(%p)->(0x%08lx,%p,%p,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2427 | return DP_OK; | 
|---|
| 2428 | } | 
|---|
| 2429 |  | 
|---|
| 2430 | HRESULT WINAPI DirectPlay2A_GetPlayerData | 
|---|
| 2431 | ( LPDIRECTPLAY2A iface, DPID a, LPVOID b, LPDWORD c, DWORD d ) | 
|---|
| 2432 | { | 
|---|
| 2433 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2434 | FIXME("(%p)->(0x%08lx,%p,%p,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2435 | return DP_OK; | 
|---|
| 2436 | } | 
|---|
| 2437 |  | 
|---|
| 2438 | HRESULT WINAPI DirectPlay2WImpl_GetPlayerData | 
|---|
| 2439 | ( LPDIRECTPLAY2 iface, DPID a, LPVOID b, LPDWORD c, DWORD d ) | 
|---|
| 2440 | { | 
|---|
| 2441 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2442 | FIXME("(%p)->(0x%08lx,%p,%p,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2443 | return DP_OK; | 
|---|
| 2444 | } | 
|---|
| 2445 |  | 
|---|
| 2446 | HRESULT WINAPI DirectPlay3A_GetPlayerName | 
|---|
| 2447 | ( LPDIRECTPLAY3 iface, DPID a, LPVOID b, LPDWORD c ) | 
|---|
| 2448 | { | 
|---|
| 2449 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2450 | FIXME("(%p)->(0x%08lx,%p,%p): stub", This, a, b, c ); | 
|---|
| 2451 | return DP_OK; | 
|---|
| 2452 | } | 
|---|
| 2453 |  | 
|---|
| 2454 | HRESULT WINAPI DirectPlay3WImpl_GetPlayerName | 
|---|
| 2455 | ( LPDIRECTPLAY3 iface, DPID a, LPVOID b, LPDWORD c ) | 
|---|
| 2456 | { | 
|---|
| 2457 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2458 | FIXME("(%p)->(0x%08lx,%p,%p): stub", This, a, b, c ); | 
|---|
| 2459 | return DP_OK; | 
|---|
| 2460 | } | 
|---|
| 2461 |  | 
|---|
| 2462 | HRESULT WINAPI DirectPlay2A_GetPlayerName | 
|---|
| 2463 | ( LPDIRECTPLAY2 iface, DPID a, LPVOID b, LPDWORD c ) | 
|---|
| 2464 | { | 
|---|
| 2465 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2466 | FIXME("(%p)->(0x%08lx,%p,%p): stub", This, a, b, c ); | 
|---|
| 2467 | return DP_OK; | 
|---|
| 2468 | } | 
|---|
| 2469 |  | 
|---|
| 2470 | HRESULT WINAPI DirectPlay2WImpl_GetPlayerName | 
|---|
| 2471 | ( LPDIRECTPLAY2 iface, DPID a, LPVOID b, LPDWORD c ) | 
|---|
| 2472 | { | 
|---|
| 2473 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2474 | FIXME("(%p)->(0x%08lx,%p,%p): stub", This, a, b, c ); | 
|---|
| 2475 | return DP_OK; | 
|---|
| 2476 | } | 
|---|
| 2477 |  | 
|---|
| 2478 | HRESULT WINAPI DirectPlay3A_GetSessionDesc | 
|---|
| 2479 | ( LPDIRECTPLAY3A iface, LPVOID a, LPDWORD b ) | 
|---|
| 2480 | { | 
|---|
| 2481 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2482 | FIXME("(%p)->(%p,%p): stub", This, a, b ); | 
|---|
| 2483 | return DP_OK; | 
|---|
| 2484 | } | 
|---|
| 2485 |  | 
|---|
| 2486 | HRESULT WINAPI DirectPlay3WImpl_GetSessionDesc | 
|---|
| 2487 | ( LPDIRECTPLAY3 iface, LPVOID a, LPDWORD b ) | 
|---|
| 2488 | { | 
|---|
| 2489 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2490 | FIXME("(%p)->(%p,%p): stub", This, a, b ); | 
|---|
| 2491 | return DP_OK; | 
|---|
| 2492 | } | 
|---|
| 2493 |  | 
|---|
| 2494 | HRESULT WINAPI DirectPlay2A_GetSessionDesc | 
|---|
| 2495 | ( LPDIRECTPLAY2A iface, LPVOID a, LPDWORD b ) | 
|---|
| 2496 | { | 
|---|
| 2497 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2498 | FIXME("(%p)->(%p,%p): stub", This, a, b ); | 
|---|
| 2499 | return DP_OK; | 
|---|
| 2500 | } | 
|---|
| 2501 |  | 
|---|
| 2502 | HRESULT WINAPI DirectPlay2WImpl_GetSessionDesc | 
|---|
| 2503 | ( LPDIRECTPLAY2 iface, LPVOID a, LPDWORD b ) | 
|---|
| 2504 | { | 
|---|
| 2505 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2506 | FIXME("(%p)->(%p,%p): stub", This, a, b ); | 
|---|
| 2507 | return DP_OK; | 
|---|
| 2508 | } | 
|---|
| 2509 |  | 
|---|
| 2510 | HRESULT WINAPI DirectPlay3A_Initialize | 
|---|
| 2511 | ( LPDIRECTPLAY3A iface, LPGUID a ) | 
|---|
| 2512 | { | 
|---|
| 2513 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2514 | FIXME("(%p)->(%p): stub", This, a ); | 
|---|
| 2515 | return DP_OK; | 
|---|
| 2516 | } | 
|---|
| 2517 |  | 
|---|
| 2518 | HRESULT WINAPI DirectPlay3WImpl_Initialize | 
|---|
| 2519 | ( LPDIRECTPLAY3 iface, LPGUID a ) | 
|---|
| 2520 | { | 
|---|
| 2521 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2522 | FIXME("(%p)->(%p): stub", This, a ); | 
|---|
| 2523 | return DP_OK; | 
|---|
| 2524 | } | 
|---|
| 2525 |  | 
|---|
| 2526 | HRESULT WINAPI DirectPlay2A_Initialize | 
|---|
| 2527 | ( LPDIRECTPLAY2A iface, LPGUID a ) | 
|---|
| 2528 | { | 
|---|
| 2529 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2530 | FIXME("(%p)->(%p): stub", This, a ); | 
|---|
| 2531 | return DP_OK; | 
|---|
| 2532 | } | 
|---|
| 2533 |  | 
|---|
| 2534 | HRESULT WINAPI DirectPlay2WImpl_Initialize | 
|---|
| 2535 | ( LPDIRECTPLAY2 iface, LPGUID a ) | 
|---|
| 2536 | { | 
|---|
| 2537 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2538 | FIXME("(%p)->(%p): stub", This, a ); | 
|---|
| 2539 | return DP_OK; | 
|---|
| 2540 | } | 
|---|
| 2541 |  | 
|---|
| 2542 |  | 
|---|
| 2543 | HRESULT WINAPI DirectPlay3A_Open | 
|---|
| 2544 | ( LPDIRECTPLAY3A iface, LPDPSESSIONDESC2 a, DWORD b ) | 
|---|
| 2545 | { | 
|---|
| 2546 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2547 | FIXME("(%p)->(%p,0x%08lx): stub", This, a, b ); | 
|---|
| 2548 | return DP_OK; | 
|---|
| 2549 | } | 
|---|
| 2550 |  | 
|---|
| 2551 | HRESULT WINAPI DirectPlay3WImpl_Open | 
|---|
| 2552 | ( LPDIRECTPLAY3 iface, LPDPSESSIONDESC2 a, DWORD b ) | 
|---|
| 2553 | { | 
|---|
| 2554 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2555 | FIXME("(%p)->(%p,0x%08lx): stub", This, a, b ); | 
|---|
| 2556 | return DP_OK; | 
|---|
| 2557 | } | 
|---|
| 2558 |  | 
|---|
| 2559 | HRESULT WINAPI DirectPlay2A_Open | 
|---|
| 2560 | ( LPDIRECTPLAY2A iface, LPDPSESSIONDESC2 a, DWORD b ) | 
|---|
| 2561 | { | 
|---|
| 2562 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2563 | FIXME("(%p)->(%p,0x%08lx): stub", This, a, b ); | 
|---|
| 2564 | return DP_OK; | 
|---|
| 2565 | } | 
|---|
| 2566 |  | 
|---|
| 2567 | HRESULT WINAPI DirectPlay2WImpl_Open | 
|---|
| 2568 | ( LPDIRECTPLAY2 iface, LPDPSESSIONDESC2 a, DWORD b ) | 
|---|
| 2569 | { | 
|---|
| 2570 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2571 | FIXME("(%p)->(%p,0x%08lx): stub", This, a, b ); | 
|---|
| 2572 | return DP_OK; | 
|---|
| 2573 | } | 
|---|
| 2574 |  | 
|---|
| 2575 | HRESULT WINAPI DirectPlay3A_Receive | 
|---|
| 2576 | ( LPDIRECTPLAY3A iface, LPDPID a, LPDPID b, DWORD c, LPVOID d, LPDWORD e ) | 
|---|
| 2577 | { | 
|---|
| 2578 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2579 | FIXME("(%p)->(%p,%p,0x%08lx,%p,%p): stub", This, a, b, c, d, e ); | 
|---|
| 2580 | return DP_OK; | 
|---|
| 2581 | } | 
|---|
| 2582 |  | 
|---|
| 2583 | HRESULT WINAPI DirectPlay3WImpl_Receive | 
|---|
| 2584 | ( LPDIRECTPLAY3 iface, LPDPID a, LPDPID b, DWORD c, LPVOID d, LPDWORD e ) | 
|---|
| 2585 | { | 
|---|
| 2586 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2587 | FIXME("(%p)->(%p,%p,0x%08lx,%p,%p): stub", This, a, b, c, d, e ); | 
|---|
| 2588 | return DP_OK; | 
|---|
| 2589 | } | 
|---|
| 2590 |  | 
|---|
| 2591 | HRESULT WINAPI DirectPlay2A_Receive | 
|---|
| 2592 | ( LPDIRECTPLAY2A iface, LPDPID a, LPDPID b, DWORD c, LPVOID d, LPDWORD e ) | 
|---|
| 2593 | { | 
|---|
| 2594 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2595 | FIXME("(%p)->(%p,%p,0x%08lx,%p,%p): stub", This, a, b, c, d, e ); | 
|---|
| 2596 | return DP_OK; | 
|---|
| 2597 | } | 
|---|
| 2598 |  | 
|---|
| 2599 | HRESULT WINAPI DirectPlay2WImpl_Receive | 
|---|
| 2600 | ( LPDIRECTPLAY2 iface, LPDPID a, LPDPID b, DWORD c, LPVOID d, LPDWORD e ) | 
|---|
| 2601 | { | 
|---|
| 2602 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2603 | FIXME("(%p)->(%p,%p,0x%08lx,%p,%p): stub", This, a, b, c, d, e ); | 
|---|
| 2604 | return DP_OK; | 
|---|
| 2605 | } | 
|---|
| 2606 |  | 
|---|
| 2607 | HRESULT WINAPI DirectPlay3A_Send | 
|---|
| 2608 | ( LPDIRECTPLAY3A iface, DPID a, DPID b, DWORD c, LPVOID d, DWORD e ) | 
|---|
| 2609 | { | 
|---|
| 2610 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2611 | FIXME("(%p)->(0x%08lx,0x%08lx,0x%08lx,%p,0x%08lx): stub", This, a, b, c, d, e ); | 
|---|
| 2612 | return DP_OK; | 
|---|
| 2613 | } | 
|---|
| 2614 |  | 
|---|
| 2615 | HRESULT WINAPI DirectPlay3WImpl_Send | 
|---|
| 2616 | ( LPDIRECTPLAY3 iface, DPID a, DPID b, DWORD c, LPVOID d, DWORD e ) | 
|---|
| 2617 | { | 
|---|
| 2618 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2619 | FIXME("(%p)->(0x%08lx,0x%08lx,0x%08lx,%p,0x%08lx): stub", This, a, b, c, d, e ); | 
|---|
| 2620 | return DP_OK; | 
|---|
| 2621 | } | 
|---|
| 2622 |  | 
|---|
| 2623 | HRESULT WINAPI DirectPlay2A_Send | 
|---|
| 2624 | ( LPDIRECTPLAY2A iface, DPID a, DPID b, DWORD c, LPVOID d, DWORD e ) | 
|---|
| 2625 | { | 
|---|
| 2626 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2627 | FIXME("(%p)->(0x%08lx,0x%08lx,0x%08lx,%p,0x%08lx): stub", This, a, b, c, d, e ); | 
|---|
| 2628 | return DP_OK; | 
|---|
| 2629 | } | 
|---|
| 2630 |  | 
|---|
| 2631 | HRESULT WINAPI DirectPlay2WImpl_Send | 
|---|
| 2632 | ( LPDIRECTPLAY2 iface, DPID a, DPID b, DWORD c, LPVOID d, DWORD e ) | 
|---|
| 2633 | { | 
|---|
| 2634 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2635 | FIXME("(%p)->(0x%08lx,0x%08lx,0x%08lx,%p,0x%08lx): stub", This, a, b, c, d, e ); | 
|---|
| 2636 | return DP_OK; | 
|---|
| 2637 | } | 
|---|
| 2638 |  | 
|---|
| 2639 | HRESULT WINAPI DirectPlay3A_SetGroupData | 
|---|
| 2640 | ( LPDIRECTPLAY3A iface, DPID a, LPVOID b, DWORD c, DWORD d ) | 
|---|
| 2641 | { | 
|---|
| 2642 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2643 | FIXME("(%p)->(0x%08lx,%p,0x%08lx,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2644 | return DP_OK; | 
|---|
| 2645 | } | 
|---|
| 2646 |  | 
|---|
| 2647 | HRESULT WINAPI DirectPlay3WImpl_SetGroupData | 
|---|
| 2648 | ( LPDIRECTPLAY3 iface, DPID a, LPVOID b, DWORD c, DWORD d ) | 
|---|
| 2649 | { | 
|---|
| 2650 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2651 | FIXME("(%p)->(0x%08lx,%p,0x%08lx,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2652 | return DP_OK; | 
|---|
| 2653 | } | 
|---|
| 2654 |  | 
|---|
| 2655 | HRESULT WINAPI DirectPlay2A_SetGroupData | 
|---|
| 2656 | ( LPDIRECTPLAY2A iface, DPID a, LPVOID b, DWORD c, DWORD d ) | 
|---|
| 2657 | { | 
|---|
| 2658 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2659 | FIXME("(%p)->(0x%08lx,%p,0x%08lx,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2660 | return DP_OK; | 
|---|
| 2661 | } | 
|---|
| 2662 |  | 
|---|
| 2663 | HRESULT WINAPI DirectPlay2WImpl_SetGroupData | 
|---|
| 2664 | ( LPDIRECTPLAY2 iface, DPID a, LPVOID b, DWORD c, DWORD d ) | 
|---|
| 2665 | { | 
|---|
| 2666 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2667 | FIXME("(%p)->(0x%08lx,%p,0x%08lx,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2668 | return DP_OK; | 
|---|
| 2669 | } | 
|---|
| 2670 |  | 
|---|
| 2671 | HRESULT WINAPI DirectPlay3A_SetGroupName | 
|---|
| 2672 | ( LPDIRECTPLAY3A iface, DPID a, LPDPNAME b, DWORD c ) | 
|---|
| 2673 | { | 
|---|
| 2674 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2675 | FIXME("(%p)->(0x%08lx,%p,0x%08lx): stub", This, a, b, c ); | 
|---|
| 2676 | return DP_OK; | 
|---|
| 2677 | } | 
|---|
| 2678 |  | 
|---|
| 2679 | HRESULT WINAPI DirectPlay3WImpl_SetGroupName | 
|---|
| 2680 | ( LPDIRECTPLAY3 iface, DPID a, LPDPNAME b, DWORD c ) | 
|---|
| 2681 | { | 
|---|
| 2682 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2683 | FIXME("(%p)->(0x%08lx,%p,0x%08lx): stub", This, a, b, c ); | 
|---|
| 2684 | return DP_OK; | 
|---|
| 2685 | } | 
|---|
| 2686 |  | 
|---|
| 2687 | HRESULT WINAPI DirectPlay2A_SetGroupName | 
|---|
| 2688 | ( LPDIRECTPLAY2A iface, DPID a, LPDPNAME b, DWORD c ) | 
|---|
| 2689 | { | 
|---|
| 2690 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2691 | FIXME("(%p)->(0x%08lx,%p,0x%08lx): stub", This, a, b, c ); | 
|---|
| 2692 | return DP_OK; | 
|---|
| 2693 | } | 
|---|
| 2694 |  | 
|---|
| 2695 | HRESULT WINAPI DirectPlay2WImpl_SetGroupName | 
|---|
| 2696 | ( LPDIRECTPLAY2 iface, DPID a, LPDPNAME b, DWORD c ) | 
|---|
| 2697 | { | 
|---|
| 2698 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2699 | FIXME("(%p)->(0x%08lx,%p,0x%08lx): stub", This, a, b, c ); | 
|---|
| 2700 | return DP_OK; | 
|---|
| 2701 | } | 
|---|
| 2702 |  | 
|---|
| 2703 | HRESULT WINAPI DirectPlay3A_SetPlayerData | 
|---|
| 2704 | ( LPDIRECTPLAY3A iface, DPID a, LPVOID b, DWORD c, DWORD d ) | 
|---|
| 2705 | { | 
|---|
| 2706 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2707 | FIXME("(%p)->(0x%08lx,%p,0x%08lx,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2708 | return DP_OK; | 
|---|
| 2709 | } | 
|---|
| 2710 |  | 
|---|
| 2711 | HRESULT WINAPI DirectPlay3WImpl_SetPlayerData | 
|---|
| 2712 | ( LPDIRECTPLAY3 iface, DPID a, LPVOID b, DWORD c, DWORD d ) | 
|---|
| 2713 | { | 
|---|
| 2714 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2715 | FIXME("(%p)->(0x%08lx,%p,0x%08lx,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2716 | return DP_OK; | 
|---|
| 2717 | } | 
|---|
| 2718 |  | 
|---|
| 2719 | HRESULT WINAPI DirectPlay2A_SetPlayerData | 
|---|
| 2720 | ( LPDIRECTPLAY2A iface, DPID a, LPVOID b, DWORD c, DWORD d ) | 
|---|
| 2721 | { | 
|---|
| 2722 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2723 | FIXME("(%p)->(0x%08lx,%p,0x%08lx,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2724 | return DP_OK; | 
|---|
| 2725 | } | 
|---|
| 2726 |  | 
|---|
| 2727 | HRESULT WINAPI DirectPlay2WImpl_SetPlayerData | 
|---|
| 2728 | ( LPDIRECTPLAY2 iface, DPID a, LPVOID b, DWORD c, DWORD d ) | 
|---|
| 2729 | { | 
|---|
| 2730 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2731 | FIXME("(%p)->(0x%08lx,%p,0x%08lx,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2732 | return DP_OK; | 
|---|
| 2733 | } | 
|---|
| 2734 |  | 
|---|
| 2735 | HRESULT WINAPI DirectPlay3A_SetPlayerName | 
|---|
| 2736 | ( LPDIRECTPLAY3A iface, DPID a, LPDPNAME b, DWORD c ) | 
|---|
| 2737 | { | 
|---|
| 2738 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2739 | FIXME("(%p)->(0x%08lx,%p,0x%08lx): stub", This, a, b, c ); | 
|---|
| 2740 | return DP_OK; | 
|---|
| 2741 | } | 
|---|
| 2742 |  | 
|---|
| 2743 | HRESULT WINAPI DirectPlay3WImpl_SetPlayerName | 
|---|
| 2744 | ( LPDIRECTPLAY3 iface, DPID a, LPDPNAME b, DWORD c ) | 
|---|
| 2745 | { | 
|---|
| 2746 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2747 | FIXME("(%p)->(0x%08lx,%p,0x%08lx): stub", This, a, b, c ); | 
|---|
| 2748 | return DP_OK; | 
|---|
| 2749 | } | 
|---|
| 2750 |  | 
|---|
| 2751 | HRESULT WINAPI DirectPlay2A_SetPlayerName | 
|---|
| 2752 | ( LPDIRECTPLAY2A iface, DPID a, LPDPNAME b, DWORD c ) | 
|---|
| 2753 | { | 
|---|
| 2754 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2755 | FIXME("(%p)->(0x%08lx,%p,0x%08lx): stub", This, a, b, c ); | 
|---|
| 2756 | return DP_OK; | 
|---|
| 2757 | } | 
|---|
| 2758 |  | 
|---|
| 2759 | HRESULT WINAPI DirectPlay2WImpl_SetPlayerName | 
|---|
| 2760 | ( LPDIRECTPLAY2 iface, DPID a, LPDPNAME b, DWORD c ) | 
|---|
| 2761 | { | 
|---|
| 2762 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2763 | FIXME("(%p)->(0x%08lx,%p,0x%08lx): stub", This, a, b, c ); | 
|---|
| 2764 | return DP_OK; | 
|---|
| 2765 | } | 
|---|
| 2766 |  | 
|---|
| 2767 | HRESULT WINAPI DirectPlay3A_SetSessionDesc | 
|---|
| 2768 | ( LPDIRECTPLAY3A iface, LPDPSESSIONDESC2 a, DWORD b ) | 
|---|
| 2769 | { | 
|---|
| 2770 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2771 | FIXME("(%p)->(%p,0x%08lx): stub", This, a, b ); | 
|---|
| 2772 | return DP_OK; | 
|---|
| 2773 | } | 
|---|
| 2774 |  | 
|---|
| 2775 | HRESULT WINAPI DirectPlay3WImpl_SetSessionDesc | 
|---|
| 2776 | ( LPDIRECTPLAY3 iface, LPDPSESSIONDESC2 a, DWORD b ) | 
|---|
| 2777 | { | 
|---|
| 2778 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2779 | FIXME("(%p)->(%p,0x%08lx): stub", This, a, b ); | 
|---|
| 2780 | return DP_OK; | 
|---|
| 2781 | } | 
|---|
| 2782 |  | 
|---|
| 2783 | HRESULT WINAPI DirectPlay2A_SetSessionDesc | 
|---|
| 2784 | ( LPDIRECTPLAY2A iface, LPDPSESSIONDESC2 a, DWORD b ) | 
|---|
| 2785 | { | 
|---|
| 2786 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2787 | FIXME("(%p)->(%p,0x%08lx): stub", This, a, b ); | 
|---|
| 2788 | return DP_OK; | 
|---|
| 2789 | } | 
|---|
| 2790 |  | 
|---|
| 2791 | HRESULT WINAPI DirectPlay2WImpl_SetSessionDesc | 
|---|
| 2792 | ( LPDIRECTPLAY2 iface, LPDPSESSIONDESC2 a, DWORD b ) | 
|---|
| 2793 | { | 
|---|
| 2794 | ICOM_THIS(IDirectPlay2Impl,iface); | 
|---|
| 2795 | FIXME("(%p)->(%p,0x%08lx): stub", This, a, b ); | 
|---|
| 2796 | return DP_OK; | 
|---|
| 2797 | } | 
|---|
| 2798 |  | 
|---|
| 2799 | HRESULT WINAPI DirectPlay3A_AddGroupToGroup | 
|---|
| 2800 | ( LPDIRECTPLAY3A iface, DPID a, DPID b ) | 
|---|
| 2801 | { | 
|---|
| 2802 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2803 | FIXME("(%p)->(0x%08lx,0x%08lx): stub", This, a, b ); | 
|---|
| 2804 | return DP_OK; | 
|---|
| 2805 | } | 
|---|
| 2806 |  | 
|---|
| 2807 | HRESULT WINAPI DirectPlay3WImpl_AddGroupToGroup | 
|---|
| 2808 | ( LPDIRECTPLAY3 iface, DPID a, DPID b ) | 
|---|
| 2809 | { | 
|---|
| 2810 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2811 | FIXME("(%p)->(0x%08lx,0x%08lx): stub", This, a, b ); | 
|---|
| 2812 | return DP_OK; | 
|---|
| 2813 | } | 
|---|
| 2814 |  | 
|---|
| 2815 | HRESULT WINAPI DirectPlay3A_CreateGroupInGroup | 
|---|
| 2816 | ( LPDIRECTPLAY3A iface, DPID a, LPDPID b, LPDPNAME c, LPVOID d, DWORD e, DWORD f ) | 
|---|
| 2817 | { | 
|---|
| 2818 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2819 | FIXME("(%p)->(0x%08lx,%p,%p,%p,0x%08lx,0x%08lx): stub", This, a, b, c, d, e, f ); | 
|---|
| 2820 | return DP_OK; | 
|---|
| 2821 | } | 
|---|
| 2822 |  | 
|---|
| 2823 | HRESULT WINAPI DirectPlay3WImpl_CreateGroupInGroup | 
|---|
| 2824 | ( LPDIRECTPLAY3 iface, DPID a, LPDPID b, LPDPNAME c, LPVOID d, DWORD e, DWORD f ) | 
|---|
| 2825 | { | 
|---|
| 2826 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2827 | FIXME("(%p)->(0x%08lx,%p,%p,%p,0x%08lx,0x%08lx): stub", This, a, b, c, d, e, f ); | 
|---|
| 2828 | return DP_OK; | 
|---|
| 2829 | } | 
|---|
| 2830 |  | 
|---|
| 2831 | HRESULT WINAPI DirectPlay3A_DeleteGroupFromGroup | 
|---|
| 2832 | ( LPDIRECTPLAY3A iface, DPID a, DPID b ) | 
|---|
| 2833 | { | 
|---|
| 2834 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2835 | FIXME("(%p)->(0x%08lx,0x%08lx): stub", This, a, b ); | 
|---|
| 2836 | return DP_OK; | 
|---|
| 2837 | } | 
|---|
| 2838 |  | 
|---|
| 2839 | HRESULT WINAPI DirectPlay3WImpl_DeleteGroupFromGroup | 
|---|
| 2840 | ( LPDIRECTPLAY3 iface, DPID a, DPID b ) | 
|---|
| 2841 | { | 
|---|
| 2842 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2843 | FIXME("(%p)->(0x%08lx,0x%08lx): stub", This, a, b ); | 
|---|
| 2844 | return DP_OK; | 
|---|
| 2845 | } | 
|---|
| 2846 |  | 
|---|
| 2847 | HRESULT WINAPI DirectPlay3A_EnumConnections | 
|---|
| 2848 | ( LPDIRECTPLAY3A iface, LPCGUID a, LPDPENUMCONNECTIONSCALLBACK b, LPVOID c, DWORD d ) | 
|---|
| 2849 | { | 
|---|
| 2850 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2851 | FIXME("(%p)->(%p,%p,%p,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2852 | return DP_OK; | 
|---|
| 2853 | } | 
|---|
| 2854 |  | 
|---|
| 2855 | HRESULT WINAPI DirectPlay3WImpl_EnumConnections | 
|---|
| 2856 | ( LPDIRECTPLAY3 iface, LPCGUID a, LPDPENUMCONNECTIONSCALLBACK b, LPVOID c, DWORD d ) | 
|---|
| 2857 | { | 
|---|
| 2858 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2859 | FIXME("(%p)->(%p,%p,%p,0x%08lx): stub", This, a, b, c, d ); | 
|---|
| 2860 | return DP_OK; | 
|---|
| 2861 | } | 
|---|
| 2862 |  | 
|---|
| 2863 | HRESULT WINAPI DirectPlay3A_EnumGroupsInGroup | 
|---|
| 2864 | ( LPDIRECTPLAY3A iface, DPID a, LPGUID b, LPDPENUMPLAYERSCALLBACK2 c, LPVOID d, DWORD e ) | 
|---|
| 2865 | { | 
|---|
| 2866 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2867 | FIXME("(%p)->(0x%08lx,%p,%p,%p,0x%08lx): stub", This, a, b, c, d, e ); | 
|---|
| 2868 | return DP_OK; | 
|---|
| 2869 | } | 
|---|
| 2870 |  | 
|---|
| 2871 | HRESULT WINAPI DirectPlay3WImpl_EnumGroupsInGroup | 
|---|
| 2872 | ( LPDIRECTPLAY3 iface, DPID a, LPGUID b, LPDPENUMPLAYERSCALLBACK2 c, LPVOID d, DWORD e ) | 
|---|
| 2873 | { | 
|---|
| 2874 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2875 | FIXME("(%p)->(0x%08lx,%p,%p,%p,0x%08lx): stub", This, a, b, c, d, e ); | 
|---|
| 2876 | return DP_OK; | 
|---|
| 2877 | } | 
|---|
| 2878 |  | 
|---|
| 2879 |  | 
|---|
| 2880 | HRESULT WINAPI DirectPlay3A_GetGroupConnectionSettings | 
|---|
| 2881 | ( LPDIRECTPLAY3A iface, DWORD a, DPID b, LPVOID c, LPDWORD d ) | 
|---|
| 2882 | { | 
|---|
| 2883 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2884 | FIXME("(%p)->(0x%08lx,0x%08lx,%p,%p): stub", This, a, b, c, d ); | 
|---|
| 2885 | return DP_OK; | 
|---|
| 2886 | } | 
|---|
| 2887 |  | 
|---|
| 2888 | HRESULT WINAPI DirectPlay3WImpl_GetGroupConnectionSettings | 
|---|
| 2889 | ( LPDIRECTPLAY3 iface, DWORD a, DPID b, LPVOID c, LPDWORD d ) | 
|---|
| 2890 | { | 
|---|
| 2891 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2892 | FIXME("(%p)->(0x%08lx,0x%08lx,%p,%p): stub", This, a, b, c, d ); | 
|---|
| 2893 | return DP_OK; | 
|---|
| 2894 | } | 
|---|
| 2895 |  | 
|---|
| 2896 | HRESULT WINAPI DirectPlay3A_InitializeConnection | 
|---|
| 2897 | ( LPDIRECTPLAY3A iface, LPVOID a, DWORD b ) | 
|---|
| 2898 | { | 
|---|
| 2899 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2900 | FIXME("(%p)->(%p,0x%08lx): stub", This, a, b ); | 
|---|
| 2901 | return DP_OK; | 
|---|
| 2902 | } | 
|---|
| 2903 |  | 
|---|
| 2904 | HRESULT WINAPI DirectPlay3WImpl_InitializeConnection | 
|---|
| 2905 | ( LPDIRECTPLAY3 iface, LPVOID a, DWORD b ) | 
|---|
| 2906 | { | 
|---|
| 2907 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2908 | FIXME("(%p)->(%p,0x%08lx): stub", This, a, b ); | 
|---|
| 2909 | return DP_OK; | 
|---|
| 2910 | } | 
|---|
| 2911 |  | 
|---|
| 2912 | HRESULT WINAPI DirectPlay3A_SecureOpen | 
|---|
| 2913 | ( LPDIRECTPLAY3A iface, LPCDPSESSIONDESC2 a, DWORD b, LPCDPSECURITYDESC c, LPCDPCREDENTIALS d ) | 
|---|
| 2914 | { | 
|---|
| 2915 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2916 | FIXME("(%p)->(%p,0x%08lx,%p,%p): stub", This, a, b, c, d ); | 
|---|
| 2917 | return DP_OK; | 
|---|
| 2918 | } | 
|---|
| 2919 |  | 
|---|
| 2920 | HRESULT WINAPI DirectPlay3WImpl_SecureOpen | 
|---|
| 2921 | ( LPDIRECTPLAY3 iface, LPCDPSESSIONDESC2 a, DWORD b, LPCDPSECURITYDESC c, LPCDPCREDENTIALS d ) | 
|---|
| 2922 | { | 
|---|
| 2923 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2924 | FIXME("(%p)->(%p,0x%08lx,%p,%p): stub", This, a, b, c, d ); | 
|---|
| 2925 | return DP_OK; | 
|---|
| 2926 | } | 
|---|
| 2927 |  | 
|---|
| 2928 | HRESULT WINAPI DirectPlay3A_SendChatMessage | 
|---|
| 2929 | ( LPDIRECTPLAY3A iface, DPID a, DPID b, DWORD c, LPDPCHAT d ) | 
|---|
| 2930 | { | 
|---|
| 2931 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2932 | FIXME("(%p)->(0x%08lx,0x%08lx,0x%08lx,%p): stub", This, a, b, c, d ); | 
|---|
| 2933 | return DP_OK; | 
|---|
| 2934 | } | 
|---|
| 2935 |  | 
|---|
| 2936 | HRESULT WINAPI DirectPlay3WImpl_SendChatMessage | 
|---|
| 2937 | ( LPDIRECTPLAY3 iface, DPID a, DPID b, DWORD c, LPDPCHAT d ) | 
|---|
| 2938 | { | 
|---|
| 2939 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2940 | FIXME("(%p)->(0x%08lx,0x%08lx,0x%08lx,%p): stub", This, a, b, c, d ); | 
|---|
| 2941 | return DP_OK; | 
|---|
| 2942 | } | 
|---|
| 2943 |  | 
|---|
| 2944 | HRESULT WINAPI DirectPlay3A_SetGroupConnectionSettings | 
|---|
| 2945 | ( LPDIRECTPLAY3A iface, DWORD a, DPID b, LPDPLCONNECTION c ) | 
|---|
| 2946 | { | 
|---|
| 2947 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2948 | FIXME("(%p)->(0x%08lx,0x%08lx,%p): stub", This, a, b, c ); | 
|---|
| 2949 | return DP_OK; | 
|---|
| 2950 | } | 
|---|
| 2951 |  | 
|---|
| 2952 | HRESULT WINAPI DirectPlay3WImpl_SetGroupConnectionSettings | 
|---|
| 2953 | ( LPDIRECTPLAY3 iface, DWORD a, DPID b, LPDPLCONNECTION c ) | 
|---|
| 2954 | { | 
|---|
| 2955 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2956 | FIXME("(%p)->(0x%08lx,0x%08lx,%p): stub", This, a, b, c ); | 
|---|
| 2957 | return DP_OK; | 
|---|
| 2958 | } | 
|---|
| 2959 |  | 
|---|
| 2960 | HRESULT WINAPI DirectPlay3A_StartSession | 
|---|
| 2961 | ( LPDIRECTPLAY3A iface, DWORD a, DPID b ) | 
|---|
| 2962 | { | 
|---|
| 2963 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2964 | FIXME("(%p)->(0x%08lx,0x%08lx): stub", This, a, b ); | 
|---|
| 2965 | return DP_OK; | 
|---|
| 2966 | } | 
|---|
| 2967 |  | 
|---|
| 2968 | HRESULT WINAPI DirectPlay3WImpl_StartSession | 
|---|
| 2969 | ( LPDIRECTPLAY3 iface, DWORD a, DPID b ) | 
|---|
| 2970 | { | 
|---|
| 2971 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2972 | FIXME("(%p)->(0x%08lx,0x%08lx): stub", This, a, b ); | 
|---|
| 2973 | return DP_OK; | 
|---|
| 2974 | } | 
|---|
| 2975 |  | 
|---|
| 2976 | HRESULT WINAPI DirectPlay3A_GetGroupFlags | 
|---|
| 2977 | ( LPDIRECTPLAY3A iface, DPID a, LPDWORD b ) | 
|---|
| 2978 | { | 
|---|
| 2979 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2980 | FIXME("(%p)->(0x%08lx,%p): stub", This, a, b ); | 
|---|
| 2981 | return DP_OK; | 
|---|
| 2982 | } | 
|---|
| 2983 |  | 
|---|
| 2984 | HRESULT WINAPI DirectPlay3WImpl_GetGroupFlags | 
|---|
| 2985 | ( LPDIRECTPLAY3 iface, DPID a, LPDWORD b ) | 
|---|
| 2986 | { | 
|---|
| 2987 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2988 | FIXME("(%p)->(0x%08lx,%p): stub", This, a, b ); | 
|---|
| 2989 | return DP_OK; | 
|---|
| 2990 | } | 
|---|
| 2991 |  | 
|---|
| 2992 | HRESULT WINAPI DirectPlay3A_GetGroupParent | 
|---|
| 2993 | ( LPDIRECTPLAY3A iface, DPID a, LPDPID b ) | 
|---|
| 2994 | { | 
|---|
| 2995 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 2996 | FIXME("(%p)->(0x%08lx,%p): stub", This, a, b ); | 
|---|
| 2997 | return DP_OK; | 
|---|
| 2998 | } | 
|---|
| 2999 |  | 
|---|
| 3000 | HRESULT WINAPI DirectPlay3WImpl_GetGroupParent | 
|---|
| 3001 | ( LPDIRECTPLAY3 iface, DPID a, LPDPID b ) | 
|---|
| 3002 | { | 
|---|
| 3003 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 3004 | FIXME("(%p)->(0x%08lx,%p): stub", This, a, b ); | 
|---|
| 3005 | return DP_OK; | 
|---|
| 3006 | } | 
|---|
| 3007 |  | 
|---|
| 3008 | HRESULT WINAPI DirectPlay3A_GetPlayerAccount | 
|---|
| 3009 | ( LPDIRECTPLAY3A iface, DPID a, DWORD b, LPVOID c, LPDWORD d ) | 
|---|
| 3010 | { | 
|---|
| 3011 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 3012 | FIXME("(%p)->(0x%08lx,0x%08lx,%p,%p): stub", This, a, b, c, d ); | 
|---|
| 3013 | return DP_OK; | 
|---|
| 3014 | } | 
|---|
| 3015 |  | 
|---|
| 3016 | HRESULT WINAPI DirectPlay3WImpl_GetPlayerAccount | 
|---|
| 3017 | ( LPDIRECTPLAY3 iface, DPID a, DWORD b, LPVOID c, LPDWORD d ) | 
|---|
| 3018 | { | 
|---|
| 3019 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 3020 | FIXME("(%p)->(0x%08lx,0x%08lx,%p,%p): stub", This, a, b, c, d ); | 
|---|
| 3021 | return DP_OK; | 
|---|
| 3022 | } | 
|---|
| 3023 |  | 
|---|
| 3024 | HRESULT WINAPI DirectPlay3A_GetPlayerFlags | 
|---|
| 3025 | ( LPDIRECTPLAY3A iface, DPID a, LPDWORD b ) | 
|---|
| 3026 | { | 
|---|
| 3027 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 3028 | FIXME("(%p)->(0x%08lx,%p): stub", This, a, b ); | 
|---|
| 3029 | return DP_OK; | 
|---|
| 3030 | } | 
|---|
| 3031 |  | 
|---|
| 3032 | HRESULT WINAPI DirectPlay3WImpl_GetPlayerFlags | 
|---|
| 3033 | ( LPDIRECTPLAY3 iface, DPID a, LPDWORD b ) | 
|---|
| 3034 | { | 
|---|
| 3035 | ICOM_THIS(IDirectPlay3Impl,iface); | 
|---|
| 3036 | FIXME("(%p)->(0x%08lx,%p): stub", This, a, b ); | 
|---|
| 3037 | return DP_OK; | 
|---|
| 3038 | } | 
|---|
| 3039 |  | 
|---|
| 3040 |  | 
|---|
| 3041 | ICOM_VTABLE(IDirectPlay2) directPlay2WVT = | 
|---|
| 3042 | { | 
|---|
| 3043 | ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE | 
|---|
| 3044 | DirectPlay2W_QueryInterface, | 
|---|
| 3045 | DirectPlay2WImpl_AddRef, | 
|---|
| 3046 | DirectPlay2WImpl_Release, | 
|---|
| 3047 | DirectPlay2WImpl_AddPlayerToGroup, | 
|---|
| 3048 | DirectPlay2WImpl_Close, | 
|---|
| 3049 | DirectPlay2WImpl_CreateGroup, | 
|---|
| 3050 | DirectPlay2WImpl_CreatePlayer, | 
|---|
| 3051 | DirectPlay2WImpl_DeletePlayerFromGroup, | 
|---|
| 3052 | DirectPlay2WImpl_DestroyGroup, | 
|---|
| 3053 | DirectPlay2WImpl_DestroyPlayer, | 
|---|
| 3054 | DirectPlay2WImpl_EnumGroupPlayers, | 
|---|
| 3055 | DirectPlay2WImpl_EnumGroups, | 
|---|
| 3056 | DirectPlay2WImpl_EnumPlayers, | 
|---|
| 3057 | DirectPlay2WImpl_EnumSessions, | 
|---|
| 3058 | DirectPlay2WImpl_GetCaps, | 
|---|
| 3059 | DirectPlay2WImpl_GetGroupData, | 
|---|
| 3060 | DirectPlay2WImpl_GetGroupName, | 
|---|
| 3061 | DirectPlay2WImpl_GetMessageCount, | 
|---|
| 3062 | DirectPlay2WImpl_GetPlayerAddress, | 
|---|
| 3063 | DirectPlay2WImpl_GetPlayerCaps, | 
|---|
| 3064 | DirectPlay2WImpl_GetPlayerData, | 
|---|
| 3065 | DirectPlay2WImpl_GetPlayerName, | 
|---|
| 3066 | DirectPlay2WImpl_GetSessionDesc, | 
|---|
| 3067 | DirectPlay2WImpl_Initialize, | 
|---|
| 3068 | DirectPlay2WImpl_Open, | 
|---|
| 3069 | DirectPlay2WImpl_Receive, | 
|---|
| 3070 | DirectPlay2WImpl_Send, | 
|---|
| 3071 | DirectPlay2WImpl_SetGroupData, | 
|---|
| 3072 | DirectPlay2WImpl_SetGroupName, | 
|---|
| 3073 | DirectPlay2WImpl_SetPlayerData, | 
|---|
| 3074 | DirectPlay2WImpl_SetPlayerName, | 
|---|
| 3075 | DirectPlay2WImpl_SetSessionDesc | 
|---|
| 3076 | }; | 
|---|
| 3077 |  | 
|---|
| 3078 |  | 
|---|
| 3079 | ICOM_VTABLE(IDirectPlay2) directPlay2AVT = | 
|---|
| 3080 | { | 
|---|
| 3081 | ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE | 
|---|
| 3082 | DirectPlay2A_QueryInterface, | 
|---|
| 3083 | DirectPlay2WImpl_AddRef, //??? | 
|---|
| 3084 | DirectPlay2A_Release, | 
|---|
| 3085 | DirectPlay2A_AddPlayerToGroup, | 
|---|
| 3086 | DirectPlay2A_Close, | 
|---|
| 3087 | DirectPlay2A_CreateGroup, | 
|---|
| 3088 | DirectPlay2A_CreatePlayer, | 
|---|
| 3089 | DirectPlay2A_DeletePlayerFromGroup, | 
|---|
| 3090 | DirectPlay2A_DestroyGroup, | 
|---|
| 3091 | DirectPlay2A_DestroyPlayer, | 
|---|
| 3092 | DirectPlay2A_EnumGroupPlayers, | 
|---|
| 3093 | DirectPlay2A_EnumGroups, | 
|---|
| 3094 | DirectPlay2A_EnumPlayers, | 
|---|
| 3095 | DirectPlay2A_EnumSessions, | 
|---|
| 3096 | DirectPlay2A_GetCaps, | 
|---|
| 3097 | DirectPlay2A_GetGroupData, | 
|---|
| 3098 | DirectPlay2A_GetGroupName, | 
|---|
| 3099 | DirectPlay2A_GetMessageCount, | 
|---|
| 3100 | DirectPlay2A_GetPlayerAddress, | 
|---|
| 3101 | DirectPlay2A_GetPlayerCaps, | 
|---|
| 3102 | DirectPlay2A_GetPlayerData, | 
|---|
| 3103 | DirectPlay2A_GetPlayerName, | 
|---|
| 3104 | DirectPlay2A_GetSessionDesc, | 
|---|
| 3105 | DirectPlay2A_Initialize, | 
|---|
| 3106 | DirectPlay2A_Open, | 
|---|
| 3107 | DirectPlay2A_Receive, | 
|---|
| 3108 | DirectPlay2A_Send, | 
|---|
| 3109 | DirectPlay2A_SetGroupData, | 
|---|
| 3110 | DirectPlay2A_SetGroupName, | 
|---|
| 3111 | DirectPlay2A_SetPlayerData, | 
|---|
| 3112 | DirectPlay2A_SetPlayerName, | 
|---|
| 3113 | DirectPlay2A_SetSessionDesc | 
|---|
| 3114 | }; | 
|---|
| 3115 |  | 
|---|
| 3116 |  | 
|---|
| 3117 | ICOM_VTABLE(IDirectPlay3) directPlay3AVT = | 
|---|
| 3118 | { | 
|---|
| 3119 | ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE | 
|---|
| 3120 | DirectPlay3A_QueryInterface, | 
|---|
| 3121 | DirectPlay3WImpl_AddRef, | 
|---|
| 3122 | DirectPlay3A_Release, | 
|---|
| 3123 | DirectPlay3A_AddPlayerToGroup, | 
|---|
| 3124 | DirectPlay3A_Close, | 
|---|
| 3125 | DirectPlay3A_CreateGroup, | 
|---|
| 3126 | DirectPlay3A_CreatePlayer, | 
|---|
| 3127 | DirectPlay3A_DeletePlayerFromGroup, | 
|---|
| 3128 | DirectPlay3A_DestroyGroup, | 
|---|
| 3129 | DirectPlay3A_DestroyPlayer, | 
|---|
| 3130 | DirectPlay3A_EnumGroupPlayers, | 
|---|
| 3131 | DirectPlay3A_EnumGroups, | 
|---|
| 3132 | DirectPlay3A_EnumPlayers, | 
|---|
| 3133 | DirectPlay3A_EnumSessions, | 
|---|
| 3134 | DirectPlay3A_GetCaps, | 
|---|
| 3135 | DirectPlay3A_GetGroupData, | 
|---|
| 3136 | DirectPlay3A_GetGroupName, | 
|---|
| 3137 | DirectPlay3A_GetMessageCount, | 
|---|
| 3138 | DirectPlay3A_GetPlayerAddress, | 
|---|
| 3139 | DirectPlay3A_GetPlayerCaps, | 
|---|
| 3140 | DirectPlay3A_GetPlayerData, | 
|---|
| 3141 | DirectPlay3A_GetPlayerName, | 
|---|
| 3142 | DirectPlay3A_GetSessionDesc, | 
|---|
| 3143 | DirectPlay3A_Initialize, | 
|---|
| 3144 | DirectPlay3A_Open, | 
|---|
| 3145 | DirectPlay3A_Receive, | 
|---|
| 3146 | DirectPlay3A_Send, | 
|---|
| 3147 | DirectPlay3A_SetGroupData, | 
|---|
| 3148 | DirectPlay3A_SetGroupName, | 
|---|
| 3149 | DirectPlay3A_SetPlayerData, | 
|---|
| 3150 | DirectPlay3A_SetPlayerName, | 
|---|
| 3151 | DirectPlay3A_SetSessionDesc, | 
|---|
| 3152 |  | 
|---|
| 3153 | DirectPlay3A_AddGroupToGroup, | 
|---|
| 3154 | DirectPlay3A_CreateGroupInGroup, | 
|---|
| 3155 | DirectPlay3A_DeleteGroupFromGroup, | 
|---|
| 3156 | DirectPlay3A_EnumConnections, | 
|---|
| 3157 | DirectPlay3A_EnumGroupsInGroup, | 
|---|
| 3158 | DirectPlay3A_GetGroupConnectionSettings, | 
|---|
| 3159 | DirectPlay3A_InitializeConnection, | 
|---|
| 3160 | DirectPlay3A_SecureOpen, | 
|---|
| 3161 | DirectPlay3A_SendChatMessage, | 
|---|
| 3162 | DirectPlay3A_SetGroupConnectionSettings, | 
|---|
| 3163 | DirectPlay3A_StartSession, | 
|---|
| 3164 | DirectPlay3A_GetGroupFlags, | 
|---|
| 3165 | DirectPlay3A_GetGroupParent, | 
|---|
| 3166 | DirectPlay3A_GetPlayerAccount, | 
|---|
| 3167 | DirectPlay3A_GetPlayerFlags | 
|---|
| 3168 | }; | 
|---|
| 3169 |  | 
|---|
| 3170 | ICOM_VTABLE(IDirectPlay3) directPlay3WVT = | 
|---|
| 3171 | { | 
|---|
| 3172 | ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE | 
|---|
| 3173 | DirectPlay3WImpl_QueryInterface, | 
|---|
| 3174 | DirectPlay3WImpl_AddRef, | 
|---|
| 3175 | DirectPlay3WImpl_Release, | 
|---|
| 3176 | DirectPlay3WImpl_AddPlayerToGroup, | 
|---|
| 3177 | DirectPlay3WImpl_Close, | 
|---|
| 3178 | DirectPlay3WImpl_CreateGroup, | 
|---|
| 3179 | DirectPlay3WImpl_CreatePlayer, | 
|---|
| 3180 | DirectPlay3WImpl_DeletePlayerFromGroup, | 
|---|
| 3181 | DirectPlay3WImpl_DestroyGroup, | 
|---|
| 3182 | DirectPlay3WImpl_DestroyPlayer, | 
|---|
| 3183 | DirectPlay3WImpl_EnumGroupPlayers, | 
|---|
| 3184 | DirectPlay3WImpl_EnumGroups, | 
|---|
| 3185 | DirectPlay3WImpl_EnumPlayers, | 
|---|
| 3186 | DirectPlay3WImpl_EnumSessions, | 
|---|
| 3187 | DirectPlay3WImpl_GetCaps, | 
|---|
| 3188 | DirectPlay3WImpl_GetGroupData, | 
|---|
| 3189 | DirectPlay3WImpl_GetGroupName, | 
|---|
| 3190 | DirectPlay3WImpl_GetMessageCount, | 
|---|
| 3191 | DirectPlay3WImpl_GetPlayerAddress, | 
|---|
| 3192 | DirectPlay3WImpl_GetPlayerCaps, | 
|---|
| 3193 | DirectPlay3WImpl_GetPlayerData, | 
|---|
| 3194 | DirectPlay3WImpl_GetPlayerName, | 
|---|
| 3195 | DirectPlay3WImpl_GetSessionDesc, | 
|---|
| 3196 | DirectPlay3WImpl_Initialize, | 
|---|
| 3197 | DirectPlay3WImpl_Open, | 
|---|
| 3198 | DirectPlay3WImpl_Receive, | 
|---|
| 3199 | DirectPlay3WImpl_Send, | 
|---|
| 3200 | DirectPlay3WImpl_SetGroupData, | 
|---|
| 3201 | DirectPlay3WImpl_SetGroupName, | 
|---|
| 3202 | DirectPlay3WImpl_SetPlayerData, | 
|---|
| 3203 | DirectPlay3WImpl_SetPlayerName, | 
|---|
| 3204 | DirectPlay3WImpl_SetSessionDesc, | 
|---|
| 3205 |  | 
|---|
| 3206 | DirectPlay3WImpl_AddGroupToGroup, | 
|---|
| 3207 | DirectPlay3WImpl_CreateGroupInGroup, | 
|---|
| 3208 | DirectPlay3WImpl_DeleteGroupFromGroup, | 
|---|
| 3209 | DirectPlay3WImpl_EnumConnections, | 
|---|
| 3210 | DirectPlay3WImpl_EnumGroupsInGroup, | 
|---|
| 3211 | DirectPlay3WImpl_GetGroupConnectionSettings, | 
|---|
| 3212 | DirectPlay3WImpl_InitializeConnection, | 
|---|
| 3213 | DirectPlay3WImpl_SecureOpen, | 
|---|
| 3214 | DirectPlay3WImpl_SendChatMessage, | 
|---|
| 3215 | DirectPlay3WImpl_SetGroupConnectionSettings, | 
|---|
| 3216 | DirectPlay3WImpl_StartSession, | 
|---|
| 3217 | DirectPlay3WImpl_GetGroupFlags, | 
|---|
| 3218 | DirectPlay3WImpl_GetGroupParent, | 
|---|
| 3219 | DirectPlay3WImpl_GetPlayerAccount, | 
|---|
| 3220 | DirectPlay3WImpl_GetPlayerFlags | 
|---|
| 3221 | }; | 
|---|