dplayx: Get rid of the LPDIRECTPLAYLOBBY usage.

This commit is contained in:
Michael Stefaniuc 2013-04-17 22:09:15 +02:00 committed by Alexandre Julliard
parent 0870290ca6
commit f6e4aa7762
2 changed files with 15 additions and 22 deletions

View File

@ -1365,9 +1365,8 @@ static HRESULT WINAPI IDirectPlayLobby3Impl_ConnectEx( IDirectPlayLobby3 *iface,
return DPL_ConnectEx( This, dwFlags, riid, lplpDP, pUnk ); return DPL_ConnectEx( This, dwFlags, riid, lplpDP, pUnk );
} }
static HRESULT WINAPI IDirectPlayLobby3AImpl_ConnectEx static HRESULT WINAPI IDirectPlayLobby3AImpl_ConnectEx( IDirectPlayLobby3A *iface, DWORD dwFlags,
( LPDIRECTPLAYLOBBY3A iface, DWORD dwFlags, REFIID riid, REFIID riid, void **lplpDP, IUnknown *pUnk )
LPVOID* lplpDP, IUnknown* pUnk )
{ {
IDirectPlayLobbyImpl *This = impl_from_IDirectPlayLobby3A( iface ); IDirectPlayLobbyImpl *This = impl_from_IDirectPlayLobby3A( iface );
return DPL_ConnectEx( This, dwFlags, riid, lplpDP, pUnk ); return DPL_ConnectEx( This, dwFlags, riid, lplpDP, pUnk );
@ -1380,8 +1379,8 @@ static HRESULT WINAPI IDirectPlayLobby3Impl_RegisterApplication( IDirectPlayLobb
return DP_OK; return DP_OK;
} }
static HRESULT WINAPI IDirectPlayLobby3AImpl_RegisterApplication static HRESULT WINAPI IDirectPlayLobby3AImpl_RegisterApplication( IDirectPlayLobby3A *iface,
( LPDIRECTPLAYLOBBY3A iface, DWORD dwFlags, LPDPAPPLICATIONDESC lpAppDesc ) DWORD flags, DPAPPLICATIONDESC *appdesc )
{ {
FIXME(":stub\n"); FIXME(":stub\n");
return DP_OK; return DP_OK;
@ -1394,8 +1393,8 @@ static HRESULT WINAPI IDirectPlayLobby3Impl_UnregisterApplication( IDirectPlayLo
return DP_OK; return DP_OK;
} }
static HRESULT WINAPI IDirectPlayLobby3AImpl_UnregisterApplication static HRESULT WINAPI IDirectPlayLobby3AImpl_UnregisterApplication( IDirectPlayLobby3A *iface,
( LPDIRECTPLAYLOBBY3A iface, DWORD dwFlags, REFGUID lpAppDesc ) DWORD flags, REFGUID appdesc )
{ {
FIXME(":stub\n"); FIXME(":stub\n");
return DP_OK; return DP_OK;
@ -1418,8 +1417,8 @@ static HRESULT WINAPI IDirectPlayLobby3Impl_WaitForConnectionSettings( IDirectPl
return hr; return hr;
} }
static HRESULT WINAPI IDirectPlayLobby3AImpl_WaitForConnectionSettings static HRESULT WINAPI IDirectPlayLobby3AImpl_WaitForConnectionSettings( IDirectPlayLobby3A *iface,
( LPDIRECTPLAYLOBBY3A iface, DWORD dwFlags ) DWORD dwFlags )
{ {
HRESULT hr = DP_OK; HRESULT hr = DP_OK;
BOOL bStartWait = !(dwFlags & DPLWAIT_CANCEL); BOOL bStartWait = !(dwFlags & DPLWAIT_CANCEL);
@ -1518,11 +1517,8 @@ HRESULT dplobby_create( REFIID riid, void **ppv )
* DirectPlayLobbyCreateA (DPLAYX.4) * DirectPlayLobbyCreateA (DPLAYX.4)
* *
*/ */
HRESULT WINAPI DirectPlayLobbyCreateA( LPGUID lpGUIDDSP, HRESULT WINAPI DirectPlayLobbyCreateA( GUID *lpGUIDDSP, IDirectPlayLobbyA **lplpDPL,
LPDIRECTPLAYLOBBYA *lplpDPL, IUnknown *lpUnk, void *lpData, DWORD dwDataSize )
IUnknown *lpUnk,
LPVOID lpData,
DWORD dwDataSize )
{ {
TRACE("lpGUIDDSP=%p lplpDPL=%p lpUnk=%p lpData=%p dwDataSize=%08x\n", TRACE("lpGUIDDSP=%p lplpDPL=%p lpUnk=%p lpData=%p dwDataSize=%08x\n",
lpGUIDDSP,lplpDPL,lpUnk,lpData,dwDataSize); lpGUIDDSP,lplpDPL,lpUnk,lpData,dwDataSize);
@ -1550,11 +1546,8 @@ HRESULT WINAPI DirectPlayLobbyCreateA( LPGUID lpGUIDDSP,
* DirectPlayLobbyCreateW (DPLAYX.5) * DirectPlayLobbyCreateW (DPLAYX.5)
* *
*/ */
HRESULT WINAPI DirectPlayLobbyCreateW( LPGUID lpGUIDDSP, HRESULT WINAPI DirectPlayLobbyCreateW( GUID *lpGUIDDSP, IDirectPlayLobby **lplpDPL,
LPDIRECTPLAYLOBBY *lplpDPL, IUnknown *lpUnk, void *lpData, DWORD dwDataSize )
IUnknown *lpUnk,
LPVOID lpData,
DWORD dwDataSize )
{ {
TRACE("lpGUIDDSP=%p lplpDPL=%p lpUnk=%p lpData=%p dwDataSize=%08x\n", TRACE("lpGUIDDSP=%p lplpDPL=%p lpUnk=%p lpData=%p dwDataSize=%08x\n",
lpGUIDDSP,lplpDPL,lpUnk,lpData,dwDataSize); lpGUIDDSP,lplpDPL,lpUnk,lpData,dwDataSize);

View File

@ -652,7 +652,7 @@ static void init_TCPIP_provider( IDirectPlay4 *pDP, LPCSTR strIPAddressString, W
DPCOMPOUNDADDRESSELEMENT addressElements[3]; DPCOMPOUNDADDRESSELEMENT addressElements[3];
LPVOID pAddress = NULL; LPVOID pAddress = NULL;
DWORD dwAddressSize = 0; DWORD dwAddressSize = 0;
LPDIRECTPLAYLOBBY3 pDPL; IDirectPlayLobby3 *pDPL;
HRESULT hr; HRESULT hr;
hr = CoCreateInstance( &CLSID_DirectPlayLobby, NULL, CLSCTX_ALL, hr = CoCreateInstance( &CLSID_DirectPlayLobby, NULL, CLSCTX_ALL,
@ -799,7 +799,7 @@ static BOOL CALLBACK EnumConnections_cb( LPCGUID lpguidSP,
{ {
lpCallbackData callbackData = lpContext; lpCallbackData callbackData = lpContext;
LPDIRECTPLAYLOBBY pDPL; IDirectPlayLobby *pDPL;
HRESULT hr; HRESULT hr;
@ -2877,7 +2877,7 @@ static void test_GetPlayerAddress(void)
{ {
IDirectPlay4 *pDP[2]; IDirectPlay4 *pDP[2];
LPDIRECTPLAYLOBBY3 pDPL; IDirectPlayLobby3 *pDPL;
DPSESSIONDESC2 dpsd; DPSESSIONDESC2 dpsd;
DPID dpid[2]; DPID dpid[2];
CallbackData callbackData; CallbackData callbackData;