dplayx_global.h 2.24 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*
 * 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
16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17
 */
18 19 20 21

#ifndef __WINE_DPLAYX_GLOBAL
#define __WINE_DPLAYX_GLOBAL

22 23 24 25
#include <stdarg.h>

#include "windef.h"
#include "winbase.h"
26
#include "winuser.h"
27 28
#include "dplay.h"

29 30 31
BOOL DPLAYX_ConstructData(void);
BOOL DPLAYX_DestructData(void);

32 33
HRESULT DPLAYX_GetConnectionSettingsA ( DWORD dwAppID,
                                        LPVOID lpData,
34
                                        LPDWORD lpdwDataSize );
35
HRESULT DPLAYX_GetConnectionSettingsW ( DWORD dwAppID,
36
                                        LPVOID lpData,
37
                                        LPDWORD lpdwDataSize );
38

39 40
HRESULT DPLAYX_SetConnectionSettingsA ( DWORD dwFlags,
                                        DWORD dwAppID,
41
                                        const DPLCONNECTION *lpConn );
42 43
HRESULT DPLAYX_SetConnectionSettingsW ( DWORD dwFlags,
                                        DWORD dwAppID,
44
                                        const DPLCONNECTION *lpConn );
45

46
BOOL DPLAYX_CreateLobbyApplication( DWORD dwAppID );
47

48 49 50
BOOL DPLAYX_WaitForConnectionSettings( BOOL bWait );
BOOL DPLAYX_AnyLobbiesWaitingForConnSettings(void);

51
BOOL DPLAYX_SetLobbyHandles( DWORD dwAppID,
52 53
                             HANDLE hStart, HANDLE hDeath, HANDLE hConnRead );

54 55
void DPLAYX_SetLocalSession( LPCDPSESSIONDESC2 lpsd );

56 57 58
BOOL DPLAYX_SetLobbyMsgThreadId( DWORD dwAppId, DWORD dwThreadId );


59 60
/* Convert a DP or DPL HRESULT code into a string for human consumption */
LPCSTR DPLAYX_HresultToString( HRESULT hr );
61 62

#endif /* __WINE_DPLAYX_GLOBAL */