2002-03-10 00:29:33 +01:00
|
|
|
/*
|
|
|
|
* Copyright 1999, 2000 Peter Hunnisett
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2002-03-10 00:29:33 +01:00
|
|
|
*/
|
1999-11-04 03:17:03 +01:00
|
|
|
|
|
|
|
#ifndef __WINE_DPLAYX_GLOBAL
|
|
|
|
#define __WINE_DPLAYX_GLOBAL
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
2003-09-09 21:39:31 +02:00
|
|
|
#include "winuser.h"
|
1999-11-04 03:17:03 +01:00
|
|
|
#include "dplay.h"
|
|
|
|
|
2000-07-10 15:19:28 +02:00
|
|
|
BOOL DPLAYX_ConstructData(void);
|
|
|
|
BOOL DPLAYX_DestructData(void);
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
HRESULT DPLAYX_GetConnectionSettingsA ( DWORD dwAppID,
|
|
|
|
LPVOID lpData,
|
2000-08-25 23:58:05 +02:00
|
|
|
LPDWORD lpdwDataSize );
|
2002-06-01 01:06:46 +02:00
|
|
|
HRESULT DPLAYX_GetConnectionSettingsW ( DWORD dwAppID,
|
2000-07-10 15:19:28 +02:00
|
|
|
LPVOID lpData,
|
2000-08-25 23:58:05 +02:00
|
|
|
LPDWORD lpdwDataSize );
|
2000-07-10 15:19:28 +02:00
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
HRESULT DPLAYX_SetConnectionSettingsA ( DWORD dwFlags,
|
|
|
|
DWORD dwAppID,
|
2000-07-10 15:19:28 +02:00
|
|
|
LPDPLCONNECTION lpConn );
|
2002-06-01 01:06:46 +02:00
|
|
|
HRESULT DPLAYX_SetConnectionSettingsW ( DWORD dwFlags,
|
|
|
|
DWORD dwAppID,
|
2000-07-10 15:19:28 +02:00
|
|
|
LPDPLCONNECTION lpConn );
|
1999-11-04 03:17:03 +01:00
|
|
|
|
2000-08-25 23:58:05 +02:00
|
|
|
BOOL DPLAYX_CreateLobbyApplication( DWORD dwAppID );
|
1999-11-25 23:04:53 +01:00
|
|
|
BOOL DPLAYX_DestroyLobbyApplication( DWORD dwAppID );
|
1999-11-04 03:17:03 +01:00
|
|
|
|
2000-07-10 15:19:28 +02:00
|
|
|
BOOL DPLAYX_WaitForConnectionSettings( BOOL bWait );
|
|
|
|
BOOL DPLAYX_AnyLobbiesWaitingForConnSettings(void);
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
BOOL DPLAYX_SetLobbyHandles( DWORD dwAppID,
|
2000-08-25 23:58:05 +02:00
|
|
|
HANDLE hStart, HANDLE hDeath, HANDLE hConnRead );
|
|
|
|
|
2000-05-27 00:26:30 +02:00
|
|
|
LPDPSESSIONDESC2 DPLAYX_CopyAndAllocateLocalSession( UINT* index );
|
|
|
|
BOOL DPLAYX_CopyLocalSession( UINT* index, LPDPSESSIONDESC2 lpsd );
|
|
|
|
void DPLAYX_SetLocalSession( LPCDPSESSIONDESC2 lpsd );
|
|
|
|
|
2000-08-25 23:58:05 +02:00
|
|
|
BOOL DPLAYX_SetLobbyMsgThreadId( DWORD dwAppId, DWORD dwThreadId );
|
|
|
|
|
|
|
|
/* FIXME: This should not be here */
|
|
|
|
LPVOID DPLAYX_PrivHeapAlloc( DWORD flags, DWORD size );
|
|
|
|
void DPLAYX_PrivHeapFree( LPVOID addr );
|
|
|
|
|
|
|
|
LPSTR DPLAYX_strdupA( DWORD flags, LPCSTR str );
|
|
|
|
LPWSTR DPLAYX_strdupW( DWORD flags, LPCWSTR str );
|
|
|
|
/* FIXME: End shared data alloc which should be local */
|
|
|
|
|
|
|
|
|
1999-11-25 23:04:53 +01:00
|
|
|
/* Convert a DP or DPL HRESULT code into a string for human consumption */
|
|
|
|
LPCSTR DPLAYX_HresultToString( HRESULT hr );
|
1999-11-04 03:17:03 +01:00
|
|
|
|
|
|
|
#endif /* __WINE_DPLAYX_GLOBAL */
|